mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 0/6] CPER: Add Memory Error Section 2 support
@ 2026-09-29  7:45 Pierre Gondois
  2026-09-29  7:46 ` [RFC PATCH 1/6] ACPI: extlog: fix extlog_mem_event build issue Pierre Gondois
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Pierre Gondois @ 2026-09-29  7:45 UTC (permalink / raw)
  To: linux-kernel
  Cc: James Morse, Mark Brown, Pierre Gondois, Thomas Gleixner,
	Ingo Molnar, Borislav Petkov, Dave Hansen, x86, H. Peter Anvin,
	Rafael J. Wysocki, Len Brown, Tony Luck, Hanjun Guo,
	Mauro Carvalho Chehab, Shuai Xue, Maciej Wieczor-Retman,
	Pawel Chmielewski, Yazen Ghannam, Radu Rendec, Avadhut Naik,
	Kees Cook, Jonathan Cameron, Dave Jiang, Fabio M. De Francesco,
	Breno Leitao, Terry Bowman, Dan Williams, Ard Biesheuvel,
	Morduan Zang, linux-acpi, linux-edac, acpica-devel

Add support for Memory Error Section 2 records.

Extend cper_mem_err_compact to hold both legacy and section-2 records.
Add a common parser and convert the CPER, GHES, EDAC, extlog and x86 APEI
paths to use it.

The extlog_mem_event payload layout changes with this series.
Compatibility with existing userspace decoders still needs to be
addressed. More specifically, the rasdaemon relies on the current
struct cper_mem_err_compact definition.
Either:
A-
this patchset should not modify struct cper_mem_err_compact and
create a new structure to handle Memory Error Section 2 events,
but this would ignore the similarities of Memory Error Section (1)/2
B-
userspace should not rely on the struct cper_mem_err_compact
layout. extlog_mem_event trace events should instead emit data
that relies on the actual layout of the CPER records, as defined
in the ACPI spec.

I am looking for guidance on how to handle the above question.
Current implementation lean toward B, but emits data in the trace
event that maps the new/updated struct cper_mem_err_compact.

Pierre Gondois (6):
  ACPI: extlog: fix extlog_mem_event build issue
  cper: add Memory Error Section 2 structures
  cper: extend cper_mem_err_compact struct
  cper: add helpers to handle Memory Error Section 2
  x86/mce/apei: switch cper_sec_mem_err struct users to compact CPER
    records
  cper: make cper_mem_err_pack() static

 arch/x86/include/asm/mce.h     |   4 +-
 arch/x86/kernel/acpi/apei.c    |   2 +-
 arch/x86/kernel/cpu/mce/apei.c |   2 +-
 drivers/acpi/acpi_extlog.c     |  23 +++-
 drivers/acpi/apei/apei-base.c  |   2 +-
 drivers/acpi/apei/ghes.c       |  20 +--
 drivers/edac/ghes_edac.c       |  26 ++--
 drivers/firmware/efi/cper.c    | 219 +++++++++++++++++++++++++++------
 include/acpi/apei.h            |   2 +-
 include/linux/cper.h           |  58 +++++++--
 include/ras/ras_event.h        |   4 +-
 11 files changed, 283 insertions(+), 79 deletions(-)

--
2.43.0

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-09-29 16:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29  7:45 [RFC PATCH 0/6] CPER: Add Memory Error Section 2 support Pierre Gondois
2026-09-29  7:46 ` [RFC PATCH 1/6] ACPI: extlog: fix extlog_mem_event build issue Pierre Gondois
2026-09-29  7:46 ` [RFC PATCH 2/6] cper: add Memory Error Section 2 structures Pierre Gondois
2026-09-29  7:46 ` [RFC PATCH 3/6] cper: extend cper_mem_err_compact struct Pierre Gondois
2026-09-29  7:46 ` [RFC PATCH 4/6] cper: add helpers to handle Memory Error Section 2 Pierre Gondois
2026-09-29  7:46 ` [RFC PATCH 5/6] x86/mce/apei: switch cper_sec_mem_err struct users to compact CPER records Pierre Gondois
2026-09-29  7:46 ` [RFC PATCH 6/6] cper: make cper_mem_err_pack() static Pierre Gondois
2026-09-29 16:35 ` [RFC PATCH 0/6] CPER: Add Memory Error Section 2 support Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®