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

Vladimir Murzin vladimir.murzin at arm.com
Thu Dec 3 07:09:05 PST 2026


Hi,

On 12/2/26 03:07, Ping Li wrote:
> 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/
> 

IMO, we have to live with all three for the forseeable future, so
users can do migration over to FEAT_NMI.

Cheers
Vladimir



More information about the linux-arm-kernel mailing list