[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130726031950.GA6438@iris.ozlabs.ibm.com>
Date: Fri, 26 Jul 2013 13:19:50 +1000
From: Paul Mackerras <paulus@...ba.org>
To: Preeti U Murthy <preeti@...ux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@...il.com>,
deepthi@...ux.vnet.ibm.com, shangw@...ux.vnet.ibm.com,
arnd@...db.de, linux-pm@...r.kernel.org, geoff@...radead.org,
linux-kernel@...r.kernel.org, rostedt@...dmis.org, rjw@...k.pl,
paul.gortmaker@...driver.com, srivatsa.bhat@...ux.vnet.ibm.com,
schwidefsky@...ibm.com, john.stultz@...aro.org, tglx@...utronix.de,
paulmck@...ux.vnet.ibm.com, linuxppc-dev@...ts.ozlabs.org,
chenhui.zhao@...escale.com
Subject: Re: [RFC PATCH 4/5] cpuidle/ppc: CPU goes tickless if there are no
arch-specific constraints
On Fri, Jul 26, 2013 at 08:09:23AM +0530, Preeti U Murthy wrote:
> Hi Frederic,
>
> On 07/25/2013 07:00 PM, Frederic Weisbecker wrote:
> > Hi Preeti,
> >
> > I'm not exactly sure why you can't enter the broadcast CPU in dynticks idle mode.
> > I read in the previous patch that's because in dynticks idle mode the broadcast
> > CPU deactivates its lapic so it doesn't receive the IPI. But may be I misunderstood.
> > Anyway that's not good for powersaving.
>
> Let me elaborate. The CPUs in deep idle states have their lapics
> deactivated. This means the next timer event which would typically have
> been taken care of by a lapic firing at the appropriate moment does not
> get taken care of in deep idle states, due to the lapic being switched off.
I really don't think it's helpful to use the term "lapic" in
connection with Power systems. There is nothing that is called a
"lapic" in a Power machine. The nearest equivalent of the LAPIC on
x86 machines is the ICP, the interrupt-controller presentation
element, of which there is one per CPU thread.
However, I don't believe the ICP gets disabled in deep sleep modes.
What does get disabled is the "decrementer", which is a register that
normally counts down (at 512MHz) and generates an exception when it is
negative. The decrementer *is* part of the CPU core, unlike the ICP.
That's why we can still get IPIs but not timer interrupts.
Please reword your patch description to not use the term "lapic",
which is not defined in the Power context and is therefore just
causing confusion.
Paul.
--
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