]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
powerpc/64s/interrupt: preserve regs->softe for NMI interrupts
authorNicholas Piggin <npiggin@gmail.com>
Wed, 30 Jun 2021 07:46:17 +0000 (17:46 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 30 Jun 2021 12:21:20 +0000 (22:21 +1000)
commit1b0482229c302a3c6afd00d6b3bf0169cf279b44
tree92e5f0357eb6e29dfd81d8578b6d75d4b4aec773
parent325678fd052259e7c05ef29060a73c705ea90432
powerpc/64s/interrupt: preserve regs->softe for NMI interrupts

If an NMI interrupt hits in an implicit soft-masked region, regs->softe
is modified to reflect that. This may not be necessary for correctness
at the moment, but it is less surprising and it's unhelpful when
debugging or adding checks.

Make sure this is changed back to how it was found before returning.

Fixes: 4ec5feec1ad0 ("powerpc/64s: Make NMI record implicitly soft-masked code as irqs disabled")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210630074621.2109197-6-npiggin@gmail.com
arch/powerpc/include/asm/interrupt.h