[PATCH 0/4] Cleanups in amd64_edac

Avadhut Naik
2025-10-13T17:36:54Z

This patchset undertakes some cleanups in the amd64_edac module.

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 sets zn_regs_v2 flag for all SOCs in Family 1Ah and later.

The fourth patch initiates deprecation of the legacy EDAC sysfs interface.

NOTE:
These cleanups were earlier submitted as part of the set adding EDAC
support for AMD's newer Family 1Ah-based SOCs.[1] However, since the
support patches were critical to enabling EDAC on newer AMD SOCs and
since these cleanups were still under review, the set was split up.

[1]: https://lore.kernel.org/all/20250909185748.1621098-1-avadhut.naik@amd.com/

Avadhut Naik (4):
EDAC/amd64: Generate ctl_name string at runtime
EDAC/amd64: Remove NUM_CONTROLLERS macro
EDAC/amd64: Set zn_regs_v2 flag for all AMD Family 1Ah-based SOCs
EDAC/mc_sysfs: Begin deprecating legacy sysfs EDAC interface

drivers/edac/Kconfig | 2 +-
drivers/edac/amd64_edac.c | 69 +++++++++---------------------------
drivers/edac/amd64_edac.h | 9 ++---
drivers/edac/edac_mc.h | 5 +++
drivers/edac/edac_mc_sysfs.c | 16 +++++++++
5 files changed, 44 insertions(+), 57 deletions(-)

base-commit: 5c4a065eebd70227b51bb2c8d06e9e4c1b313b05
--
2.43.0