All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH dt-schema 1/2] schemas: chosen: Generalize linux,elfcorehdr and linux,usable-memory-range
@ 2021-09-01 15:13 Geert Uytterhoeven
  2021-09-01 15:13 ` [PATCH dt-schema 2/2] schemas: chosen: Improve linux,elfcorehdr documentation Geert Uytterhoeven
  2021-09-03 21:15 ` [PATCH dt-schema 1/2] schemas: chosen: Generalize linux,elfcorehdr and linux,usable-memory-range Rob Herring
  0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2021-09-01 15:13 UTC (permalink / raw)
  To: Rob Herring; +Cc: devicetree, Geert Uytterhoeven

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH dt-schema 2/2] schemas: chosen: Improve linux,elfcorehdr documentation
  2021-09-01 15:13 [PATCH dt-schema 1/2] schemas: chosen: Generalize linux,elfcorehdr and linux,usable-memory-range Geert Uytterhoeven
@ 2021-09-01 15:13 ` Geert Uytterhoeven
  2021-09-03 21:15 ` [PATCH dt-schema 1/2] schemas: chosen: Generalize linux,elfcorehdr and linux,usable-memory-range Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2021-09-01 15:13 UTC (permalink / raw)
  To: Rob Herring; +Cc: devicetree, Geert Uytterhoeven

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH dt-schema 1/2] schemas: chosen: Generalize linux,elfcorehdr and linux,usable-memory-range
  2021-09-01 15:13 [PATCH dt-schema 1/2] schemas: chosen: Generalize linux,elfcorehdr and linux,usable-memory-range Geert Uytterhoeven
  2021-09-01 15:13 ` [PATCH dt-schema 2/2] schemas: chosen: Improve linux,elfcorehdr documentation Geert Uytterhoeven
@ 2021-09-03 21:15 ` Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2021-09-03 21:15 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: devicetree, Rob Herring

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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-03 21:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01 15:13 [PATCH dt-schema 1/2] schemas: chosen: Generalize linux,elfcorehdr and linux,usable-memory-range Geert Uytterhoeven
2021-09-01 15:13 ` [PATCH dt-schema 2/2] schemas: chosen: Improve linux,elfcorehdr documentation Geert Uytterhoeven
2021-09-03 21:15 ` [PATCH dt-schema 1/2] schemas: chosen: Generalize linux,elfcorehdr and linux,usable-memory-range Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.