[PATCH v2 00/39] arm64: Add support for FEAT_NMI

Ashok Raj ashok.raj at oss.qualcomm.com
Fri Nov 13 21:03:04 PST 2026


On Thu, Nov 12, 2026 at 01:20:03PM +0000, Vladimir Murzin wrote:
> FEAT_NMI provides an architected mechanism for supporting non-maskable
> interrupts (NMIs) and less-masked interrupts (LMIs).
> 
> Since we already support pseudo-NMIs via priority masking, introducing
> another flavour of NMI on top of the existing infrastructure could
> easily become messy, making the code harder to follow and reason
> about.
> 
> To avoid that, this series first makes room for the new NMI "tenant"
> by restructuring the existing exception masking logic.
> 
> The main idea is to separate the logical view of exception state from
> its hardware representation. To achieve this, we introduce logical
> exception contexts that can be mapped onto the corresponding hardware
> state. This naturally consolidates the hardware-specific handling into
> a small number of places, while allowing the rest of the code to
> operate purely in terms of logical exception contexts.
> 
> Since this restructuring is non-trivial and carries a risk of subtle
> behavioural changes, the series adds extensive debug checks to verify
> that the hardware state always matches the expected logical state.
> 
> With this restructuring in place, wiring FEAT_NMI into the new
> framework becomes much more manageable. GIC support for NMI is build
> on top.
> 
> This work would not have been possible without the contributions of
> Ada Couprie Diaz, Mark Brown, and Lorenzo Pieralisi - please credit
> them for everything that works well. Any remaining bugs or issues are
> entirely my own.
> 
> Most of the testing has been done on QEMU, Fast Model and pre-silicon
> environment, so the series definitely benefit from extensive testing
> on real hardware (without NMI, with pseudo-NMI, and with FEAT_NMI).

Thanks Vladimir

I have tested this series on QEMU and also another dev platform and they
work.

I have a small change, I'll submit after sanitizing my patch and running
couple more tests. 

I haven't reviewed the series which I'll do next :-)

Cheers,
Ashok



More information about the linux-arm-kernel mailing list