linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/3] riscv: kexec: Fixup crash_save percpu and machine_kexec_mask_interrupts
@ 2022-08-19  2:54 guoren
  2022-08-19  2:54 ` [PATCH V3 1/3] riscv: kexec: Disable all interrupts in kexec crash path guoren
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: guoren @ 2022-08-19  2:54 UTC (permalink / raw)
  To: xianting.tian, palmer, heiko, guoren, conor.dooley
  Cc: linux-arch, linux-kernel, linux-riscv, liaochang1, mick, jszhang,
	Guo Ren

From: Guo Ren <guoren@linux.alibaba.com>

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

Also cleanup arm64, x86 declarations in asm/smp.h.

Changlogs:

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

Changes in v3:
 - Fixup compile problem with !SMP, which reported by lkp@intel.com
 - Cleanup declarations in asm/smp.h
 - Add reviewed-by

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

Guo Ren (3):
  riscv: kexec: Disable all interrupts in kexec crash path
  riscv: kexec: Fixup crash_smp_send_stop with percpu crash_save_cpu
  arch: crash: Remove duplicate declaration in smp.h

 arch/arm64/include/asm/smp.h      |  1 -
 arch/riscv/include/asm/smp.h      |  3 ++
 arch/riscv/kernel/machine_kexec.c | 46 ++++++++++++----
 arch/riscv/kernel/smp.c           | 89 ++++++++++++++++++++++++++++++-
 arch/x86/include/asm/crash.h      |  1 -
 5 files changed, 125 insertions(+), 15 deletions(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-20  9:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-19  2:54 [PATCH V3 0/3] riscv: kexec: Fixup crash_save percpu and machine_kexec_mask_interrupts guoren
2022-08-19  2:54 ` [PATCH V3 1/3] riscv: kexec: Disable all interrupts in kexec crash path guoren
2022-08-19  2:54 ` [PATCH V3 2/3] riscv: kexec: Fixup crash_smp_send_stop with percpu crash_save_cpu guoren
2022-08-19  2:54 ` [PATCH V3 3/3] arch: crash: Remove duplicate declaration in smp.h guoren
2022-08-20  9:41   ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).