powerpc/64s/exception: Soft NMI interrupt should not use ret_from_except
authorNicholas Piggin <npiggin@gmail.com>
Tue, 25 Feb 2020 17:35:31 +0000 (03:35 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 1 Apr 2020 02:42:13 +0000 (13:42 +1100)
commit71c3b05a8083d8774ca66c89672d29d7bf33813e
tree79f6acc24e15d075528bd29c146684cd60319dd8
parentb44fc96d7ba96eeb6cf59d0a95d1d35cb7f076d3
powerpc/64s/exception: Soft NMI interrupt should not use ret_from_except

The soft NMI handler does not reconcile interrupt state, so it should
not return via the normal ret_from_except path. Return like other NMIs,
using the EXCEPTION_RESTORE_REGS macro.

This becomes important when the scv interrupt is implemented, which
must handle soft-masked interrupts that have r13 set to something
other than the PACA -- returning to kernel in this case must restore
r13.

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-23-npiggin@gmail.com
arch/powerpc/kernel/exceptions-64s.S