[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1402111654190.21991@ionos.tec.linutronix.de>
Date: Tue, 11 Feb 2014 16:58:45 +0100 (CET)
From: Thomas Gleixner <tglx@...utronix.de>
To: Daniel Lezcano <daniel.lezcano@...aro.org>
cc: Preeti U Murthy <preeti@...ux.vnet.ibm.com>,
linux-pm@...r.kernel.org, peterz@...radead.org,
benh@...nel.crashing.org, rafael.j.wysocki@...el.com,
linux-kernel@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
mingo@...nel.org, deepthi@...ux.vnet.ibm.com,
paulmck@...ux.vnet.ibm.com, fweisbec@...il.com, paulus@...ba.org,
srivatsa.bhat@...ux.vnet.ibm.com, svaidy@...ux.vnet.ibm.com
Subject: Re: [PATCH V4 2/3] tick/cpuidle: Initialize hrtimer mode of
broadcast
On Tue, 11 Feb 2014, Daniel Lezcano wrote:
> On 02/07/2014 09:06 AM, Preeti U Murthy wrote:
> Setting the smp affinity on the earliest timer should be handled automatically
> with the CLOCK_EVT_FEAT_DYNIRQ flag. Did you look at using this flag ?
How should this flag help? Not at all, because the hrtimer based
broadcast device cannot assign affinities.
> Another comment is the overall approach. We enter the cpuidle idle framework
> with a specific state to go to and it is the tick framework telling us we
> mustn't go to this state. IMO the logic is wrong, the decision to not enter
> this state should be moved somewhere else.
>
> Why don't you create a cpuidle driver with the shallow idle states assigned to
> a cpu (let's say cpu0) and another one with all the deeper idle states for the
> rest of the cpus ? Using the multiple cpuidle driver support makes it
> possible. The timer won't be moving around and a cpu will be dedicated to act
> as the broadcast timer.
>
> Wouldn't make sense and be less intrusive than the patchset you proposed ?
How do you arm the broadcast timer on CPU0 from CPU1? You can't!
You cannot access the cpu local timer on a different cpu. So you would
have to send an IPI over to CPU0 so that it can reevaluate and
schedule the broadcast. That's even more backwards than telling the
cpuidle code that the CPU is not in a state to go deep.
Thanks,
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists