]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Skip irqflags tracing for NMI in IRQs disabled context
authorJulien Thierry <julien.thierry@arm.com>
Thu, 31 Jan 2019 14:59:02 +0000 (14:59 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 6 Feb 2019 10:06:41 +0000 (10:06 +0000)
commit209b2d3d1147f718b9d4f852773761d9aefcddeb
tree21041aba5882f29bcfe841411952de0e088a5437
parentdfeb73f65743d87fa0c2483ac59bb8e9d83dcf83
arm64: Skip irqflags tracing for NMI in IRQs disabled context

When an NMI is raised while interrupts where disabled, the IRQ tracing
already is in the correct state (i.e. hardirqs_off) and should be left
as such when returning to the interrupted context.

Check whether PMR was masking interrupts when the NMI was raised and
skip IRQ tracing if necessary.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/entry.S