[PATCH V2 0/2] riscv: kexec: Fixup crash_save percpu and machine_kexec_mask_interrupts

From: guoren
Date: Wed Aug 17 2022 - 12:14:32 EST


From: Guo Ren <guoren@xxxxxxxxxxxxxxxxx>

Current riscv kexec can't crash_save percpu states and disable
interrupts properly. The patch series fix them, make kexec work correct.

Changes in v2:
- Add Fixes tags
- Remove extern from bool smp_crash_stop_failed(void)

v1: https://lore.kernel.org/linux-riscv/20220816012701.561435-1-guoren@xxxxxxxxxx/

Guo Ren (2):
riscv: kexec: Disable all interrupts in kexec crash path
riscv: kexec: Fixup crash_smp_send_stop with percpu crash_save_cpu

arch/riscv/include/asm/smp.h | 6 +++
arch/riscv/kernel/machine_kexec.c | 44 +++++++++++----
arch/riscv/kernel/smp.c | 89 ++++++++++++++++++++++++++++++-
3 files changed, 126 insertions(+), 13 deletions(-)

--
2.36.1