[PATCH v3] ARM: Parse kdump DT properties
Linus Walleij
linus.walleij at linaro.org
Thu May 6 05:43:26 PDT 2021
On Wed, Mar 17, 2021 at 12:31 PM Geert Uytterhoeven
<geert+renesas at glider.be> 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 at 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
More information about the linux-arm-kernel
mailing list