Skip to content

PM / Domains: Generic PM domains improvements

Rafael J. Wysocki linux-pm lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/26 patches 0 repliesNew
  2. v2 posting 1/20 of 6 patches 0 repliesSuperseded
  3. v15 patches 4 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6PM / Domains: Set device state to "active" during system resumedrivers/base/power/domain.c+2 -00 replies
1/6PM / Domains: Set device state to "active" during system resumedrivers/base/power/domain.c+2 -00 replies
2/6PM / Domains: Make failing pm_genpd_prepare() clean up properlydrivers/base/power/domain.c+11 -10 replies
2/6PM / Domains: Make failing pm_genpd_prepare() clean up properlydrivers/base/power/domain.c+11 -10 replies
3/6PM / Domains: Do not execute device callbacks under locksdrivers/base/power/domain.c include/linux/pm_domain.h+185 -740 replies
3/6PM / Domains: Do not execute device callbacks under locksdrivers/base/power/domain.c include/linux/pm_domain.h+185 -740 replies
4/6PM / Domains: Allow callbacks to execute all runtime PM helpersdrivers/base/power/domain.c include/linux/pm_domain.h+102 -450 replies
4/6PM / Domains: Allow callbacks to execute all runtime PM helpersdrivers/base/power/domain.c include/linux/pm_domain.h+102 -450 replies
5/6PM / Domains: Do not restore all devices on power off errordrivers/base/power/domain.c+4 -90 replies
5/6PM / Domains: Do not restore all devices on power off errordrivers/base/power/domain.c+4 -90 replies
6/6PM / Domains: Improve handling of wakeup devices during system suspenddrivers/base/power/domain.c+30 -00 replies
6/6PM / Domains: Improve handling of wakeup devices during system suspenddrivers/base/power/domain.c+30 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/6 v2] PM / Domains: Generic PM domains improvements

Hi,

The majority of patches have been updated since the last submission and there's one new patch, so it's the time for a refresh. :-)

All patches in this series have been posted already (the last one without a changelog, though).

Quoted 9 lines · Rafael J. Wysocki

For the last few days I've been working on modifications of the generic PM domains code allowing .start_device()/.stop_device() and drivers' .runtime_suspend()/.runtime_resume() callbacks to execute things like pm_runtime_resume() for other devices in the same PM domain safely without deadlocking (the original motivation was a console driver on shmobile that pm_runtime_get_*()/pm_runtime_put_*() are called for from the other devices' .runtime_suspend()/.runtime_resume() callbacks).

Quoted 3 lines

I think I solved that problem, but in the process I found a few places where fixes and/on improvements were necessary. The patches in this series address those issues.

[1/6] - Set device state to "active" during system resume.

[2/6] - Make failing pm_genpd_prepare() clean up properly.

[3/6] - Rework generic PM domains locking so that device callbacks are not
executed under the genpd lock.

[4/6] - Allow device callbacks executed by the generic PM domains code to
run runtime PM helpers safely (ie. without deadlocking).

[5/6] - Avoid restoring the states of all devices on failing domain power off.

[6/6] - Imorove the handling of system wakeup devices during system suspend.

The series is on top of the branch at:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6.git pm-domains

All patches in this series are regarded as 3.1 material.

Thanks,
Rafael