On Fri, Oct 12, 2018 at 12:08 AM Lina Iyer <ilina@xxxxxxxxxxxxxx> wrote:
On Thu, Oct 11 2018 at 14:56 -0600, Rafael J. Wysocki wrote:
>On Wednesday, October 10, 2018 11:20:49 PM CEST Raju P.L.S.S.S.N wrote:
>> From: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
Well, if cpuidle chooses WFI, cpu_pm_enter() will not be called. So forThe cluster states should account for that additional latency.
But even then, you need to be sure that the idle governor selected
"cluster" states for all of the CPUs in the cluster. It might select
WFI for one of them for reasons unrelated to the distance to the next
timer (so to speak), for example.
What I meant to say is that if cpuidle chooses a CPU only power downJust the CPU's power down states need not care about that.
The meaning of this sentence isn't particularly clear to me. :-)
We embarked on that discussion a few years ago, but realized that thereBut, it would be nice if the PM domain governor could be cognizant of
the idle state chosen for each CPU, that way we dont configure the
domain to be powered off when the CPUs have just chosen to power down
(not chosen a cluster state). I think that is a whole different topic to
discuss.
This needs to be sorted out before the approach becomes viable, though.
Basically, the domain governor needs to track what the idle governorWell, we kinda do that in the CPU PM domain governor. By looking at the
did for all of the CPUs in the domain and only let the domain go off
if the latency matches all of the states selected by the idle
governor. Otherwise the idle governor's assumptions would be violated
and it would become essentially useless overhead.