[PATCH v2 0/5] Rework mce_setup()

Yazen Ghannam posted 5 patches 1 year, 5 months ago
There is a newer version of this series
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(-)
[PATCH v2 0/5] Rework mce_setup()
Posted by Yazen Ghannam 1 year, 5 months ago
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
-- 
2.34.1