summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorNick Kossifidis <mick@ics.forth.gr>2021-04-19 02:55:39 +0200
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-04-26 17:25:24 +0200
commit5640975003d0234da08559677e22ec25b9cb3267 (patch)
treea6707467c591146b277e5d846ef5d8fbe9d01bea /arch/riscv/include
parentRISC-V: Add kdump support (diff)
downloadlinux-5640975003d0234da08559677e22ec25b9cb3267.tar.xz
linux-5640975003d0234da08559677e22ec25b9cb3267.zip
RISC-V: Add crash kernel support
This patch allows Linux to act as a crash kernel for use with kdump. Userspace will let the crash kernel know about the memory region it can use through linux,usable-memory property on the /memory node (overriding its reg property), and about the memory region where the elf core header of the previous kernel is saved, through a reserved-memory node with a compatible string of "linux,elfcorehdr". This approach is the least invasive and re-uses functionality already present. I tested this on riscv64 qemu and it works as expected, you may test it by retrieving the dmesg of the previous kernel through /proc/vmcore, using the vmcore-dmesg utility from kexec-tools. Signed-off-by: Nick Kossifidis <mick@ics.forth.gr> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/include')
0 files changed, 0 insertions, 0 deletions