Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Reserved memory bindings

Single-page view · as markdown

Open Profile for DICE

Peios Kernel / Hardware and drivers / Device-tree binding reference / Reserved memory bindings

Schema identifier ($id): "http://devicetree.org/schemas/reserved-memory/google,open-dice.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This binding represents a reserved memory region containing data generated by the Open Profile for DICE protocol.

See https://pigweed.googlesource.com/open-dice/

Maintainers (maintainers): "David Brazdil <dbrazdil@google.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): reserved-memory.yaml

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "google,open-dice"

reg — required here #

page-aligned region of memory containing DICE data

Required in this object (required): "compatible", "reg", "no-map"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

reserved-memory {
    #address-cells = <2>;
    #size-cells = <1>;

    dice: dice@12340000 {
        compatible = "google,open-dice";
        reg = <0x00 0x12340000 0x2000>;
        no-map;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

NVIDIA Tegra210 EMC Frequency Table

Peios Kernel / Hardware and drivers / Device-tree binding reference / Reserved memory bindings

Schema identifier ($id): "http://devicetree.org/schemas/reserved-memory/nvidia,tegra210-emc-table.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"

On Tegra210, firmware passes a binary representation of the EMC frequency table via a reserved memory region.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): reserved-memory.yaml

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra210-emc-table"

reg — required here #

region of memory reserved by firmware to pass the EMC frequency table

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg"

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Tegra CPU-NS - BPMP IPC reserved memory

Peios Kernel / Hardware and drivers / Device-tree binding reference / Reserved memory bindings

Schema identifier ($id): "http://devicetree.org/schemas/reserved-memory/nvidia,tegra264-bpmp-shmem.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Peter De Schrijver <pdeschrijver@nvidia.com>"

Define a memory region used for communication between CPU-NS and BPMP. Typically this node is created by the bootloader as the physical address has to be known to both CPU-NS and BPMP for correct IPC operation. The memory region is defined using a child node under /reserved-memory. The sub-node is named shmem@<address>.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): reserved-memory.yaml

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra264-bpmp-shmem"

reg — required here #

The physical address and size of the shared SDRAM region

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "no-map"

Examples (examples) #

