[PATCH v3 00/44] arm64: Add support for FEAT_NMI
Jinjie Ruan
ruanjinjie at huawei.com
Wed Dec 2 19:18:55 PST 2026
在 2026/12/2 11:07, Ping Li 写道:
> Hi all,
>
> Before FEAT_NMI arrives, dropping pseudo-NMI in favour of SDEI-NMI
> looks like a pure win: the PMR tax on every irq disable/enable goes
> away, and backtrace/stop still reach IRQ-masked CPUs.
>
> But it silently loses one thing: with pseudo-NMI gone, the PMU
> interrupt falls back from NMI to a plain IRQ, so perf's old sampling
> inaccuracy comes back -- samples miss every IRQ-off critical section
> and pile up on the spin_unlock_irq* boundaries instead [1].
Hi Ping,
Enable SDEI does not drop pseudo-NMI, and perf keeps its NMI. The
only place SDEI now takes over is arch_trigger_cpumask_backtrace() ( IPI
as NMI, and the last rung of smp_send_stop()); arm_pmu_request_irq() is
untouched and still calls request_nmi() for the PMU interrupt
Best regards,
Jinjie
>
> How is the perf use case expected to be handled during this
> transition? Is SPE the expected answer?
>
> Would appreciate your thoughts.
>
> [1] https://lore.kernel.org/all/20200924110706.254996-1-alexandru.elisei@arm.com/
More information about the linux-arm-kernel
mailing list