[PATCH v3 00/44] arm64: Add support for FEAT_NMI

Ping Li leeonion.muyu at gmail.com
Tue Dec 1 19:07:05 PST 2026


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].

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