Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756772Ab0FBJc7 (ORCPT ); Wed, 2 Jun 2010 05:32:59 -0400 Received: from mail-pz0-f176.google.com ([209.85.222.176]:45447 "EHLO mail-pz0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751329Ab0FBJc6 convert rfc822-to-8bit (ORCPT ); Wed, 2 Jun 2010 05:32:58 -0400 MIME-Version: 1.0 In-Reply-To: References: <201005302202.39511.rjw@sisk.pl> <201005312347.24251.rjw@sisk.pl> Date: Wed, 2 Jun 2010 02:32:57 -0700 Message-ID: Subject: Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8) From: =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5g?= To: Thomas Gleixner Cc: "Rafael J. Wysocki" , Florian Mickler , Matthew Garrett , Alan Stern , Peter Zijlstra , Paul@smtp1.linux-foundation.org, LKML , felipe.balbi@nokia.com, Linux OMAP Mailing List , Linux PM , Alan Cox Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2913 Lines: 79 2010/6/2 Thomas Gleixner : > On Wed, 2 Jun 2010, Arve Hj?nnev?g wrote: >> 2010/6/2 Thomas Gleixner : >> > On Tue, 1 Jun 2010, Arve Hj?nnev?g wrote: >> >> >> >> Because suspend itself causes you to not be idle you cannot abort >> >> suspend just because you are not idle anymore. >> > >> > You still are addicted to the current suspend mechanism. :) >> > >> >> No I want you to stop confusing low power idle modes with suspend. I >> know how to enter low power modes from idle if that low power mode is >> not too disruptive. > > What prevents us from going into a disruptive mode from idle ? I don't > see a reason - except crappy ACPI stuff, which I'm happy to ignore. > What do you consider disruptive? Disabling active interrupts? Stopping the monotonic clock? >> > If I understood you correctly then you can shutdown the CPU in idle >> > completelty already, but that's not enough due to: >> > >> > ? ?1) crappy applications keeping the cpu away from idle >> > ? ?2) timers firing >> > >> > Would solving those two issues be sufficient for you or am I missing >> > something ? >> >> Solving those two is enough for current android phones, but it may not >> be enough for other android devices. > > In which way ? May not be enough is a pretty vague statement. They may not be based on hardware that can get to the same power mode from idle as suspend. This could be acpi based hardware, it could be like the hardware we started with that did not have regular timers that could run in the low power mode, or devices could loose their state in the lowest power mode. > >> 1 is not solvable (meaning we cannot fix all apps), > > We can mitigate it with cgroups and confine crap there, i.e. force > idle them. > I think using suspend is much simpler. It avoids having to worry about dependencies between processes. >> and 2 is difficult to fix since the periodic >> work is useful while the device is actually in use. One possible way >> to solve 2 is to allow timers on a not-idle clock. > > That's what I had in mind. > >> Unrelated to Android, I also want to use opportunistic suspend on my >> desktop. > > I expect that intel/amd fixing their stuff is going to happen way > before we sprinkled suspend blockers over a full featured desktop > distro. > You do not need to sprinkle suspend blocker all over the distro for it to be useful. You can convert the existing auto-suspend code to use opportunistic suspend and all apps that don't use suspend blocker will behave as they do today while allowing apps to use suspend blockers to keep the system running after the auto-suspend timeout expired. -- Arve Hj?nnev?g -- 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/