Skip to content

Commit

Permalink
schemas: memory: Add ECC properties
Browse files Browse the repository at this point in the history
Some memories provide ECC detection and/or correction. For software which
wants to check memory, it is helpful to see which regions provide this
feature.

Add this as a property of the /memory nodes, since it presumably follows
the hardware-level memory system.

Signed-off-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20230926194242.2732127-1-sjg@chromium.org
Signed-off-by: Rob Herring <robh@kernel.org>
  • Loading branch information
sjg20 authored and robherring committed Oct 16, 2023
1 parent 0808da2 commit 5d76ad1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dtschema/schemas/memory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@ patternProperties:
For the purpose of identification, each NUMA node is associated with
a unique token known as a node id.

ecc-detection-bits:
default: 0
description: |
If present, this indicates the number of bits of memory error which
can be detected and reported by the Error-Correction Code (ECC) memory
subsystem (typically 0, 1 or 2).
ecc-correction-bits:
default: 0
description: |
If present, this indicates the number of bits of memory error which
can be corrected by the Error-Correction Code (ECC) memory subsystem
(typically 0, 1 or 2).
required:
- device_type
Expand Down

0 comments on commit 5d76ad1

Please sign in to comment.