summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@oss.qualcomm.com>2026-09-14 17:01:38 +0200
committerUlf Hansson <ulfh@kernel.org>2026-09-17 15:30:58 +0200
commit9e8dff8e097814e4d7c65cd211ccb1e2fceb460a (patch)
treec31ed8b164374b4cc83bb99f240afa067e391715 /tools/perf/scripts/python
parent81f1099186fd501768ea4bd24523347211322fbe (diff)
pmdomain: core: Allow a non-CPU device in a CPU PM domain to do power on
A driver for a non-CPU device that is attached to a CPU PM domain (the genpd has the GENPD_FLAG_CPU_DOMAIN configuration set), is currently not able to power on the PM domain. More precisely, to power on a CPU PM domain one of its corresponding CPUs needs to be woken up if they are idle. The current support for a non-CPU device is that its driver can only prevent an already powered on CPU PM domain from being powered off. This leads to problems for a driver while probing its device or when it needs to call pm_runtime_get_sync() to turn on the power for it. From the driver point of view it looks like it all works fine, but when accessing the device it may end up with various errors as the device may not be fully powered on. To fix the behavior for these types of devices, let's adjust the behaviour in genpd_power_on() to wake up an idle CPU that belongs to it, in cases when it's needed. Link: https://lore.kernel.org/all/CAPx+jO-sCierYj8jnoKQHckJG16dOBxnNrsZVYO=38R2cLV8nw@mail.gmail.com/ Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Tested-by: Yuanfang Zhang <yuanfang.zhang@oss.qualcomm.com> Reviewed-by: Dhruva Gole <goledhruva@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@oss.qualcomm.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions