This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BACKPORT: arm64: acpi: Make apei_claim_sea() synchronise with APEI's …
…irq work APEI is unable to do all of its error handling work in nmi-context, so it defers non-fatal work onto the irq_work queue. arch_irq_work_raise() sends an IPI to the calling cpu, but this is not guaranteed to be taken before returning to user-space. Unless the exception interrupted a context with irqs-masked, irq_work_run() can run immediately. Otherwise return -EINPROGRESS to indicate ghes_notify_sea() found some work to do, but it hasn't finished yet. With this apei_claim_sea() returning '0' means this external-abort was also notification of a firmware-first RAS error, and that APEI has processed the CPER records. This patch is needed because Quicksilver firmware-first error handling uses the SDEI notification type for communication between trusted firmware and the OS. This adds needed NMI and SDEI functionality so that the SDEI path in the kernel through APEI acts as an NMI and is properly wired up to the APEI interfaces. Backported from: https://patchwork.kernel.org/patch/10786985/ Signed-off-by: James Morse <[email protected]> Reviewed-by: Punit Agrawal <[email protected]> Tested-by: Tyler Baicar <[email protected]> Acked-by: Catalin Marinas <[email protected]> CC: Xie XiuQi <[email protected]> CC: gengdongjiu <[email protected]> Reviewed-by: Julien Thierry <[email protected]> Signed-off-by: Tyler Baicar <[email protected]>
- Loading branch information