BPATCH=20v2=200/3=5D=20RISC-V=3A=20Add=20kexec/kdump=20support=E2=80=8B?=

Palmer Dabbelt palmer at dabbelt.com
Fri Jul 10 23:59:25 EDT 2020


On Tue, 23 Jun 2020 08:05:09 PDT (-0700), mick at ics.forth.gr wrote:
> 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. The patch is still
> a work in progress but a draft version can be found at:
>
> http://riscv.ics.forth.gr/kexec-tools.patch
>
> v2:
>  * Re-base on newer kernel tree and minor cleanups
>  * Properly populate the ioresources tree, 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 (3):
>   RISC-V: Add kexec support
>   RISC-V: Add kdump support
>   RISC-V: Add crash kernel support
>
>  arch/riscv/Kconfig                  |  24 +++
>  arch/riscv/include/asm/kexec.h      |  54 +++++++
>  arch/riscv/include/uapi/asm/elf.h   |   6 +
>  arch/riscv/kernel/Makefile          |   2 +
>  arch/riscv/kernel/crash_dump.c      |  46 ++++++
>  arch/riscv/kernel/crash_save_regs.S |  56 +++++++
>  arch/riscv/kernel/kexec_relocate.S  | 217 ++++++++++++++++++++++++++++
>  arch/riscv/kernel/machine_kexec.c   | 193 +++++++++++++++++++++++++
>  arch/riscv/kernel/setup.c           | 209 +++++++++++++++++++++++++++
>  arch/riscv/mm/init.c                | 110 ++++++++++++++
>  include/uapi/linux/kexec.h          |   1 +
>  11 files changed, 918 insertions(+)
>  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

There's some fairly straight-forward to fix issues here, LMK if you want to fix
them or if you want me to take it over.

Thanks!



More information about the linux-riscv mailing list