[PATCH v6 0/4] x86/mce: Support extended MCA_ADDR address on SMCA systems

From: Yazen Ghannam
Date: Tue Dec 06 2022 - 12:37:04 EST


Hi all,

This series of patches adds support for extended physical address on newer
AMD CPUs.

Patch 1 simplifies part of the MCA init path by reordering and combining
some helper functions. This was shared by Boris during the discussion of v5
of this set.

Patch 2 removes another MCA init helper function and merges it with the AMD
MCA init code. Also, some other MCA init functions are reordered so that
MCA is enabled after vendor init. This was shared by myself during the
discussion of v5 of this set.

Patch 3 moves the SMCA-specific parsing of the MCA_ADDR register into a
separate helper function. This was originally submitted by Smita and
reworked by Boris. The current version is unmodified from her v5
submission.

Patch 4 adds support for the new location of the "LSB" field used when
parsing MCA_ADDR. This was originally submitted by Smita, and I've rebased
it on the first three patches.

Thanks,
Yazen

Link:
https://lore.kernel.org/r/20220412154038.261750-1-Smita.KoralahalliChannabasappa@xxxxxxx

Borislav Petkov (1):
x86/mce: Cleanup bank processing on init

Smita Koralahalli (2):
x86/mce: Define function to extract ErrorAddr from MCA_ADDR
x86/mce: Add support for Extended Physical Address MCA changes

Yazen Ghannam (1):
x86/mce: Remove __mcheck_cpu_init_early()

arch/x86/include/asm/mce.h | 3 +-
arch/x86/kernel/cpu/mce/amd.c | 16 ++---
arch/x86/kernel/cpu/mce/core.c | 100 +++++++----------------------
arch/x86/kernel/cpu/mce/internal.h | 44 +++++++++++++
4 files changed, 74 insertions(+), 89 deletions(-)

--
2.34.1