devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Add RPM sleep stats for MSM8916
@ 2021-10-18 11:08 Stephan Gerhold
  2021-10-18 11:08 ` [PATCH 1/3] dt-bindings: soc: qcom: stats: Document qcom,rpm-legacy-stats Stephan Gerhold
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Stephan Gerhold @ 2021-10-18 11:08 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Andy Gross, linux-arm-msm, Rob Herring, devicetree,
	~postmarketos/upstreaming, Maulik Shah, Stephan Gerhold

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/

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-11-18 21:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-18 11:08 [PATCH 0/3] Add RPM sleep stats for MSM8916 Stephan Gerhold
2021-10-18 11:08 ` [PATCH 1/3] dt-bindings: soc: qcom: stats: Document qcom,rpm-legacy-stats Stephan Gerhold
2021-10-21  9:29   ` Maulik Shah
2021-10-26 23:38   ` Rob Herring
2021-10-18 11:08 ` [PATCH 2/3] soc: qcom: stats: Add fixed sleep stats offset for older RPM firmwares Stephan Gerhold
2021-10-21  9:30   ` Maulik Shah
2021-11-18  1:00   ` Bjorn Andersson
2021-11-18 10:45     ` Stephan Gerhold
2021-11-18 20:58       ` Bjorn Andersson
2021-11-18 21:26         ` Stephan Gerhold
2021-10-18 11:08 ` [PATCH 3/3] arm64: dts: qcom: msm8916: Add RPM sleep stats Stephan Gerhold
2021-10-21  9:30   ` Maulik Shah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).