Re: [PATCH 4/4] PM / Domains: Propagate performance state updates
From: Viresh Kumar
Date: Wed Nov 21 2018 - 00:41:55 EST
On 21-11-18, 11:01, Rajendra Nayak wrote:
> I would think this is analogous to a driver calling clk_set_rate() first and
> then a clk_enable(), which is certainly valid.
> So my question is, if calling a dev_pm_genpd_set_performance_state()
> and then runtime enabling the device would work (and take care of propagating the performance
> state).
Two things here..
- First, it should work.
- Second, we don't look at device RPM states but only if a genpd is on
or off. Maybe we should look at device states as well, but then we
need to initiate set-performance-state routine from runtime enable
as well. But that is completely different work and would require its
own series.
> In my testing I found it does not.
As I said, we don't do anything in RPM enable of the device currently,
but only during genpd_power_on(). So if the genpd was previously
disabled, RPM enable of the device should have done propagation of
states as well. Otherwise, we should already have take care of the
vote from the device. So, it should have worked.
Needs some investigation on why this isn't working for you.
--
viresh