linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/21] pmdomain: Add generic ->sync_state() support to genpd
@ 2025-05-23 13:39 Ulf Hansson
  2025-05-23 13:39 ` [PATCH v2 01/21] pmdomain: core: Use of_fwnode_handle() Ulf Hansson
                   ` (23 more replies)
  0 siblings, 24 replies; 37+ messages in thread
From: Ulf Hansson @ 2025-05-23 13:39 UTC (permalink / raw)
  To: Saravana Kannan, Stephen Boyd, linux-pm
  Cc: Rafael J . Wysocki, Greg Kroah-Hartman, Michael Grzeschik,
	Bjorn Andersson, Abel Vesa, Peng Fan, Tomi Valkeinen,
	Johan Hovold, Maulik Shah, Michal Simek, Konrad Dybcio,
	Thierry Reding, Jonathan Hunter, Ulf Hansson, linux-arm-kernel,
	linux-kernel

Changes in v2:
	- Well, quite a lot as I discovered various problems when doing
	additional testing of corner-case. I suggest re-review from scratch,
	even if I decided to keep some reviewed-by tags.
	- Added patches to allow some drivers that needs to align or opt-out
	from the new common behaviour in genpd.

If a PM domain (genpd) is powered-on during boot, there is probably a good
reason for it. Therefore it's known to be a bad idea to allow such genpd to be
powered-off before all of its consumer devices have been probed. This series
intends to fix this problem.

We have been discussing these issues at LKML and at various Linux-conferences
in the past. I have therefore tried to include the people I can recall being
involved, but I may have forgotten some (my apologies), feel free to loop them
in.

I have tested this with QEMU with a bunch of local test-drivers and DT nodes.
Let me know if you want me to share this code too.

Please help review and test!
Finally, a big thanks to Saravana for all the support!

Kind regards
Ulf Hansson


Saravana Kannan (1):
  driver core: Add dev_set_drv_sync_state()

Ulf Hansson (20):
  pmdomain: core: Use of_fwnode_handle()
  pmdomain: core: Add a bus and a driver for genpd providers
  pmdomain: core: Add the genpd->dev to the genpd provider bus
  pmdomain: core: Export a common ->sync_state() helper for genpd
    providers
  pmdomain: core: Prepare to add the common ->sync_state() support
  soc/tegra: pmc: Opt-out from genpd's common ->sync_state() support
  cpuidle: psci: Opt-out from genpd's common ->sync_state() support
  cpuidle: riscv-sbi: Opt-out from genpd's common ->sync_state() support
  pmdomain: qcom: rpmhpd: Use of_genpd_sync_state()
  pmdomain: qcom: rpmhpd: Use of_genpd_sync_state()
  firmware/pmdomain: xilinx: Move ->sync_state() support to firmware
    driver
  firmware: xilinx: Don't share zynqmp_pm_init_finalize()
  firmware: xilinx: Use of_genpd_sync_state()
  driver core: Export get_dev_from_fwnode()
  pmdomain: core: Add common ->sync_state() support for genpd providers
  pmdomain: core: Default to use of_genpd_sync_state() for genpd
    providers
  pmdomain: core: Leave powered-on genpds on until late_initcall_sync
  pmdomain: core: Leave powered-on genpds on until sync_state
  cpuidle: psci: Drop redundant sync_state support
  cpuidle: riscv-sbi: Drop redundant sync_state support

 drivers/base/core.c                         |   8 +-
 drivers/cpuidle/cpuidle-psci-domain.c       |  14 --
 drivers/cpuidle/cpuidle-riscv-sbi.c         |  14 --
 drivers/firmware/xilinx/zynqmp.c            |  18 +-
 drivers/pmdomain/core.c                     | 239 ++++++++++++++++++--
 drivers/pmdomain/qcom/rpmhpd.c              |   2 +
 drivers/pmdomain/qcom/rpmpd.c               |   2 +
 drivers/pmdomain/xilinx/zynqmp-pm-domains.c |  16 --
 drivers/soc/tegra/pmc.c                     |  26 ++-
 include/linux/device.h                      |  13 ++
 include/linux/firmware/xlnx-zynqmp.h        |   6 -
 include/linux/pm_domain.h                   |  17 ++
 12 files changed, 294 insertions(+), 81 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2025-08-10 21:12 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-23 13:39 [PATCH v2 00/21] pmdomain: Add generic ->sync_state() support to genpd Ulf Hansson
2025-05-23 13:39 ` [PATCH v2 01/21] pmdomain: core: Use of_fwnode_handle() Ulf Hansson
2025-06-11  6:07   ` Dhruva Gole
2025-05-23 13:39 ` [PATCH v2 02/21] pmdomain: core: Add a bus and a driver for genpd providers Ulf Hansson
2025-06-03  0:23   ` Saravana Kannan
2025-06-03 10:28     ` Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 03/21] pmdomain: core: Add the genpd->dev to the genpd provider bus Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 04/21] pmdomain: core: Export a common ->sync_state() helper for genpd providers Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 05/21] pmdomain: core: Prepare to add the common ->sync_state() support Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 06/21] soc/tegra: pmc: Opt-out from genpd's " Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 07/21] cpuidle: psci: " Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 08/21] cpuidle: riscv-sbi: " Ulf Hansson
2025-08-10 21:12   ` patchwork-bot+linux-riscv
2025-05-23 13:40 ` [PATCH v2 09/21] pmdomain: qcom: rpmhpd: Use of_genpd_sync_state() Ulf Hansson
2025-05-23 19:42   ` Konrad Dybcio
2025-05-26 10:12     ` Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 10/21] " Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 11/21] firmware/pmdomain: xilinx: Move ->sync_state() support to firmware driver Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 12/21] firmware: xilinx: Don't share zynqmp_pm_init_finalize() Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 13/21] firmware: xilinx: Use of_genpd_sync_state() Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 14/21] driver core: Export get_dev_from_fwnode() Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 15/21] pmdomain: core: Add common ->sync_state() support for genpd providers Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 16/21] driver core: Add dev_set_drv_sync_state() Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 17/21] pmdomain: core: Default to use of_genpd_sync_state() for genpd providers Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 18/21] pmdomain: core: Leave powered-on genpds on until late_initcall_sync Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 19/21] pmdomain: core: Leave powered-on genpds on until sync_state Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 20/21] cpuidle: psci: Drop redundant sync_state support Ulf Hansson
2025-05-23 13:40 ` [PATCH v2 21/21] cpuidle: riscv-sbi: " Ulf Hansson
2025-06-03 14:20 ` [PATCH v2 00/21] pmdomain: Add generic ->sync_state() support to genpd Hiago De Franco
2025-06-12  6:09 ` Tomi Valkeinen
2025-06-13 10:33 ` Tomi Valkeinen
2025-06-19 11:40   ` Ulf Hansson
2025-06-23 14:20     ` Ulf Hansson
2025-06-23 15:06       ` Geert Uytterhoeven
2025-06-24 12:10         ` Geert Uytterhoeven
2025-06-24 15:29         ` Ulf Hansson
2025-06-30  9:31           ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).