Thread (17 messages) 17 messages, 4 authors, 2021-08-12

Re: [PATCH v6 1/2] PM / Domains: Add support for 'required-opps' to set default perf state

flat view

From: Dmitry Osipenko <digetx@gmail.com>
Date: 2021-08-12 02:28:19
Also in: linux-arm-msm, linux-pm, lkml

11.08.2021 22:48, Dmitry Osipenko пишет:
11.08.2021 12:45, Rajendra Nayak пишет:
quoted
quoted
If you have more than one power domain, then this will override the
pstate which was set for a previous domain. This code doesn't feel solid
to me, at least a clarifying comment is needed about how it's supposed
to work.
I don't quite understand the concern here, this should work with devices
having multiple power-domains as well. __genpd_dev_pm_attach gets called
once per power-domain, and we use the index above to identify the
power-domain.
The domain core code supports only one domain per device, see what
genpd_set_performance_state() does. This means that the second domain
will set the state of the *first* domain, which doesn't make sense. The
genpd_set_performance_state() will actually fail with -ENODEV for all
domains if you will try to do that.
I confused the base device with the virtual device there, looks like it
should be okay then.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help