powerpc: Do not call ppc_md.panic in fadump panic notifier
authorNicholas Piggin <npiggin@gmail.com>
Wed, 5 Jul 2017 03:56:25 +0000 (13:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 31 Aug 2017 04:26:01 +0000 (14:26 +1000)
commita3b2cb30f252b21a6f962e0dd107c8b897ca65e4
treebf86a40c29ce9aebfdb76284435a8f09badaf818
parent70412c55d419e971785094e9f7880fdbcd690520
powerpc: Do not call ppc_md.panic in fadump panic notifier

If fadump is not registered, and no other crash or debug handlers are
registered, the powerpc panic handler stops the guest before the
generic panic code can push out debug information to the console.

Currently, system reset injection causes the guest to silently stop.

Stop calling ppc_md.panic in the panic notifier. crash_fadump already
does rtas_os_term() to terminate the guest if fadump is registered.

Remove ppc_md.panic. Move fadump panic notifier into fadump code.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/machdep.h
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/fadump.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/platforms/ps3/setup.c
arch/powerpc/platforms/pseries/setup.c