]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xmon: Wait for secondaries before IPI'ing on system reset
authorNicholas Piggin <npiggin@gmail.com>
Mon, 19 Dec 2016 18:30:11 +0000 (04:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 Apr 2017 11:26:46 +0000 (21:26 +1000)
commita3b8dec6260211b82511d426285bd1c2b98e4e00
tree3f0c0db79e2c10d034bc3b52ad1c5307ecc27cd3
parent89915a97e893d6533b2c27f5e2ab42b5124d4f14
powerpc/xmon: Wait for secondaries before IPI'ing on system reset

An externally triggered system reset (e.g., via QEMU nmi command, or pseries
reset button) can cause system reset interrupts on all CPUs. In case this causes
xmon to be entered, it is undesirable for the primary (first) CPU into xmon to
trigger an NMI IPI to others, because this may cause a nested system reset
interrupt.

So spin for a time waiting for secondaries to join xmon before performing the
NMI IPI, similarly to what the crash dump code does.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Only do it when we come in from system reset, not via sysrq etc.]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c