From: Eddie James <eajames@linux.ibm.com> Date: 2025-02-11 16:21:12
In non-smp configurations, crash_kexec_prepare is never called in
the crash shutdown path. One result of this is that the crashing_cpu
variable is never set, preventing crash_save_cpu from storing the
NT_PRSTATUS elf note in the core dump.
Fixes: c7255058b543 ("powerpc/crash: save cpu register data in crash_smp_send_stop()")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
Changes since v1:
- Use if (IS_ENABLED(CONFIG_SMP)) instead of #ifdef CONFIG_SMP
arch/powerpc/kexec/crash.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
From: Hari Bathini <hbathini@linux.ibm.com> Date: 2025-02-17 06:34:09
Hi Eddie,
On 11/02/25 9:50 pm, Eddie James wrote:
In non-smp configurations, crash_kexec_prepare is never called in
the crash shutdown path. One result of this is that the crashing_cpu
variable is never set, preventing crash_save_cpu from storing the
NT_PRSTATUS elf note in the core dump.
Thanks for fixing this.
Looks good to me.
Reviewed-by: Hari Bathini <hbathini@linux.ibm.com>
quoted hunk
Fixes: c7255058b543 ("powerpc/crash: save cpu register data in crash_smp_send_stop()")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
Changes since v1:
- Use if (IS_ENABLED(CONFIG_SMP)) instead of #ifdef CONFIG_SMP
arch/powerpc/kexec/crash.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
On Tue, 11 Feb 2025 10:20:54 -0600, Eddie James wrote:
In non-smp configurations, crash_kexec_prepare is never called in
the crash shutdown path. One result of this is that the crashing_cpu
variable is never set, preventing crash_save_cpu from storing the
NT_PRSTATUS elf note in the core dump.