mbox series

[v3,0/4] x86/mce, EDAC/mce_amd: Support extended MCA_ADDR address on SMCA systems

Message ID 20220211223442.254489-1-Smita.KoralahalliChannabasappa@amd.com (mailing list archive)
Headers show
Series x86/mce, EDAC/mce_amd: Support extended MCA_ADDR address on SMCA systems | expand

Message

Smita Koralahalli Feb. 11, 2022, 10:34 p.m. UTC
This series of patches adds support for extended physical address on newer
AMD processors such as AMD 'Milan'. It also, suggests to cache
MCA_CONFIG[McaX] similar to MCA_CONFIG[McaLsbInStatusSupported] to avoid
reading MCA_CONFIG register each time.

The first patch defines a separate helper function to extract
MCA_ADDR[ErrorAddr].

The second patch adds support for extended ErrorAddr bits in MCA_ADDR.

Third patch, caches MCA_CONFIG[McaX] similar to
MCA_CONFIG[McaLsbInStatusSupported] in the existing mce_bank struct.

Last patch, fixes unnecessary padding in mce_bank struct.

Link:
https://lkml.kernel.org/r/20210625013553.231528-1-Smita.KoralahalliChannabasappa@amd.com

Smita Koralahalli (4):
  x86/mce: Define function to extract ErrorAddr from MCA_ADDR
  x86/mce: Add support for Extended Physical Address MCA changes
  x86/mce, EDAC/mce_amd: Cache MCA_CONFIG[McaX] in struct mce_bank
  x86/mce: Avoid unnecessary padding in struct mce_bank

 arch/x86/include/asm/mce.h         | 14 +++----
 arch/x86/kernel/cpu/mce/amd.c      | 59 +++++++++++++++++++++++-------
 arch/x86/kernel/cpu/mce/core.c     | 20 +++-------
 arch/x86/kernel/cpu/mce/internal.h | 26 +++++++++++++
 arch/x86/kernel/cpu/mce/severity.c |  6 +--
 drivers/edac/mce_amd.c             |  5 +--
 6 files changed, 86 insertions(+), 44 deletions(-)