public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] PM: QoS/pmdomains: support resume latencies for system-wide PM
@ 2026-01-21  1:54 Kevin Hilman (TI)
  2026-01-21  1:54 ` [PATCH 1/2] PM / QoS: add flag to indicate latency applies system-wide Kevin Hilman (TI)
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Kevin Hilman (TI) @ 2026-01-21  1:54 UTC (permalink / raw)
  To: Rafael J. Wysocki, Ulf Hansson, linux-pm; +Cc: Dhruva Gole, linux-kernel

Currently QoS resume latencies are only considered for runtime PM
transitions of pmdomains, which remains the default.

In order to also support QoS resume latencies during system-wide PM,
add a new flag to indicate a resume latency should be used for
system-wide PM *instead of* runtime PM.

For example, by doing this:

   # echo 500000 > /sys/devices/.../<dev0>/power/pm_qos_resume_latency_us

dev0 now has a resume latency of 500000 usec for runtime PM
transitions.

Then, if the new flag is also set:

   # echo 1 > /sys/devices/.../<dev0>/power/pm_qos_latency_sys

That 500000 usec delay now applies to system-wide PM (and not to
runtime PM).

If a user requires a different latency value for system-wide PM
compared to runtime PM, then the runtime PM value can be set for
normal operations, and the system-wide value (and flag) can be set by
userspace before suspend, and the runtime PM value can be restored
after resume.

To: Rafael J. Wysocki <rafael@kernel.org>
To: Ulf Hansson <ulf.hansson@linaro.org>
To: linux-pm@vger.kernel.org

Signed-off-by: Kevin Hilman (TI) <khilman@baylibre.com>
---
Kevin Hilman (TI) (2):
      PM / QoS: add flag to indicate latency applies system-wide
      pmdommain: add support system-wide resume latency constraints

 drivers/base/power/sysfs.c  | 27 +++++++++++++++++++++++++++
 drivers/pmdomain/governor.c | 42 +++++++++++++++++++++++++++++++++++++++++-
 include/linux/pm_qos.h      |  2 ++
 3 files changed, 70 insertions(+), 1 deletion(-)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20260120-topic-lpm-pmdomain-device-constraints-e5e78ce48502

Best regards,
--  
Kevin Hilman (TI) <khilman@baylibre.com>


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

end of thread, other threads:[~2026-02-04 13:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-21  1:54 [PATCH 0/2] PM: QoS/pmdomains: support resume latencies for system-wide PM Kevin Hilman (TI)
2026-01-21  1:54 ` [PATCH 1/2] PM / QoS: add flag to indicate latency applies system-wide Kevin Hilman (TI)
2026-01-27 16:20   ` Rafael J. Wysocki
2026-01-28 10:25   ` Ulf Hansson
2026-01-21  1:54 ` [PATCH 2/2] pmdommain: add support system-wide resume latency constraints Kevin Hilman (TI)
2026-02-02 11:49   ` Ulf Hansson
2026-02-03 23:19     ` Kevin Hilman
2026-02-04 13:33       ` Ulf Hansson
2026-01-28 10:33 ` [PATCH 0/2] PM: QoS/pmdomains: support resume latencies for system-wide PM Ulf Hansson
2026-01-28 23:51   ` Kevin Hilman
2026-01-29 11:04     ` Ulf Hansson
2026-01-29 18:29       ` Kevin Hilman
2026-01-30 11:10         ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox