diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-08-11 10:51:01 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2021-08-24 17:09:01 -0500 |
commit | f7e7ce93aac13118281bcef8407b5df1a6b16822 (patch) | |
tree | 66723780c2fd2311f690d79a26d45631b873fa3e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 33709413014cd5b8e54d4d9efa07a30ba028e1db (diff) |
of: fdt: Add generic support for handling elf core headers property
There are two methods to specify the location of the elf core headers:
using the "elfcorehdr=" kernel parameter, as handled by generic code in
kernel/crash_dump.c, or using the "linux,elfcorehdr" property under the
"/chosen" node in the Device Tree, as handled by architecture-specific
code in arch/arm64/mm/init.c.
Extend support for "linux,elfcorehdr" to all platforms supporting DT by
adding platform-agnostic handling for handling this property to the FDT
core code. This can co-exist safely with the architecture-specific
handling, until the latter has been removed.
This requires moving the call to of_scan_flat_dt() up, as the code
scanning the "/chosen" node now needs to be aware of the values of
"#address-cells" and "#size-cells".
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/c7e46e50aaf87ef49bdaa61358d25b122f32b7df.1628670468.git.geert+renesas@glider.be
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions