mbox series

[0/4] Add RSC power domain support

Message ID 20190813082442.25796-1-mkshah@codeaurora.org (mailing list archive)
Headers show
Series Add RSC power domain support | expand

Message

Maulik Shah Aug. 13, 2019, 8:24 a.m. UTC
Resource State Coordinator (RSC) is responsible for powering off/lowering
the requirements from CPU subsystem for the associated hardware like buses,
clocks, and regulators when all CPUs and cluster is powered down.

RSC power domain uses last-man activities provided by genpd framework based on
Ulf Hansoon's patch series[1], when the cluster of CPUs enter deepest idle
states. As a part of domain poweroff, RSC can lower resource state requirements
by flushing the cached sleep and wake state votes for resources.

Dependencies:

[1] https://lkml.org/lkml/2019/5/13/839

Maulik Shah (4):
  drivers: qcom: rpmh: fix macro to accept NULL argument
  drivers: qcom: rpmh: remove rpmh_flush export
  dt-bindings: soc: qcom: Add RSC power domain specifier
  drivers: qcom: rpmh-rsc: Add RSC power domain support

 .../devicetree/bindings/soc/qcom/rpmh-rsc.txt |  7 ++
 drivers/soc/qcom/rpmh-internal.h              |  3 +
 drivers/soc/qcom/rpmh-rsc.c                   | 96 +++++++++++++++++++
 drivers/soc/qcom/rpmh.c                       | 22 ++---
 include/soc/qcom/rpmh.h                       |  5 -
 5 files changed, 116 insertions(+), 17 deletions(-)

Comments

Stephen Boyd Aug. 14, 2019, 6:19 p.m. UTC | #1
Quoting Maulik Shah (2019-08-13 01:24:38)
> Resource State Coordinator (RSC) is responsible for powering off/lowering
> the requirements from CPU subsystem for the associated hardware like buses,
> clocks, and regulators when all CPUs and cluster is powered down.
> 
> RSC power domain uses last-man activities provided by genpd framework based on
> Ulf Hansoon's patch series[1], when the cluster of CPUs enter deepest idle
> states. As a part of domain poweroff, RSC can lower resource state requirements
> by flushing the cached sleep and wake state votes for resources.

This series looks like half the solution. Is there a full set of patches
that connects the RPMh power domain to cpuidle and genpds?
Maulik Shah Aug. 23, 2019, 6:51 a.m. UTC | #2
On 8/14/2019 11:49 PM, Stephen Boyd wrote:
> Quoting Maulik Shah (2019-08-13 01:24:38)
>> Resource State Coordinator (RSC) is responsible for powering off/lowering
>> the requirements from CPU subsystem for the associated hardware like buses,
>> clocks, and regulators when all CPUs and cluster is powered down.
>>
>> RSC power domain uses last-man activities provided by genpd framework based on
>> Ulf Hansoon's patch series[1], when the cluster of CPUs enter deepest idle
>> states. As a part of domain poweroff, RSC can lower resource state requirements
>> by flushing the cached sleep and wake state votes for resources.
> This series looks like half the solution. Is there a full set of patches
> that connects the RPMh power domain to cpuidle and genpds?
Yes, i will include in next version.