powerpc/64s/exception: Reconcile interrupts in system_reset
authorNicholas Piggin <npiggin@gmail.com>
Tue, 25 Feb 2020 17:35:30 +0000 (03:35 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 1 Apr 2020 02:42:12 +0000 (13:42 +1100)
commitb44fc96d7ba96eeb6cf59d0a95d1d35cb7f076d3
tree3a441ec0ccd501266234060aa50b7bc07d039275
parent2284ffea8f0c7849a80e76ec698d38506b51a4e8
powerpc/64s/exception: Reconcile interrupts in system_reset

This adds IRQ_HARD_DIS to irq_happened. Although it doesn't seem to
matter much because we're not allowed to enable irqs in an NMI
handler, the soft-irq debugging code is becoming more strict about
ensuring IRQ_HARD_DIS is in sync with MSR[EE], this may help avoid
asserts or other issues.

Add a comment explaining why MCE does not have this. Early machine
check is generally much smaller and more contained code which will
explode if you look at it wrong anyway as it runs in real mode, though
there's an argument that we should do similar reconciling for the MCE
as well.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200225173541.1549955-22-npiggin@gmail.com
arch/powerpc/kernel/exceptions-64s.S