Thread (12 messages) 12 messages, 4 authors, 2021-11-18
STALE1701d
Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH 0/3] Add RPM sleep stats for MSM8916

From: Stephan Gerhold <stephan@gerhold.net>
Date: 2021-10-18 11:10:44
Also in: linux-arm-msm

MSM8916 is similar to the other SoCs that had the RPM stats node added
in commit 290bc68 ("arm64: dts: qcom: Enable RPM Sleep stats").
However, the dynamic offset readable at 0x14 seems only available on
some of the newer RPM firmware versions.

To be absolutely sure, this series adds a new qcom,rpm-legacy-stats
compatible that reads the sleep stats from a fixed offset of 0xdba0.
This approach was originally suggested by Maulik Shah in:
https://lore.kernel.org/linux-arm-msm/c22d57cc-025b-5a8c-91d5-5385292da49f@codeaurora.org/ (local)

Stephan Gerhold (3):
  dt-bindings: soc: qcom: stats: Document qcom,rpm-legacy-stats
  soc: qcom: stats: Add fixed sleep stats offset for older RPM firmwares
  arm64: dts: qcom: msm8916: Add RPM sleep stats

 .../devicetree/bindings/soc/qcom/qcom-stats.yaml       |  2 ++
 arch/arm64/boot/dts/qcom/msm8916.dtsi                  |  5 +++++
 drivers/soc/qcom/qcom_stats.c                          | 10 ++++++++++
 3 files changed, 17 insertions(+)

-- 
2.33.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help