This is v8 of the GHES refactor series, rebased onto v7.4-rc5. The rebase incorporates the relevant fixes already present in v7.4-rc5. Separate preparatory patches address the remaining findings reported by Sashiko. These functional fixes are kept separate from the mechanical GHES CPER helper movements to simplify review.
Changes in v8: - Rebase the series onto v7.4-rc5. - Retain the relevant fixes that landed upstream after v7. - Add separate preparatory patches for the remaining Sashiko findings. - Wait for RCU readers before unmapping GHES error status registers. - Avoid traversing the GHES device list from the EDAC driver. - Track the error status pool allocation size used for queued records. - Drain deferred IRQ work before releasing a GHES source. - Apply GHESv2 read-acknowledge masks without an additional shift. - Revalidate the error status length after copying the complete record. - Free an error status cache entry when no cache slot can be selected. - Include architecture ACPI declarations directly from efi/cper. - Permit multiple users to extend the shared error status pool. - Keep task-work allocations valid until error reporting completes. - Reset FRU metadata for every CPER section. - Validate the remaining length before reading a CPER section. - Keep the original GHES CPER helper movement patches mechanical. Link to v7: https://lore.kernel.org/r/20260708-topics-ahmtib01-ras_ffh_arm_internal_review-v7-0-8b3a85216...@arm.com --- Ahmed Tiba (22): ACPI: APEI: GHES: wait for RCU readers before unmapping EDAC: ghes: avoid traversing the GHES device list ACPI: APEI: GHES: track error status pool allocation size ACPI: APEI: GHES: drain deferred work before freeing a source ACPI: APEI: GHES: apply read-acknowledge masks directly ACPI: APEI: GHES: revalidate the error status length after copying ACPI: APEI: GHES: free an estatus cache entry when no slot is found efi/cper: include architecture ACPI declarations directly ACPI: APEI: GHES: allow the error status pool to be extended ACPI: APEI: GHES: keep task work valid through error reporting ACPI: APEI: GHES: reset FRU metadata for each CPER section efi/cper: validate the remaining length before reading a section ACPI: APEI: GHES: share macros via a private header ACPI: APEI: GHES: move CPER read helpers ACPI: APEI: GHES: move GHESv2 ack and alloc helpers ACPI: APEI: GHES: move estatus cache helpers ACPI: APEI: GHES: move vendor record helpers ACPI: APEI: GHES: move CXL CPER helpers ACPI: APEI: introduce GHES CPER helper configuration ACPI: APEI: share GHES CPER helpers dt-bindings: firmware: add arm,ras-cper RAS: add firmware-first CPER provider Documentation/admin-guide/RAS/main.rst | 15 + .../devicetree/bindings/firmware/arm,ras-cper.yaml | 52 + MAINTAINERS | 6 + drivers/Makefile | 2 + drivers/acpi/Kconfig | 9 + drivers/acpi/acpi_extlog.c | 7 +- drivers/acpi/apei/Kconfig | 2 + drivers/acpi/apei/Makefile | 1 - drivers/acpi/apei/ghes.c | 1129 +------------------ drivers/acpi/apei/ghes_cper.c | 1159 ++++++++++++++++++++ drivers/edac/ghes_edac.c | 38 +- drivers/firmware/efi/cper-x86.c | 1 + drivers/firmware/efi/cper.c | 3 + drivers/pci/pcie/aer.c | 4 +- drivers/ras/Kconfig | 13 + drivers/ras/Makefile | 1 + drivers/ras/cper-esource.c | 356 ++++++ include/acpi/ghes.h | 11 +- include/acpi/ghes_cper.h | 154 +++ include/cxl/event.h | 4 +- 20 files changed, 1825 insertions(+), 1142 deletions(-) --- base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244 change-id: 20260220-topics-ahmtib01-ras_ffh_arm_internal_review-bfddc7fc7cab Best regards, -- Ahmed Tiba <[email protected]>
