Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757018Ab3GZDil (ORCPT ); Thu, 25 Jul 2013 23:38:41 -0400 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:53176 "EHLO e28smtp08.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756302Ab3GZDij (ORCPT ); Thu, 25 Jul 2013 23:38:39 -0400 Message-ID: <51F1EE90.9020701@linux.vnet.ibm.com> Date: Fri, 26 Jul 2013 09:05:44 +0530 From: Preeti U Murthy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Paul Mackerras CC: Frederic Weisbecker , deepthi@linux.vnet.ibm.com, shangw@linux.vnet.ibm.com, arnd@arndb.de, linux-pm@vger.kernel.org, geoff@infradead.org, linux-kernel@vger.kernel.org, rostedt@goodmis.org, rjw@sisk.pl, paul.gortmaker@windriver.com, srivatsa.bhat@linux.vnet.ibm.com, schwidefsky@de.ibm.com, john.stultz@linaro.org, tglx@linutronix.de, paulmck@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, chenhui.zhao@freescale.com Subject: Re: [RFC PATCH 4/5] cpuidle/ppc: CPU goes tickless if there are no arch-specific constraints References: <20130725090016.12500.28888.stgit@preeti.in.ibm.com> <20130725090302.12500.42998.stgit@preeti.in.ibm.com> <20130725133044.GA7400@somewhere> <51F1E15B.3050106@linux.vnet.ibm.com> <20130726031950.GA6438@iris.ozlabs.ibm.com> In-Reply-To: <20130726031950.GA6438@iris.ozlabs.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13072603-2000-0000-0000-00000D0AB79C Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2049 Lines: 48 Hi Paul, On 07/26/2013 08:49 AM, Paul Mackerras wrote: > 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. Noted. Thank you :) I will probably send out a fresh patchset with the appropriate changelog to avoid this confusion ? > > Paul. > Regards Preeti U murthy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/