Nick Kossifidis 5640975003
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>
2021-04-26 08:25:24 -07:00
..
2020-03-31 11:28:30 -07:00
2020-03-31 11:28:30 -07:00
2021-04-26 08:25:24 -07:00
2021-04-26 08:25:23 -07:00
2020-10-02 14:31:28 -07:00
2020-10-02 14:30:57 -07:00
2020-06-09 19:11:24 -07:00
2021-04-26 08:25:23 -07:00
2021-04-26 08:25:23 -07:00
2021-04-26 08:25:24 -07:00
2021-02-27 08:29:02 -08:00
2021-04-26 08:25:10 -07:00
2021-04-26 08:25:24 -07:00
2021-01-14 15:09:08 -08:00
2021-04-26 08:25:10 -07:00
2021-01-07 19:00:50 -08:00
2021-04-26 08:25:09 -07:00