[Linaro-acpi] [PATCH 0/3] Interrupt priority patch set
Lurndal, Scott
Scott.Lurndal at caviumnetworks.com
Mon Aug 26 14:31:50 EDT 2013
> On Mon, Aug 26, 2013 at 05:29:10PM +0000, Lurndal, Scott wrote:
> > The System Error Int/Exception (known on armv7 as ABORT) is a bit closer
> > to the semantics that NMI provides on x86 (with the exception that the
> > SEI can be masked by the PSTATE.A flag). I don't believe that linux currently
> > uses SEI's for any generic purpose.
>
> I can only talk about Aarch32.
>
> An abort (which, if you're referring to the PSR A flag is what you are
> referring to) is much better than an interrupt, because it can occur at
> any time from any context - except as you note when the A flag masks it.
> It gets completely out of the "irq priority" and "irq masked so can't
> receive it" problems.
Yes, the ARMv7 abort condition has been renamed to System Error in ARMv8.
>
> > Many of us have been requesting ARM to add a real non-maskable interrupt,
> > but it is claimed that prioritization is sufficient for most needs (a claim
> > with which I disagree).
>
> So I disagree with wanting a "non-maskable interrupt" - what you want is
> for the system to raise an _exception_ when something bad happens. As
> I understand it, this is exactly what happens if you have systems with
> ECC or parity. There's error codes in the fault status register for
> prefetch (instruction) and data exceptions to indicate parity errors.
Certainly, a synchronous exception is required for things that can
be detected as part of the instruction execution (e.g. attempting to
read poisoned data from somewhere in the cache hierarchy on a LD instruction).
A bit like an x86 Machine Check Exception.
There's also need for corrected error notification, which is less
time critical (more for logging and preventive maintenance) (e.g.
the CMCI threshhold stuff in x86, or errors detected by cache or
DRAM scrubbers). This should be asynchronous (imprecise).
> There's support in the architecture for external peripherals and memory
> subsystems to raise "external aborts" when things go wrong too, which
> can be precise (happen at the point when the instruction is executed)
> or imprecise (happen sometime later.)
>
Yes, this is my understanding. The syndrome data is a bit loosely
defined, in this case, however.
> OMAP does - OMAP raises aborts if you (for example) access a peripheral
> when all its clocks are turned off. On the other hand, Marvell Dove
> wedges the CPU solid when that happens.
>
Fortunately (or hopefully), the ARMv8 base server specification has
prohibited the latter behavior.
My primary concern about NMI vs. SEI is that SEI has the ability to mask the
condition when using SEI to implement a kernel/hypervisor in-band
debugging capability (i.e. the ability to interrupt & debug exception handlers,
when the corresponding processor state bits mask SEI).
scott
More information about the linux-arm-kernel
mailing list