diff options
author | Qiuxu Zhuo <[email protected]> | 2018-09-10 14:11:45 -0700 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2018-09-11 11:09:54 +0200 |
commit | 8489b17ce29d9a35a36c08bbea93cdce4c98a6ad (patch) | |
tree | 752d188b55996a1182fc587ab1399a71539924c7 /tools/perf/scripts/python/bin/compaction-times-record | |
parent | dcc960b225ceb2bd66c45e0845d03e577f7010f9 (diff) |
EDAC, sb_edac: Fix reporting for patrol scrubber errors
sb_edac sometimes reports the wrong DIMM for a memory error found by
the patrol scrubber. That is because the hardware provides only a 4KB
page-aligned address for the error case.
This means that the EDAC driver will point at the DIMM matching offset
0x0 in the 4KB page, but because of interleaving across channels and
ranks, the actual DIMM involved may be different if the error is on some
other cache line within the page.
Therefore, reconstruct the socket/iMC/channel information from the "mce"
structure passed to the EDAC driver. The DIMM cannot be determined, so
pass "dimm=-1" to the EDAC core. It will report that all the DIMMs on
that channel may be affected.
Signed-off-by: Qiuxu Zhuo <[email protected]>
Cc: Aristeu Rozanski <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Qiuxu Zhuo <[email protected]>
Cc: linux-edac <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Improve comments on the functions to convert bank number
to memory controller number. Minor cleanup to commit message. ]
Signed-off-by: Tony Luck <[email protected]>
[ Massage commit message more. ]
Signed-off-by: Borislav Petkov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/compaction-times-record')
0 files changed, 0 insertions, 0 deletions