Skip to content

Add subsystem LPM stats support for Shikra

Sneh Mankad linux-arm-msm linux-devicetree lkml 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260624-shikra_stats-3f01f136fb4c

Versions newest first

  1. v4 Latest3 patches 7 repliesApplied
  2. v33 patches 4 repliesSuperseded
  3. v23 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches10 repliesSuperseded

Changes in v4 from the cover letter

- Add bindings support to keep "qcom,rpm-stats" as fallback compatible.
- Link to v3: https://lore.kernel.org/r/[email protected]

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: soc: qcom: stats: Add compatible for ShikraDocumentation/devicetree/bindings/soc/qcom/qcom-stats.yaml+16 -91 reply
2/3soc: qcom: stats: Add stats compatible and config for Shikradrivers/soc/qcom/qcom_stats.c+9 -02 replies
3/3arm64: dts: qcom: shikra: Update rpm-stats compatible to SoC specificarch/arm64/boot/dts/qcom/shikra.dtsi+1 -12 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchKonrad DybcioMaulik ShahKomal BajajAbel Vesa
1/3R-b
2/3R-b R-b R-b R-b
3/3R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/3] Add subsystem LPM stats support for Shikra

SoC LPM stats are present in RPM MSGRAM and subsystem LPM stats are present in SMEM for Shikra.

For earlier targets using RPM processor like msm8974, rpm_master_stat.c was used for subsystem LPM stats since those stats were populated in RPM MSGRAM.

Here is a brief summary of previous targets and their stats configuration, along with the drivers used to display them.

+---------------|----------------------------|---------------------------+
| SoC           | subsystem LPM stats        | SoC LPM stats             |
|---------------|----------------------------|---------------------------|
| msm8974,      | RPM processor MSGRAM       | RPM processor MSGRAM      |
| msm8226       | (rpm_master_stat.c)        | (qcom_stats.c)            |
|---------------|----------------------------|---------------------------|
| sm6350,       | SMEM (DDR)                 | AOP processor MSGRAM      |
| sdm845, etc.  | (qcom_stats.c)             | (qcom_stats.c)            |
|---------------|----------------------------|---------------------------|
| Shikra        | SMEM (DDR)                 | RPM processor MSGRAM      |
|               | (qcom_stats.c)             | (qcom_stats.c)            |
+---------------|----------------------------|---------------------------+

qcom_stats.c supports both the configurations for shikra, reading subsystem LPM stats from SMEM and reading SoC LPM stats from RPM MSGRAM.

A generic "qcom,rpm-stats" compatible only reads SoC LPM stats like vmin and vlow. Add shikra rpm compatible and config to read subsystem LPM stats too along with SoC LPM stats.

Below is an example showing LPM stats for "apss" subsystem with this change:

cat /sys/kernel/debug/qcom_stats/apss
Count: 2192
Last Entered At: 5498618336
Last Exited At: 5498708046
Accumulated Duration: 2046572620.

Keep "qcom,rpm-stats" as a fallback compatible and add the bindings for the same.

---
Changes in v4:
- Add bindings support to keep "qcom,rpm-stats" as fallback compatible.
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- added back "qcom,rpm-stats" as a fallback compatible.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Edited commit texts to better explain the changes.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Sneh Mankad (3):
dt-bindings: soc: qcom: stats: Add compatible for Shikra
soc: qcom: stats: Add stats compatible and config for Shikra
arm64: dts: qcom: shikra: Update rpm-stats compatible to SoC specific

 .../devicetree/bindings/soc/qcom/qcom-stats.yaml   | 25 ++++++++++++++--------
 arch/arm64/boot/dts/qcom/shikra.dtsi               |  2 +-
 drivers/soc/qcom/qcom_stats.c                      |  9 ++++++++
 3 files changed, 26 insertions(+), 10 deletions(-)

---
base-commit: 4c9d9db1697a873f78d236b4ce304272206238ac
change-id: 20260624-shikra_stats-3f01f136fb4c

Best regards,

Signature · 1 line
Sneh Mankad <[email protected]>