pmdomain: Support system-suspend-only domain idle states
Get series with b4
b4 am [email protected] change-id 20261001-s2idle_state-6484bbbf48fbVersions newest first
- v2 Latest3 patches 5 repliesIn review
- v13 patches 18 repliesSuperseded
Changes in v2 from the cover letter
- Explain why the state is limited to the four-PMIC Monaco EVK and is
not supported on the two-PMIC Monaco AC EVK.
- Push binding example and DT latencie/residency to the realistic values
- Use lowercase hex for the PSCI suspend parameter.
- Link to v1: https://patch.msgid.link/[email protected]
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | dt-bindings: power: domain-idle-state: Add system-stateDocumentation/ | +14 | 5 replies | |
| 2/3 | pmdomain: Add support for system-suspend-only statesdrivers/ drivers/ include/ | +9 | 0 replies | |
| 3/3 | arm64: dts: qcom: monaco-evk: Add suspend-only power collapse statearch/ | +17 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Kevin Hilman |
|---|---|
| 1/3 | A-b |
| 2/3 | A-b |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] pmdomain: Support system-suspend-only domain idle states
To achieve the deepest CPUSS low power state, which can lead to chip rail power collapse (CxPC) on SoCs such as Lemans, Monaco and Nord, the CPU subsystem (CPUSS) and the Safety Island (SAIL) subsystem must be powered down together in a coordinated sequence. The Safety Island (SAIL) is a dedicated subsystem responsible for safety-critical monitoring and control functions, and can operate independently from the main CPU subsystem.
This transition is divided into two stages. First, firmware requests SAIL power-down through IPC, after which SAIL waits for hardware low power handshakes from CPUSS. If an interrupt or another condition aborts CPUSS entry into the deepest low power mode after the IPC request, firmware must bring SAIL back out of its low power sequence before any CPU can resume execution in the OS. This recovery can take a second or more.
Selecting this state during opportunistic CPU idle can therefore cause substantial wakeup delays and repeatedly interrupt SAIL operation whenever the CPUs become idle. SAIL must remain operational during normal system activity, so this coordinated power-down state should be reserved for system-wide suspend such as suspend-to-idle. Shallower domain states remain available for regular CPU and cluster idle power management.
This restriction concerns when SAIL may stop its work, in addition to the transition latency. Idle-state latency and residency values alone do not express that requirement. System suspend does not eliminate interrupts or aborted entry, but provides the context in which coordinated SAIL power-down is appropriate.
All domain idle states described in devicetree are currently considered during the regular idle path. This limits which states can be described in devicetree. Due to hardware constraints, some domain idle states are only applicable to system-wide suspend, including suspend-to-idle (s2idle).
To allow these states to be described in DT and used only during system suspend, this series adds a boolean system-state property to domain idle state bindings and a corresponding system_state boolean in genpd. The genpd governors skip these states during normal operation. The system suspend selection path remains unchanged, allowing these states during suspend while retaining the existing wakeup latency checks for s2idle.
This series applies to cluster idle states with the "domain-idle-state" compatible string managed by genpd and its governors, but can be extended to CPU idle states with the "arm,idle-state" compatible string if the same restriction is needed for CPUidle states too.
---
Changes in v2:
- Explain why the state is limited to the four-PMIC Monaco EVK and is
not supported on the two-PMIC Monaco AC EVK.
- Push binding example and DT latencie/residency to the realistic values
- Use lowercase hex for the PSCI suspend parameter.
- Link to v1: https://patch.msgid.link/[email protected]
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
To: Ulf Hansson <[email protected]>
To: "Rafael J. Wysocki" <[email protected]>
To: Bjorn Andersson <[email protected]>
To: Konrad Dybcio <[email protected]>
To: Abel Vesa <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
Maulik Shah (3):
dt-bindings: power: domain-idle-state: Add system-state
pmdomain: Add support for system-suspend-only states
arm64: dts: qcom: monaco-evk: Add suspend-only power collapse state
.../devicetree/bindings/power/domain-idle-state.yaml | 14 ++++++++++++++ arch/arm64/boot/dts/qcom/monaco-evk.dts | 17 +++++++++++++++++ drivers/pmdomain/core.c | 2 ++ drivers/pmdomain/governor.c | 6 ++++++ include/linux/pm_domain.h | 1 + 5 files changed, 40 insertions(+)
---
base-commit: aaa2f954c21b205a0bcd0961e5b2be4e82e58455
change-id: 20261001-s2idle_state-6484bbbf48fb
Best regards,
Signature · 1 line
Maulik Shah <[email protected]>