Skip to contentSkip to conversation

EDAC, i7core/sb_edac/skx_edac: Fix uncorrected error counting

DISCUSSION Borislav Petkov 1 participant 1 message Sep 29, 2018 EDAC-core

lore
Share & tools
lore

Borislav Petkov

author maintainer Applied
#0 lore raw
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.

---

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.