Re: [PATCH] arm64: sdei: add sdei_nmi.disabled= to keep the GIC NMI path reachable
From: Kiryl Shutsemau (Meta)
Date: Tue Nov 24 2026 - 13:12:15 EST
On Mon, Nov 23, 2026 at 11:32:22AM +0800, Jinjie Ruan wrote:
> While the SDEI cross-CPU NMI is active it claims every cross-CPU
> backtrace, so on a platform whose firmware exposes SDEI event 0
> the irqchip NMI path can never be used. There is no way to opt out.
>
> Add a boot parameter "sdei_nmi.disabled".
>
> With sdei_nmi.disabled=1, the SDEI NMI stays registered and simply
> declines every request, so arch_trigger_cpumask_backtrace() falls
> through to its IPI path and smp_send_stop() skips its SDEI rung.
Why keep event 0 registered and enabled when the switch is on?
If sdei_nmi_init() returns before sdei_event_register(),
sdei_nmi_available stays false and both hooks already decline.
Then the flag is read only at init and can be __initdata. None of the
other hunks are needed. The check in sdei_nmi_stop_cpus() is not
reachable anyway: smp_send_stop() calls it only after sdei_nmi_active().
--
Kiryl Shutsemau / Kirill A. Shutemov