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

Ulf Hansson ulf.hansson at linaro.org
Fri Apr 1 07:11:22 PDT 2022


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(-)

-- 
2.25.1




More information about the linux-arm-kernel mailing list