Qualcomm Technologies, Inc. (QTI) RPM Master Stats
Schema identifier ($id): "http://devicetree.org/schemas/soc/qcom/qcom,rpm-master-stats.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Konrad Dybcio <konradybcio@kernel.org>"
The Qualcomm RPM (Resource Power Manager) architecture includes a concept of "RPM Masters". They can be thought of as "the local gang leaders", usually spanning a single subsystem (e.g. APSS, ADSP, CDSP). All of the RPM decisions (particularly around entering hardware-driven low power modes: XO shutdown and total system-wide power collapse) are first made at Master-level, and only then aggregated for the entire system.
The Master Stats provide a few useful bits that can be used to assess whether our device has entered the desired low-power mode, how long it took to do so, the duration of that residence, how long it took to come back online, how many times a given sleep state was entered and which cores are actively voting for staying awake.
This scheme has been used on various SoCs in the 2013-2023 era, with some newer or higher-end designs providing this information through an SMEM query.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qcom,rpm-master-stats"
qcom,rpm-msg-ram — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Phandle to an RPM MSG RAM slice containing the master stats
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
Array item rules (items) #
Maximum number of items (
maxItems):1
qcom,master-names — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
The name of the RPM Master which owns the MSG RAM slice where this instance of Master Stats resides
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
Required in this object (required): "compatible", "qcom,rpm-msg-ram", "qcom,master-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
stats {
compatible = "qcom,rpm-master-stats";
qcom,rpm-msg-ram = <&apss_master_stats>,
<&mpss_master_stats>,
<&adsp_master_stats>,
<&cdsp_master_stats>,
<&tz_master_stats>;
qcom,master-names = "APSS",
"MPSS",
"ADSP",
"CDSP",
"TZ";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)