[PATCH v2 00/39] arm64: Add support for FEAT_NMI
Jinjie Ruan
ruanjinjie at huawei.com
Mon Nov 16 03:01:20 PST 2026
在 2026/11/16 18:02, Vladimir Murzin 写道:
> Hi Jinjie,
>
> On 11/16/26 06:58, Jinjie Ruan wrote:
>> Hi, Vladimir,
>>
>> While testing this patch set, I discovered IPI as NMI now defaults to
>> using SDEI, and the FEAT_NMI cannot cover this path..
>>
>
> Can you please expand on that? Sashiko has several comments related to
> interaction with SDEI which I'm planing to dig into. However, glancing
I mean the following code now prefer sdei nmi now, we can not use FEAT_NMI:
954 void arch_trigger_cpumask_backtrace(const cpumask_t *mask, int
exclude_cpu)
955 {
956 /*
957 * Prefer the SDEI cross-CPU NMI provider when active: firmware
958 * dispatches the event out of EL3 and reaches CPUs that have
959 * interrupts locally masked, without the per-IRQ-mask cost
that
960 * pseudo-NMI pays for the same reach. The plain IPI path below
961 * can't reach such a CPU unless pseudo-NMI is enabled.
962 */
963 if (sdei_nmi_trigger_cpumask_backtrace(mask, exclude_cpu))
964 return;
965
966 /*
967 * NOTE: though nmi_trigger_cpumask_backtrace() has "nmi_"
in the name,
968 * nothing about it truly needs to be implemented using an
NMI, it's
969 * just that it's _allowed_ to work with NMIs. If
ipi_should_be_nmi()
970 * returned false our backtrace attempt will just use a
regular IPI.
971 */
972 nmi_trigger_cpumask_backtrace(mask, exclude_cpu,
arm64_backtrace_ipi);
973 }
> over smp_send_stop() IPI as NMI is kind of try and see approach:
>
> try normal IPI
> if CPU is still online
> try NMI IPI
> if CPU is still online
> try SDEI NMI
> if CPU is still online
> give up
>
> So, if NMI IPI did not trigger in your test, I'm really keen on details.
>
> Thanks
> Vladimir
More information about the linux-arm-kernel
mailing list