aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2017-04-02 22:26:06 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2017-04-05 13:32:39 -0400
commitfcbd4bb71e913d4be7a6d39f622479499bb73bfe (patch)
tree49199a856a4a68a19b120ff56b3e59284fbdc817
parent0ceb7d887ed6cf22d84657fa31a1521a7e935473 (diff)
Documentation: dt: chosen properties for arm64 kdump
Add documentation for DT properties: linux,usable-memory-range linux,elfcorehdr used by arm64 kdump. Those are, respectively, a usable memory range allocated to crash dump kernel and the elfcorehdr's location within it. Signed-off-by: James Morse <james.morse@arm.com> [takahiro.akashi@linaro.org: update the text due to recent changes ] Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Cc: Rob Herring <robh+dt@kernel.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--Documentation/devicetree/bindings/chosen.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/chosen.txt b/Documentation/devicetree/bindings/chosen.txt
index 6ae9d82d4c37..b5e39af4ddc0 100644
--- a/Documentation/devicetree/bindings/chosen.txt
+++ b/Documentation/devicetree/bindings/chosen.txt
@@ -52,3 +52,48 @@ This property is set (currently only on PowerPC, and only needed on
52book3e) by some versions of kexec-tools to tell the new kernel that it 52book3e) by some versions of kexec-tools to tell the new kernel that it
53is being booted by kexec, as the booting environment may differ (e.g. 53is being booted by kexec, as the booting environment may differ (e.g.
54a different secondary CPU release mechanism) 54a different secondary CPU release mechanism)
55
56linux,usable-memory-range
57-------------------------
58
59This property (arm64 only) holds a base address and size, describing a
60limited region in which memory may be considered available for use by
61the kernel. Memory outside of this range is not available for use.
62
63This property describes a limitation: memory within this range is only
64valid when also described through another mechanism that the kernel
65would otherwise use to determine available memory (e.g. memory nodes
66or the EFI memory map). Valid memory may be sparse within the range.
67e.g.
68
69/ {
70 chosen {
71 linux,usable-memory-range = <0x9 0xf0000000 0x0 0x10000000>;
72 };
73};
74
75The main usage is for crash dump kernel to identify its own usable
76memory and exclude, at its boot time, any other memory areas that are
77part of the panicked kernel's memory.
78
79While this property does not represent a real hardware, the address
80and the size are expressed in #address-cells and #size-cells,
81respectively, of the root node.
82
83linux,elfcorehdr
84----------------
85
86This property (currently used only on arm64) holds the memory range,
87the address and the size, of the elf core header which mainly describes
88the panicked kernel's memory layout as PT_LOAD segments of elf format.
89e.g.
90
91/ {
92 chosen {
93 linux,elfcorehdr = <0x9 0xfffff000 0x0 0x800>;
94 };
95};
96
97While this property does not represent a real hardware, the address
98and the size are expressed in #address-cells and #size-cells,
99respectively, of the root node.