EDAC: Expose per-DIMM error counts in sysfs
authorAaron Miller <aaronmiller@fb.com>
Thu, 3 Nov 2016 22:01:53 +0000 (15:01 -0700)
committerBorislav Petkov <bp@suse.de>
Thu, 19 Jan 2017 09:29:40 +0000 (10:29 +0100)
commit4fb6fde74d6724dc6d64ec729f950fbdeefd7f07
treed0030c8f6195834f3d410ca70ce5f4561bc34ec9
parent2287c63643f0f52d9d5452b9dc4079aec0889fe8
EDAC: Expose per-DIMM error counts in sysfs

The old csrowX sysfs directories have per-csrow error counters, but the
new dimmX directories do not currently expose error counts.

EDAC already keeps these counts, add them to sysfs so per-DIMM counts
are still available when CONFIG_EDAC_LEGACY_SYSFS=n.

Signed-off-by: Aaron Miller <aaronmiller@fb.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20161103220153.3997328-1-aaronmiller@fb.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Documentation/ABI/testing/sysfs-devices-edac
Documentation/admin-guide/ras.rst
drivers/edac/edac_mc_sysfs.c