]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7cdd7e95c62c048d84f8e8e9eb103ceea81cd2c9
treebf86a40c29ce9aebfdb76284435a8f09badaf818
parent0c4660868619f2d772f7f68bfd62ac3e5f372e82
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