Skip to content

Fix PSCI on MSM8917 and MSM8937

Reza Kurniawan linux-arm-kernel linux-arm-msm linux-devicetree linux-pm lkml 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20261013-psci-fix-8a2c0d6266fa

Versions newest first

  1. v3 Latest4 patches 10 repliesIn review
  2. v24 patches 2 repliesSuperseded
  3. v14 patches 1 replySuperseded

Changes in v3 from the cover letter

- Swap ordering (patch #3 <-> patch #4)
- Link to v2: https://patch.msgid.link/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: arm: psci: Add skip-suspend-mode-switch propertyDocumentation/devicetree/bindings/arm/psci.yaml+13 -06 replies
2/4cpuidle: psci: Allow skipping the suspend mode switchdrivers/cpuidle/cpuidle-psci-domain.c drivers/firmware/psci/psci.c+14 -82 replies
3/4arm64: dts: qcom: msm8917: Use a shallower cluster state to fix unresponsive idlearch/arm64/boot/dts/qcom/msm8917.dtsi+4 -42 replies
4/4arm64: dts: qcom: Skip suspend mode switch on MSM8917 and MSM8937arch/arm64/boot/dts/qcom/msm8917.dtsi arch/arm64/boot/dts/qcom/msm8937.dtsi+2 -00 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchKonrad Dybcio
1/4
2/4
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] Fix PSCI on MSM8917 and MSM8937

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.

---
Changes in v3:
- Swap ordering (patch #3 <-> patch #4)
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Small phrase change in the property description
- Added property check in psci_1_0_init()
- Link to v1: https://patch.msgid.link/[email protected]

---
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: msm8917: Use a shallower cluster state to fix unresponsive idle
arm64: dts: qcom: Skip suspend mode switch on MSM8917 and MSM8937

 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 ++++++++++------
 drivers/firmware/psci/psci.c                    |  6 ++++--
 5 files changed, 33 insertions(+), 12 deletions(-)

---
base-commit: 9a482184d910775cf648863148944945b74e2815
change-id: 20261013-psci-fix-8a2c0d6266fa

Best regards,

Signature · 1 line
Reza Kurniawan <[email protected]>