public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] octeontx2-af: devlink: fix NIX RAS reporter recovery condition
@ 2026-03-10 18:48 Alok Tiwari
  2026-03-10 18:48 ` [PATCH 2/2] octeontx2-af: devlink: fix NIX RAS reporter to use RAS interrupt status Alok Tiwari
  2026-03-12  3:50 ` [PATCH 1/2] octeontx2-af: devlink: fix NIX RAS reporter recovery condition patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Alok Tiwari @ 2026-03-10 18:48 UTC (permalink / raw)
  To: sbhatta, hkelam, gakula, lcherian, sgoutham, andrew+netdev, kuba,
	davem, edumazet, pabeni, netdev
  Cc: alok.a.tiwarilinux, alok.a.tiwari

The NIX RAS health reporter recovery routine checks nix_af_rvu_int to
decide whether to re-enable NIX_AF_RAS interrupts. This is the RVU
interrupt status field and is unrelated to RAS events, so the recovery
flow may incorrectly skip re-enabling NIX_AF_RAS interrupts.

Check nix_af_rvu_ras instead before writing NIX_AF_RAS_ENA_W1S.

Fixes: 5ed66306eab6 ("octeontx2-af: Add devlink health reporters for NIX")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
---
 drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c
index fb15c794efc9..7ef3da0f6a88 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c
@@ -475,7 +475,7 @@ static int rvu_hw_nix_ras_recover(struct devlink_health_reporter *reporter,
 	if (blkaddr < 0)
 		return blkaddr;
 
-	if (nix_event_ctx->nix_af_rvu_int)
+	if (nix_event_ctx->nix_af_rvu_ras)
 		rvu_write64(rvu, blkaddr, NIX_AF_RAS_ENA_W1S, ~0ULL);
 
 	return 0;
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-12  3:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-10 18:48 [PATCH 1/2] octeontx2-af: devlink: fix NIX RAS reporter recovery condition Alok Tiwari
2026-03-10 18:48 ` [PATCH 2/2] octeontx2-af: devlink: fix NIX RAS reporter to use RAS interrupt status Alok Tiwari
2026-03-12  3:50 ` [PATCH 1/2] octeontx2-af: devlink: fix NIX RAS reporter recovery condition patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox