This patchset undertakes some cleanups in the amd64_edac module and adds
support for newer AMD's Family 1Ah-based SOCs.
The first patch removes explicit assignment of the ctl_name string and
instead generates it at runtime using scnprintf.
The second patch removes the NUM_CONTROLLERS macro and instead uses the
max_mcs variable to determine the size of chipselect array.
The third patch adds support for new AMD's Family 1Ah-based SOCs.
The fourth patch modifies the legacy EDAC sysfs interface so that the 16
UMCs supported by some of these new SOCs are appropriately visible through
the interface.
The fifth patch initiates deprecation of the legacy EDAC sysfs interface.
Changes in v2:
- Remove extra tabs.
- Update the legacy EDAC sysfs interface.
Changes in v3:
- Remove explicit assignment of the ctl_name string and instead generate
the string at runtime.
- Remove the NUM_CONTROLLERS macro.
- Initiate deprecation of legacy EDAC sysfs interface.
Links:
v1: https://lore.kernel.org/all/20250722192855.3108575-1-avadhut.naik@amd.com/
v2: https://lore.kernel.org/all/20250807201843.4045761-1-avadhut.naik@amd.com/
Avadhut Naik (5):
EDAC/amd64: Generate ctl_name string at runtime
EDAC/amd64: Remove NUM_CONTROLLERS macro
EDAC/amd64: Add support for AMD family 1Ah-based newer models
EDAC/mc_sysfs: Increase legacy channel support to 16
EDAC/mc_sysfs: Begin deprecating legacy sysfs EDAC interface
drivers/edac/Kconfig | 2 +-
drivers/edac/amd64_edac.c | 73 +++++++++++++++---------------------
drivers/edac/amd64_edac.h | 9 +++--
drivers/edac/edac_mc_sysfs.c | 38 +++++++++++++++++++
4 files changed, 75 insertions(+), 47 deletions(-)
base-commit: 501973598d05fdb1d1089fbf3cf40b605b836e16
--
2.43.0