Re: [PATCH v3] ARM: Parse kdump DT properties
From: Linus Walleij <hidden>
Date: 2021-05-06 12:43:42
Also in:
kexec, linux-devicetree, linux-renesas-soc, lkml
From: Linus Walleij <hidden>
Date: 2021-05-06 12:43:42
Also in:
kexec, linux-devicetree, linux-renesas-soc, lkml
On Wed, Mar 17, 2021 at 12:31 PM Geert Uytterhoeven [off-list ref] wrote:
Parse the following DT properties in the crash dump kernel, to provide a
modern interface between kexec and the crash dump kernel:
- linux,elfcorehdr: ELF core header segment, similar to the
"elfcorehdr=" kernel parameter.
- linux,usable-memory-range: Usable memory reserved for the crash dump
kernel.
This makes the memory reservation explicit. If present, Linux no
longer needs to mask the program counter, and rely on the "mem="
kernel parameter to obtain the start and size of usable memory.
For backwards compatibility, the traditional method to derive the start
of memory is still used if "linux,usable-memory-range" is absent, and
the "elfcorehdr=" and "mem=" kernel parameters are still parsed.
Loosely based on the ARM64 version by Akashi Takahiro.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>I like the approach overall. I see Rob has some comments that need adressing. The chosen.txt file needs an example of how to use this so people can intuitively get it right if they want to play with it, it was at least the first question in my head: how does that look in practice? Yours, Linus Walleij _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel