devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add RPM sleep stats for MSM8916
@ 2021-11-19 21:39 Stephan Gerhold
  2021-11-19 21:39 ` [PATCH v2 1/3] dt-bindings: soc: qcom: stats: Document compatibles with fixed offset Stephan Gerhold
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Stephan Gerhold @ 2021-11-19 21:39 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 290bc6846547 ("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 new SoC-specific compatibles
for the older SoC that read 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/
Bjorn suggested using SoC-specific compatibles instead of a generic
qcom,rpm-legacy-stats since there seem to be more legacy variants
on even older SoCs.

Changes in v2:
  - Use SoC-specific compatibles instead of qcom,rpm-legacy-stats

Stephan Gerhold (3):
  dt-bindings: soc: qcom: stats: Document compatibles with fixed offset
  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    |  5 +++++
 arch/arm64/boot/dts/qcom/msm8916.dtsi               |  5 +++++
 drivers/soc/qcom/qcom_stats.c                       | 13 +++++++++++++
 3 files changed, 23 insertions(+)

-- 
2.34.0


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

end of thread, other threads:[~2021-12-01 15:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19 21:39 [PATCH v2 0/3] Add RPM sleep stats for MSM8916 Stephan Gerhold
2021-11-19 21:39 ` [PATCH v2 1/3] dt-bindings: soc: qcom: stats: Document compatibles with fixed offset Stephan Gerhold
2021-11-21  0:39   ` Bjorn Andersson
2021-11-30  1:47   ` Rob Herring
2021-11-19 21:39 ` [PATCH v2 2/3] soc: qcom: stats: Add fixed sleep stats offset for older RPM firmwares Stephan Gerhold
2021-11-21  0:39   ` Bjorn Andersson
2021-11-19 21:39 ` [PATCH v2 3/3] arm64: dts: qcom: msm8916: Add RPM sleep stats Stephan Gerhold
2021-12-01 15:13   ` (subset) " Bjorn Andersson
2021-12-01 15:13 ` (subset) [PATCH v2 0/3] Add RPM sleep stats for MSM8916 Bjorn Andersson

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