Skip to content
Commit 5cd474e5 authored by D Scott Phillips's avatar D Scott Phillips Committed by Will Deacon
Browse files

arm64: sdei: abort running SDEI handlers during crash

Interrupts are blocked in SDEI context, per the SDEI spec: "The client
interrupts cannot preempt the event handler." If we crashed in the SDEI
handler-running context (as with ACPI's AGDI) then we need to clean up the
SDEI state before proceeding to the crash kernel so that the crash kernel
can have working interrupts.

Track the active SDEI handler per-cpu so that we can COMPLETE_AND_RESUME
the handler, discarding the interrupted context.

Fixes: f5df2696

 ("arm64: kernel: Add arch-specific SDEI entry code and CPU masking")
Signed-off-by: default avatarD Scott Phillips <scott@os.amperecomputing.com>
Cc: stable@vger.kernel.org
Reviewed-by: default avatarJames Morse <james.morse@arm.com>
Tested-by: default avatarMihai Carabas <mihai.carabas@oracle.com>
Link: https://lore.kernel.org/r/20230627002939.2758-1-scott@os.amperecomputing.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent b9d60124
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment