Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix PSCI on MSM8917 and MSM8937
@ 2026-10-17 16:41 Reza Kurniawan
  2026-10-17 16:41 ` [PATCH 1/4] dt-bindings: arm: psci: Add skip-suspend-mode-switch property Reza Kurniawan
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Reza Kurniawan @ 2026-10-17 16:41 UTC (permalink / raw)
  To: Mark Rutland, Lorenzo Pieralisi, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Ulf Hansson, Rafael J. Wysocki, Daniel Lezcano,
	Christian Loehle, Bjorn Andersson, Konrad Dybcio, Abel Vesa
  Cc: linux-arm-kernel, devicetree, linux-kernel, linux-pm,
	linux-arm-msm, Alejandro Tafalla, Reza Kurniawan

PSCI on Qualcomm MSM8917 and MSM8937 advertises support for OS-initiated
mode through PSCI_FEATURES, but rejects every PSCI_SET_SUSPEND_MODE call
with NOT_SUPPORTED. The cpuidle-psci-domain driver treats this as a
fatal error, so probe fails and the CPU PM domain topology is never
registered:

  psci-cpuidle-domain psci: probe with driver psci-cpuidle-domain failed
  with error -95

This series adds a "skip-suspend-mode-switch" property to the PSCI node.
When present, cpuidle-psci-domain does not call psci_set_osi_mode() and
continues with the topology it has already built.

Skipping the switch is expected to be safe on these platforms since it
matches the behavior of the downstream kernel, which manages the
cluster power level in addition to the CPU power level, just as Linux
does when OSI is supported.

Additionally, it also adds the property to the PSCI node for both
platforms. For MSM8917, additional change is added to fix the system
being unresponsive at idle.

---
Alejandro Tafalla (2):
      dt-bindings: arm: psci: Add skip-suspend-mode-switch property
      cpuidle: psci: Allow skipping the suspend mode switch

Reza Kurniawan (2):
      arm64: dts: qcom: Skip suspend mode switch on MSM8917 and MSM8937
      arm64: dts: qcom: msm8917: Use a shallower cluster state to fix unresponsive idle

 Documentation/devicetree/bindings/arm/psci.yaml | 13 +++++++++++++
 arch/arm64/boot/dts/qcom/msm8917.dtsi           |  9 +++++----
 arch/arm64/boot/dts/qcom/msm8937.dtsi           |  1 +
 drivers/cpuidle/cpuidle-psci-domain.c           | 16 ++++++++++------
 4 files changed, 29 insertions(+), 10 deletions(-)
---
base-commit: 2efb7a11f1aa4d2dc285fe2680cca22cb9f72f64
change-id: 20261013-psci-fix-8a2c0d6266fa

Best regards,
--  
Reza Kurniawan <imkyufie@gmail.com>


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

end of thread, other threads:[~2026-10-17 17:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-17 16:41 [PATCH 0/4] Fix PSCI on MSM8917 and MSM8937 Reza Kurniawan
2026-10-17 16:41 ` [PATCH 1/4] dt-bindings: arm: psci: Add skip-suspend-mode-switch property Reza Kurniawan
2026-10-17 16:41 ` [PATCH 2/4] cpuidle: psci: Allow skipping the suspend mode switch Reza Kurniawan
2026-10-17 17:07   ` sashiko-bot
2026-10-17 16:41 ` [PATCH 3/4] arm64: dts: qcom: Skip suspend mode switch on MSM8917 and MSM8937 Reza Kurniawan
2026-10-17 16:41 ` [PATCH 4/4] arm64: dts: qcom: msm8917: Use a shallower cluster state to fix unresponsive idle Reza Kurniawan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox