Skip to content

RISC-V: Add kexec/kdump support

Nick Kossifidis linux-devicetree linux-riscv lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 8 repliesIn review
  2. v35 patches 20 repliesSuperseded
  3. v23 patches 8 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches9 repliesSuperseded

Changes in v4 from the cover letter

* Rebase on top of "fixes" branch
* Resolve Alex's comments

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5RISC-V: Add EM_RISCV to kexec UAPI headerinclude/uapi/linux/kexec.h+1 -00 replies
2/5RISC-V: Add kexec supportarch/riscv/Kconfig arch/riscv/include/asm/kexec.h arch/riscv/kernel/Makefile +2 more+412 -00 replies
3/5RISC-V: Improve init_resourcesarch/riscv/kernel/setup.c+46 -450 replies
4/5RISC-V: Add kdump supportarch/riscv/include/asm/elf.h arch/riscv/include/asm/kexec.h arch/riscv/kernel/Makefile +5 more+249 -270 replies
5/5RISC-V: Add crash kernel supportarch/riscv/Kconfig arch/riscv/kernel/Makefile arch/riscv/kernel/crash_dump.c +2 more+102 -08 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/5] RISC-V: Add kexec/kdump support

This patch series adds kexec/kdump and crash kernel support on RISC-V. For testing the patches a patched version of kexec-tools is needed (still a work in progress) which can be found at:

https://riscv.ics.forth.gr/kexec-tools-patched.tar.xz

v4:
* Rebase on top of "fixes" branch
* Resolve Alex's comments

v3:
* Rebase on newer kernel tree
* Minor cleanups
* Split UAPI changes to a separate patch
* Improve / cleanup init_resources
* Resolve Palmer's comments

v2:
* Rebase on newer kernel tree
* Minor cleanups
* Properly populate the ioresources tre, so that it can be used later on for implementing strict /dev/mem
* Use linux,usable-memory on /memory instead of a new binding
* USe a reserved-memory node for ELF core header

Nick Kossifidis (5):
RISC-V: Add EM_RISCV to kexec UAPI header
RISC-V: Add kexec support
RISC-V: Improve init_resources
RISC-V: Add kdump support
RISC-V: Add crash kernel support

 arch/riscv/Kconfig                  |  25 ++++
 arch/riscv/include/asm/elf.h        |   6 +
 arch/riscv/include/asm/kexec.h      |  56 +++++++
 arch/riscv/kernel/Makefile          |   6 +
 arch/riscv/kernel/crash_dump.c      |  46 ++++++
 arch/riscv/kernel/crash_save_regs.S |  56 +++++++
 arch/riscv/kernel/kexec_relocate.S  | 223 ++++++++++++++++++++++++++++
 arch/riscv/kernel/machine_kexec.c   | 193 ++++++++++++++++++++++++
 arch/riscv/kernel/setup.c           | 114 ++++++++------
 arch/riscv/mm/init.c                | 104 +++++++++++++
 include/uapi/linux/kexec.h          |   1 +
 11 files changed, 784 insertions(+), 46 deletions(-)
 create mode 100644 arch/riscv/include/asm/kexec.h
 create mode 100644 arch/riscv/kernel/crash_dump.c
 create mode 100644 arch/riscv/kernel/crash_save_regs.S
 create mode 100644 arch/riscv/kernel/kexec_relocate.S
 create mode 100644 arch/riscv/kernel/machine_kexec.c
Signature · 1 line
2.26.2