Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761522Ab0HGJDX (ORCPT ); Sat, 7 Aug 2010 05:03:23 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:48350 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752618Ab0HGJDU (ORCPT ); Sat, 7 Aug 2010 05:03:20 -0400 From: "Rafael J. Wysocki" To: david@lang.hm Subject: Re: Attempted summary of suspend-blockers LKML thread Date: Sat, 7 Aug 2010 11:01:24 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.35-rjw+; KDE/4.4.4; x86_64; ; ) Cc: Mark Brown , "Paul E. McKenney" , Brian Swetland , kevin granade , "Arve Hj?nnev?g" , Matthew Garrett , Arjan van de Ven , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, pavel@ucw.cz, florian@mickler.org, stern@rowland.harvard.edu, peterz@infradead.org, tglx@linutronix.de, alan@lxorguk.ukuu.org.uk References: <20100805230304.GQ2447@linux.vnet.ibm.com> <20100807001431.GA3252@opensource.wolfsonmicro.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008071101.25384.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2085 Lines: 44 On Saturday, August 07, 2010, david@lang.hm wrote: > On Sat, 7 Aug 2010, Mark Brown wrote: > > > On Fri, Aug 06, 2010 at 04:35:59PM -0700, david@lang.hm wrote: > >> On Fri, 6 Aug 2010, Paul E. McKenney wrote: ... > What we want to have happen in an ideal world is > > when the storage isn't needed (between reads) the storage should shutdown > to as low a power state as possible. > > when the CPU isn't needed (between decoding bursts) the CPU and as much of > the system as possible (potentially including some banks of RAM) should > shutdown to as low a power state as possible. Unfortunately, the criteria for "not being needed" are not really straightforward and one of the wakelocks' roles is to work around this issue. > today there are two ways of this happening, via the idle approach (on > everything except Android), or via suspend (on Android) > > Given that many platforms cannot go to into suspend while still playing > audio, the idle approach is not going to be able to be eliminated (and in > fact will be the most common approach to be used/deugged in terms of the > types of platforms), it seems to me that there may be a significant amount > of value in seeing if there is a way to change Android to use this > approach as well instead of having two different systems competing to do > the same job. There is a fundamental obstacle to that, though. Namely, the Android developers say that the idle-based approach doesn't lead to sufficient energy savings due to periodic timers and "polling applications". Technically that boils down to the interrupt sources that remain active in the idle-based case and that are shut down during suspend. If you found a way to deactivate all of them from the idle context in a non-racy fashion, that would probably satisfy the Android's needs too. Thanks, Rafael -- 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/