]> Git Repo - linux.git/commitdiff
EDAC/versal: Do not log total error counts
authorShubhrajyoti Datta <[email protected]>
Thu, 25 Apr 2024 12:19:42 +0000 (17:49 +0530)
committerBorislav Petkov (AMD) <[email protected]>
Thu, 25 Apr 2024 16:08:05 +0000 (18:08 +0200)
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: 6f15b178cd63 ("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]
drivers/edac/versal_edac.c

index 0c50afafc3e23260b98664c3d9993154c89d4161..a556d23e8261c6df566bcccf3b538478ebba659c 100644 (file)
@@ -425,7 +425,7 @@ static void handle_error(struct mem_ctl_info *mci, struct ecc_status *stat)
                         convert_to_physical(priv, pinf), pinf.burstpos);
 
                edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci,
-                                    priv->ce_cnt, 0, 0, 0, 0, 0, -1,
+                                    1, 0, 0, 0, 0, 0, -1,
                                     priv->message, "");
        }
 
@@ -438,7 +438,7 @@ static void handle_error(struct mem_ctl_info *mci, struct ecc_status *stat)
                         convert_to_physical(priv, pinf), pinf.burstpos);
 
                edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci,
-                                    priv->ue_cnt, 0, 0, 0, 0, 0, -1,
+                                    1, 0, 0, 0, 0, 0, -1,
                                     priv->message, "");
        }
 
This page took 0.054971 seconds and 4 git commands to generate.