]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
EDAC/mc_sysfs: Increase legacy channel support to 16
authorAvadhut Naik <avadhut.naik@amd.com>
Tue, 16 Sep 2025 20:30:17 +0000 (20:30 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 17 Sep 2025 09:59:29 +0000 (11:59 +0200)
commit6e1c2c6c2c40ce99e0d2633b212f43c702c1a002
tree82031242d372f088fc522046b47cec25606ab5db
parent6fffa38c4c4427470f832e59b7380b992e677e36
EDAC/mc_sysfs: Increase legacy channel support to 16

Newer AMD systems can support up to 16 channels per EDAC "mc" device.
These are detected by the EDAC module running on the device, and the
current EDAC interface is appropriately enumerated.

The legacy EDAC sysfs interface however, provides device attributes for
channels 0 through 11 only. Consequently, the last four channels, 12
through 15, will not be enumerated and will not be visible through the
legacy sysfs interface.

Add additional device attributes to ensure that all 16 channels, if
present, are enumerated by and visible through the legacy EDAC sysfs
interface.

Signed-off-by: Avadhut Naik <avadhut.naik@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250916203242.1281036-1-avadhut.naik@amd.com
drivers/edac/edac_mc_sysfs.c