1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

octeontx2-af: Handle return value in block reset.

Print debug message if any of the RVU hardware blocks
reset fails.

Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Geetha sowjanya 2021-08-22 17:32:20 +05:30 committed by David S. Miller
parent 477b53f3f9
commit c0fa2cff88

View file

@ -498,12 +498,15 @@ int rvu_lf_reset(struct rvu *rvu, struct rvu_block *block, int lf)
static void rvu_block_reset(struct rvu *rvu, int blkaddr, u64 rst_reg) static void rvu_block_reset(struct rvu *rvu, int blkaddr, u64 rst_reg)
{ {
struct rvu_block *block = &rvu->hw->block[blkaddr]; struct rvu_block *block = &rvu->hw->block[blkaddr];
int err;
if (!block->implemented) if (!block->implemented)
return; return;
rvu_write64(rvu, blkaddr, rst_reg, BIT_ULL(0)); rvu_write64(rvu, blkaddr, rst_reg, BIT_ULL(0));
rvu_poll_reg(rvu, blkaddr, rst_reg, BIT_ULL(63), true); err = rvu_poll_reg(rvu, blkaddr, rst_reg, BIT_ULL(63), true);
if (err)
dev_err(rvu->dev, "HW block:%d reset failed\n", blkaddr);
} }
static void rvu_reset_all_blocks(struct rvu *rvu) static void rvu_reset_all_blocks(struct rvu *rvu)