Skip to content

Commit 1a24733

Browse files
shubhraamdbp3tk0v
authored andcommitted
EDAC/versal: Do not log total error counts
When logging errors, the driver currently logs the total error count. However, it should log the current error only. Fix it. [ bp: Rewrite text. ] Fixes: 6f15b17 ("EDAC/versal: Add a Xilinx Versal memory controller driver") Signed-off-by: Shubhrajyoti Datta <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent de87ba8 commit 1a24733

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/edac/versal_edac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ static void handle_error(struct mem_ctl_info *mci, struct ecc_status *stat)
425425
convert_to_physical(priv, pinf), pinf.burstpos);
426426

427427
edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci,
428-
priv->ce_cnt, 0, 0, 0, 0, 0, -1,
428+
1, 0, 0, 0, 0, 0, -1,
429429
priv->message, "");
430430
}
431431

@@ -438,7 +438,7 @@ static void handle_error(struct mem_ctl_info *mci, struct ecc_status *stat)
438438
convert_to_physical(priv, pinf), pinf.burstpos);
439439

440440
edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci,
441-
priv->ue_cnt, 0, 0, 0, 0, 0, -1,
441+
1, 0, 0, 0, 0, 0, -1,
442442
priv->message, "");
443443
}
444444

0 commit comments

Comments
 (0)