mbox series

[v2,0/5] Rework mce_setup()

Message ID 20240624212008.663832-1-yazen.ghannam@amd.com (mailing list archive)
Headers show
Series Rework mce_setup() | expand

Message

Yazen Ghannam June 24, 2024, 9:20 p.m. UTC
Hi all,

Patches 1-2 are new in this revision. They address a comment from Boris
to reuse a new helper function from the recent APIC/topology rework.

Patches 3-4 are unchanged.

Patch 5 is updated with the changes from the new patches.

Thanks,
Yazen

Link:
https://lkml.kernel.org/r/20240521125434.1555845-1-yazen.ghannam@amd.com

Yazen Ghannam (5):
  x86/topology: Export helper to get CPU number from APIC ID
  x86/mce: Fixup APIC ID search for x86 CPER decoding
  x86/mce: Rename mce_setup() to mce_prep_record()
  x86/mce: Define mce_prep_record() helpers for common and per-CPU
    fields
  x86/mce: Use mce_prep_record() helpers for
    apei_smca_report_x86_error()

 arch/x86/include/asm/mce.h         |  2 +-
 arch/x86/include/asm/topology.h    |  6 +++++
 arch/x86/kernel/cpu/mce/amd.c      |  2 +-
 arch/x86/kernel/cpu/mce/apei.c     | 23 +++++++-----------
 arch/x86/kernel/cpu/mce/core.c     | 38 ++++++++++++++++++++----------
 arch/x86/kernel/cpu/mce/internal.h |  2 ++
 arch/x86/kernel/cpu/topology.c     | 15 +++++++++---
 7 files changed, 55 insertions(+), 33 deletions(-)


base-commit: 2db56ea9b277e1790f6a4d8fdd949ab81ba34c76