powerpc/crash: save cpu register data in crash_smp_send_stop()
authorHari Bathini <hbathini@linux.ibm.com>
Thu, 30 Jun 2022 06:49:42 +0000 (12:19 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 Jul 2022 06:22:13 +0000 (16:22 +1000)
commitc7255058b5430b5c42932383bd8887d591e7973a
treeb02547d7bd2f188ed0e492d7b1dd3fe1165e4186
parent51ac6d4ceaa4f2e878c1aa399135f2514a6acc24
powerpc/crash: save cpu register data in crash_smp_send_stop()

During kdump, two set of NMI IPIs are sent to secondary CPUs, if
'crash_kexec_post_notifiers' option is set. The first set of NMI IPIs
to stop the CPUs and the other set to collect register data. Instead,
capture register data for secondary CPUs while stopping them itself.
Also, fallback to smp_send_stop() in case the function gets called
without kdump configured.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220630064942.192283-1-hbathini@linux.ibm.com
arch/powerpc/include/asm/kexec.h
arch/powerpc/kernel/smp.c
arch/powerpc/kexec/crash.c