[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9830b94a-da88-48f2-6fcd-da46b2e2ed0a@oracle.com>
Date: Thu, 20 Jul 2023 12:43:35 +0300
From: Mihai Carabas <mihai.carabas@...cle.com>
To: scott@...amperecomputing.com
Cc: catalin.marinas@....com, darren@...amperecomputing.com,
james.morse@....com, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, will@...nel.org
Subject: Re: [PATCH v6] 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: f5df26961853 ("arm64: kernel: Add arch-specific SDEI entry
code and CPU masking")
> Signed-off-by: D Scott Phillips <scott@...amperecomputing.com>
We have tested successfully this patch on Altra and AmpereOne.
Tested-by: Mihai Carabas <mihai.carabas@...cle.com>
Powered by blists - more mailing lists