]> git.baikalelectronics.ru Git - kernel.git/commitdiff
EDAC/armada-xp: Fix output of uncorrectable error counter
authorHans Potsch <hans.potsch@nokia.com>
Wed, 6 Oct 2021 12:13:32 +0000 (14:13 +0200)
committerBorislav Petkov <bp@suse.de>
Thu, 14 Oct 2021 09:46:03 +0000 (11:46 +0200)
The number of correctable errors is displayed as uncorrectable
errors because the "SBE" error count is passed to both calls of
edac_mc_handle_error().

Pass the correct uncorrectable error count to the second
edac_mc_handle_error() call when logging uncorrectable errors.

 [ bp: Massage commit message. ]

Fixes: 47d9bea37ed6 ("ARM: 8888/1: EDAC: Add driver for the Marvell Armada XP SDRAM and L2 cache ECC")
Signed-off-by: Hans Potsch <hans.potsch@nokia.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@vger.kernel.org>
Link: https://lkml.kernel.org/r/20211006121332.58788-1-hans.potsch@nokia.com
drivers/edac/armada_xp_edac.c

index e3e757513d1bc38eee01eb0c6836ecb8a63bd9a3..b1f46a974b9e0001b5333ae8c00fa49b4eafb271 100644 (file)
@@ -178,7 +178,7 @@ static void axp_mc_check(struct mem_ctl_info *mci)
                                     "details unavailable (multiple errors)");
        if (cnt_dbe)
                edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci,
-                                    cnt_sbe, /* error count */
+                                    cnt_dbe, /* error count */
                                     0, 0, 0, /* pfn, offset, syndrome */
                                     -1, -1, -1, /* top, mid, low layer */
                                     mci->ctl_name,