EDAC, i7core/sb_edac/skx_edac: Fix uncorrected error counting
Quoted 11 lines · Tony Luck
We pick up the count of errors from bits 52:38 of the machine check bank status register. But this is the count of *corrected* errors. If we are logging an uncorrected error, the h/w set this field to 0. Which means that when we call into
edac_mc_handle_error()the EDAC core will carefully add zero to the appropriate uncorrected error counts.Signed-off-by Tony Luck <[email protected]>---
Quoted 8 lines
So I was digging around in
/sys/devices/system/edac/mc/mc*/*and noticed the the "ue_count" files all read "0" even after injecting and recovering from some 2-bit error.drivers/edac/i7core_edac.c | 1 + drivers/edac/sb_edac.c | 1 + drivers/edac/skx_edac.c | 1 + 3 files changed, 3 insertions(+)
Applied, thanks.