reserved-memory {
    #address-cells = <2>;
    #size-cells = <2>;

    shmem@f1be0000 {
        compatible = "nvidia,tegra264-bpmp-shmem";
        reg = <0x0 0xf1be0000 0x0 0x2000>;
        no-map;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

MTD/block device in RAM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Reserved memory bindings

Schema identifier ($id): "http://devicetree.org/schemas/reserved-memory/phram.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Specifies that the reserved memory region can be used as an MTD or block device.

The "phram" node is named after the "MTD in PHysical RAM" driver which provides an implementation of this functionality in Linux.

Maintainers (maintainers): "Vincent Whitchurch <vincent.whitchurch@axis.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): reserved-memory.yaml

Rule 2 #

Shared schema rule ($ref): /schemas/mtd/mtd.yaml

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "phram"

reg — required here #

region of memory that can be used as an MTD/block device

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

reserved-memory {
    #address-cells = <1>;
    #size-cells = <1>;

    phram: flash@12340000 {
        compatible = "phram";
        label = "rootfs";
        reg = <0x12340000 0x00800000>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Qualcomm Command DB

Peios Kernel / Hardware and drivers / Device-tree binding reference / Reserved memory bindings

Schema identifier ($id): "http://devicetree.org/schemas/reserved-memory/qcom,cmd-db.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Command DB is a database that provides a mapping between resource key and the resource address for a system resource managed by a remote processor. The data is stored in a shared memory region and is loaded by the remote processor.

Some of the Qualcomm Technologies Inc SoC's have hardware accelerators for controlling shared resources. Depending on the board configuration the shared resource properties may change. These properties are dynamically probed by the remote processor and made available in the shared memory.

Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): reserved-memory.yaml

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "qcom,cmd-db"

Required in this object (required): "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

reserved-memory {
    #address-cells = <1>;
    #size-cells = <1>;
    ranges;

    reserved-memory@85fe0000 {
        reg = <0x85fe0000 0x20000>;
        compatible = "qcom,cmd-db";
        no-map;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm Remote File System Memory

Peios Kernel / Hardware and drivers / Device-tree binding reference / Reserved memory bindings

Schema identifier ($id): "http://devicetree.org/schemas/reserved-memory/qcom,rmtfs-mem.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This binding describes the Qualcomm remote filesystem memory, which serves the purpose of describing the shared memory region used for remote processors to access block device data using the Remote Filesystem protocol.

Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): reserved-memory.yaml

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "qcom,rmtfs-mem"

qcom,client-id — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

identifier of the client to use this region for buffers

qcom,use-guard-pages — not listed as required here #

Value type (type): "boolean"

Indicates that the firmware, or hardware, does not gracefully handle memory protection of this region when placed adjacent to other protected memory regions, and that padding around the used portion of the memory region is necessary. When this is set, the first and last page should be left unused, and the effective size of the region will thereby shrink with two pages.

qcom,vmid — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array of vmids of the remote processors, to set up memory protection

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "qcom,client-id"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

reserved-memory {
    #address-cells = <1>;
    #size-cells = <1>;
    ranges;

    rmtfs@86700000 {
        compatible = "qcom,rmtfs-mem";
        reg = <0x86700000 0xe0000>;
        no-map;

        qcom,client-id = <1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Ramoops oops/panic logger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Reserved memory bindings

Schema identifier ($id): "http://devicetree.org/schemas/reserved-memory/ramoops.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

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.

Maintainers (maintainers): "Kees Cook <keescook@chromium.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): reserved-memory.yaml

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ramoops"

reg — required here #

region of memory that is preserved between reboots

ecc-size — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

enables ECC support and specifies ECC buffer size in bytes

Default value (default): 0

record-size — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

maximum size in bytes of each kmsg dump

Default value (default): 0

console-size — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

size in bytes of log buffer reserved for kernel messages

Default value (default): 0

ftrace-size — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

size in bytes of log buffer reserved for function tracing and profiling

Default value (default): 0

pmsg-size — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

size in bytes of log buffer reserved for userspace messages

Default value (default): 0

mem-type — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

if present, sets the type of mapping is to be used to map the reserved region.

Default value (default): 0

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): 0

write-combined

Rule 2

Exact value (const): 1

unbuffered

Rule 3

Exact value (const): 2

cached

max-reason — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 2

Maximum value (maximum): 2147483647

If present, sets maximum type of kmsg dump reasons to store. 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 2 (KMSG_DUMP_OOPS), otherwise 5 (KMSG_DUMP_MAX).

flags — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 0

If present, pass ramoops behavioral flags (see include/linux/pstore_ram.h RAMOOPS_FLAG_* for flag values).

no-dump-oops — not listed as required here #

Deprecated (deprecated): true

Value type (type): "boolean"

Use max_reason instead. If present, and max_reason is not specified, it is equivalent to max_reason = 1 (KMSG_DUMP_PANIC).

unbuffered — not listed as required here #

Deprecated (deprecated): true

Value type (type): "boolean"

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".

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg"

At least one of these rules must match (anyOf) #

Rule 1 #

Required in this object (required): "record-size"

Rule 2 #

Required in this object (required): "console-size"

Rule 3 #

Required in this object (required): "ftrace-size"

Rule 4 #

Required in this object (required): "pmsg-size"

Examples (examples) #

/ {
    compatible = "foo";
    model = "foo";
    #address-cells = <1>;
    #size-cells = <1>;

    reserved-memory {
        #address-cells = <1>;
        #size-cells = <1>;
        ranges;

        ramoops@bfdf0000 {
            compatible = "ramoops";
            reg = <0xbfdf0000 0x10000>; /* 64kB */
            console-size = <0x8000>;    /* 32kB */
            record-size = <0x400>;      /*  1kB */
            ecc-size = <16>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 42: no ECC

Line 78: log oopses and panics

Peios Learn — documentation for Peios software.

Built with Trail.