[PATCH dt-schema 1/2] schemas: chosen: Generalize linux,elfcorehdr and linux,usable-memory-range

Subsystems: the rest

STALE1794d

3 messages, 2 authors, 2021-09-03 · open the first message on its own page

[PATCH dt-schema 1/2] schemas: chosen: Generalize linux,elfcorehdr and linux,usable-memory-range

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2021-09-01 15:13:27

The properties "linux,elfcorehdr" and "linux,usable-memory-range" are no
longer limited to arm64.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 schemas/chosen.yaml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/schemas/chosen.yaml b/schemas/chosen.yaml
index b93cd1dfd7d26bda..78b87cb1b2b7fb87 100644
--- a/schemas/chosen.yaml
+++ b/schemas/chosen.yaml
@@ -78,17 +78,17 @@ properties:
     $ref: types.yaml#/definitions/uint64-array
     maxItems: 2
     description:
-      This property (currently used only on arm64) holds the memory range,
-      the address and the size, of the elf core header which mainly describes
-      the panicked kernel\'s memory layout as PT_LOAD segments of elf format.
+      This property holds the memory range, the address and the size, of the
+      elf core header which mainly describes the panicked kernel\'s memory
+      layout as PT_LOAD segments of elf format.
 
   linux,usable-memory-range:
     $ref: types.yaml#/definitions/uint64-array
     maxItems: 2
     description: |
-      This property (arm64 only) holds a base address and size, describing a
-      limited region in which memory may be considered available for use by
-      the kernel. Memory outside of this range is not available for use.
+      This property holds a base address and size, describing a limited region
+      in which memory may be considered available for use by the kernel. Memory
+      outside of this range is not available for use.
 
       This property describes a limitation: memory within this range is only
       valid when also described through another mechanism that the kernel
-- 
2.25.1

[PATCH dt-schema 2/2] schemas: chosen: Improve linux,elfcorehdr documentation

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2021-09-01 15:13:27

Add an example for the "linux,elfcorehdr" property, and clarify the
length of its address and size.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 schemas/chosen.yaml | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/schemas/chosen.yaml b/schemas/chosen.yaml
index 78b87cb1b2b7fb87..d66d10ad3cad0654 100644
--- a/schemas/chosen.yaml
+++ b/schemas/chosen.yaml
@@ -77,11 +77,21 @@ properties:
   linux,elfcorehdr:
     $ref: types.yaml#/definitions/uint64-array
     maxItems: 2
-    description:
+    description: |
       This property holds the memory range, the address and the size, of the
       elf core header which mainly describes the panicked kernel\'s memory
       layout as PT_LOAD segments of elf format.
 
+      / {
+              chosen {
+                      linux,elfcorehdr = <0x9 0xfffff000 0x0 0x800>;
+              };
+      };
+
+      While this property does not represent a real hardware, the address
+      and the size are expressed in #address-cells and #size-cells,
+      respectively, of the root node.
+
   linux,usable-memory-range:
     $ref: types.yaml#/definitions/uint64-array
     maxItems: 2
-- 
2.25.1

Re: [PATCH dt-schema 1/2] schemas: chosen: Generalize linux,elfcorehdr and linux,usable-memory-range

From: Rob Herring <robh@kernel.org>
Date: 2021-09-03 21:15:09

On Wed, 01 Sep 2021 17:13:09 +0200, Geert Uytterhoeven wrote:
The properties "linux,elfcorehdr" and "linux,usable-memory-range" are no
longer limited to arm64.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 schemas/chosen.yaml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Applied both, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help