Skip to content

PM: runtime/cpuidle: Improve suspend-to-ram support for cpuidle-psci

Ulf Hansson linux-arm-kernel linux-pm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PM: runtime: Allow to call __pm_runtime_set_status() from atomic contextdrivers/base/power/runtime.c+5 -41 reply
2/2cpuidle: psci: Improve support for suspend-to-ram for PSCI OSI modedrivers/cpuidle/cpuidle-psci.c+46 -01 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchMaulik Shah
1/2T-b
2/2T-b

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

Read the v1 thread

Cover letter [PATCH 0/2] PM: runtime/cpuidle: Improve suspend-to-ram support for cpuidle-psci

Maulik Shah reported a problem with suspend-to-ram for one of the Qualcomm platforms that is using PSCI OSI mode. Briefly described, the genpd on/off notifiers doesn't get sent when the boot CPU is turned on/off, which prevents the needed platform specific operations to be executed.

This series intends to solve these problems.

Note that, I have tested this on Dragonboard 410c, with some local hacks to the PSCI firmware driver. This was needed because the PSCI firmware didn't support SYSTEM_SUSPEND, so I basically made psci_system_suspend_enter() to call cpu_do_idle() and forced a suspend ops to be registered.

Maulik, can you please test this at your setup?

Kind regards
Ulf Hansson

Ulf Hansson (2):
PM: runtime: Allow to call __pm_runtime_set_status() from atomic
context
cpuidle: psci: Improve support for suspend-to-ram for PSCI OSI mode

 drivers/base/power/runtime.c   |  9 ++++---
 drivers/cpuidle/cpuidle-psci.c | 46 ++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 4 deletions(-)
Signature · 1 line
2.25.1