Skip to content

Commit 87f7dff

Browse files
aloktiwakuba-moo
authored andcommitted
octeontx2-af: devlink: fix NIX RAS reporter to use RAS interrupt status
The NIX RAS health report path uses nix_af_rvu_err when handling the NIX_AF_RVU_RAS case, so the report prints the ERR interrupt status rather than the RAS interrupt status. Use nix_af_rvu_ras for the NIX_AF_RVU_RAS report. Fixes: 5ed6630 ("octeontx2-af: Add devlink health reporters for NIX") Signed-off-by: Alok Tiwari <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent dc26ca9 commit 87f7dff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ static int rvu_nix_report_show(struct devlink_fmsg *fmsg, void *ctx,
327327
rvu_report_pair_end(fmsg);
328328
break;
329329
case NIX_AF_RVU_RAS:
330-
intr_val = nix_event_context->nix_af_rvu_err;
330+
intr_val = nix_event_context->nix_af_rvu_ras;
331331
rvu_report_pair_start(fmsg, "NIX_AF_RAS");
332332
devlink_fmsg_u64_pair_put(fmsg, "\tNIX RAS Interrupt Reg ",
333-
nix_event_context->nix_af_rvu_err);
333+
nix_event_context->nix_af_rvu_ras);
334334
devlink_fmsg_string_put(fmsg, "\n\tPoison Data on:");
335335
if (intr_val & BIT_ULL(34))
336336
devlink_fmsg_string_put(fmsg, "\n\tNIX_AQ_INST_S");

0 commit comments

Comments
 (0)