[PATCH 00/18] AMD64 EDAC Cleanup and Refactor

From: Yazen Ghannam
Date: Mon May 09 2022 - 10:55:57 EST


Hi Boris,

Please apply this set of cleanup and refactor patches.

Patches 1-4 remove unusable and useless code for Family 17h and later
systems.

Patches 5-18 refactor a good amount of the module code to prep for
adding GPU support. Initial patches and review here:

https://lkml.kernel.org/r/20220228161354.54923-1-nchatrad@xxxxxxx

After reflecting on things more, I think the best approach is to split
the code between modern and legacy systems. It's possible to redo some
of the legacy code, but I think it's better to just leave it as-is. I'd
like to avoid introducing new bugs or changing existing behavior for
legacy systems.

Thanks!

-Yazen

Muralidhara M K (14):
EDAC/amd64: Merge struct amd64_family_type into struct amd64_pvt
EDAC/amd64: Add prep_chip_selects() into pvt->ops
EDAC/amd64: Add read_base_mask() into pvt->ops
EDAC/amd64: Add determine_memory_type() into pvt->ops
EDAC/amd64: Add get_ecc_sym_sz() into pvt->ops
EDAC/amd64: Add read_mc_regs() into pvt->ops
EDAC/amd64: Add ecc_enabled() into pvt->ops
EDAC/amd64: Add determine_edac_cap() into pvt->ops
EDAC/amd64: Add determine_edac_ctl_cap() into pvt->ops
EDAC/amd64: Add setup_mci_misc_attrs() into pvt->ops
EDAC/amd64: Add init_csrows() into pvt->ops
EDAC/amd64: Add dump_misc_regs() into pvt->ops
EDAC/amd64: Add get_cs_mode() into pvt->ops
EDAC/amd64: Add get_err_info() into pvt->ops

Yazen Ghannam (4):
EDAC/amd64: Don't set up EDAC PCI control on Family 17h+
EDAC/amd64: Remove scrub rate control for Family 17h and later
EDAC/amd64: Remove PCI Function 6
EDAC/amd64: Remove PCI Function 0

drivers/edac/amd64_edac.c | 756 +++++++++++++++-----------------------
drivers/edac/amd64_edac.h | 97 ++---
2 files changed, 331 insertions(+), 522 deletions(-)

--
2.25.1