Skip to contentSkip to conversation

dt-bindings: reserved-memory: ramoops: Convert txt bindings to yaml

PATCH In review David Heidelberg 2 participants 3 messages Oct 9, 2021 – Oct 10, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: reserved-memory: ramoops: Convert txt bindings to yaml

Convert ramoops driver to the YAML syntax.

---
 .../bindings/reserved-memory/ramoops.txt      |  66 ---------
 .../bindings/reserved-memory/ramoops.yaml     | 126 ++++++++++++++++++
 2 files changed, 126 insertions(+), 66 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/reserved-memory/ramoops.txt
 create mode 100644 Documentation/devicetree/bindings/reserved-memory/ramoops.yaml
Documentation/devicetree/bindings/reserved-memory/ramoops.txt deleted +0 -66
deleted file mode 100644
index b571ef6dab0f..000000000000
@@ -1,66 +0,0 @@
-Ramoops oops/panic logger
-=========================
-
-ramoops provides persistent RAM storage for oops and panics, so they can be
-recovered after a reboot. This is a child-node of "/reserved-memory", and
-is named "ramoops" after the backend, rather than "pstore" which is the
-subsystem.
-
-Parts of this storage may be set aside for other persistent log buffers, such
-as kernel log messages, or for optional ECC error-correction data.  The total
-size of these optional buffers must fit in the reserved region.
-
-Any remaining space will be used for a circular buffer of oops and panic
-records.  These records have a configurable size, with a size of 0 indicating
-that they should be disabled.
-
-At least one of "record-size", "console-size", "ftrace-size", or "pmsg-size"
-must be set non-zero, but are otherwise optional as listed below.
-
-
-Required properties:
-
-- compatible: must be "ramoops"
-
-- reg: region of memory that is preserved between reboots
-
-
-Optional properties:
-
-- ecc-size: enables ECC support and specifies ECC buffer size in bytes
-  (defaults to 0: no ECC)
-
-- record-size: maximum size in bytes of each kmsg dump.
-  (defaults to 0: disabled)
-
-- console-size: size in bytes of log buffer reserved for kernel messages
-  (defaults to 0: disabled)
-
-- ftrace-size: size in bytes of log buffer reserved for function tracing and
-  profiling (defaults to 0: disabled)
-
-- pmsg-size: size in bytes of log buffer reserved for userspace messages
-  (defaults to 0: disabled)
-
-- mem-type: if present, sets the type of mapping is to be used to map the
-  reserved region. mem-type: 0 = write-combined (default), 1 = unbuffered,
-  2 = cached.
-
-- unbuffered: deprecated, use mem_type instead. If present, and mem_type is
-  not specified, it is equivalent to mem_type = 1 and uses unbuffered mappings
-  to map the reserved region (defaults to buffered mappings mem_type = 0). If
-  both are specified -- "mem_type" overrides "unbuffered".
-
-- max-reason: if present, sets maximum type of kmsg dump reasons to store
-  (defaults to 2: log Oopses and Panics). This can be set to INT_MAX to
-  store all kmsg dumps. See include/linux/kmsg_dump.h KMSG_DUMP_* for other
-  kmsg dump reason values. Setting this to 0 (KMSG_DUMP_UNDEF), means the
-  reason filtering will be controlled by the printk.always_kmsg_dump boot
-  param: if unset, it will be KMSG_DUMP_OOPS, otherwise KMSG_DUMP_MAX.
-
-- no-dump-oops: deprecated, use max_reason instead. If present, and
-  max_reason is not specified, it is equivalent to max_reason = 1
-  (KMSG_DUMP_PANIC).
-
-- flags: if present, pass ramoops behavioral flags (defaults to 0,
-  see include/linux/pstore_ram.h RAMOOPS_FLAG_* for flag values).
Documentation/devicetree/bindings/reserved-memory/ramoops.yaml new file +126 -0

126 lines not on this page · raw message

Signature · 1 line
2.33.0
maintainer
#1 lore raw
Quoted 10 lines · David Heidelberg

Convert ramoops driver to the YAML syntax.

---
 .../bindings/reserved-memory/ramoops.txt      |  66 ---------
 .../bindings/reserved-memory/ramoops.yaml     | 126 ++++++++++++++++++
 2 files changed, 126 insertions(+), 66 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/reserved-memory/ramoops.txt
 create mode 100644 Documentation/devicetree/bindings/reserved-memory/ramoops.yaml

Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings.

Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future.

Full log is available here: https://patchwork.ozlabs.org/patch/1538758

ramoops@ac300000: 'devinfo-size' does not match any of the regexes: 'pinctrl-[0-9]+'

	arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dt.yaml
	arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml

ramoops@ffc00000: 'msg-size' does not match any of the regexes: 'pinctrl-[0-9]+'

	arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dt.yaml

ramoops@ffc00000: 'msg-size', 'no-map' do not match any of the regexes: 'pinctrl-[0-9]+'

	arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano-bahamut.dt.yaml
	arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano-griffin.dt.yaml
	arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo-pdx203.dt.yaml
	arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo-pdx206.dt.yaml
#2 lore raw
Quoted 22 lines · Rob Herring
Quoted 4 lines · David Heidelberg

Convert ramoops driver to the YAML syntax.

---

Quoted 9 lines
  .../bindings/reserved-memory/ramoops.txt      |  66 ---------
  .../bindings/reserved-memory/ramoops.yaml     | 126 
++++++++++++++++++
  2 files changed, 126 insertions(+), 66 deletions(-)

delete mode 100644
Documentation/devicetree/bindings/reserved-memory/ramoops.txt
create mode 100644
Documentation/devicetree/bindings/reserved-memory/ramoops.yaml

Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings.

Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future.

Quoted 7 lines

Full log is available here: https://patchwork.ozlabs.org/patch/1538758

ramoops@ac300000: 'devinfo-size' does not match any of the regexes: 'pinctrl-[0-9]+'

	arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dt.yaml
	arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml

doesn't exist besides oneplus bindings

Quoted 2 lines

ramoops@ffc00000: 'msg-size' does not match any of the regexes: 'pinctrl-[0-9]+'

	arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dt.yaml

doesn't exist

Quoted 6 lines

ramoops@ffc00000: 'msg-size', 'no-map' do not match any of the regexes: 'pinctrl-[0-9]+'

	arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano-bahamut.dt.yaml
	arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano-griffin.dt.yaml
	arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo-pdx203.dt.yaml
	arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo-pdx206.dt.yaml

doesn't exist and I'm not sure if no-map make sense for pstore ramoops, since it HAS to be mapped (if I understood right).

Binding should be right, I can send patches for fired warnings.

David