]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56f6d1b0bed61a190c85c664ae940469e4f88202
treeb02547d7bd2f188ed0e492d7b1dd3fe1165e4186
parentb3a53ee7265f81f9076df8ede36062348c74d365
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