Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757505Ab0FEU0b (ORCPT ); Sat, 5 Jun 2010 16:26:31 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:39458 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754707Ab0FEU03 convert rfc822-to-8bit (ORCPT ); Sat, 5 Jun 2010 16:26:29 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=xWAzAMlAmGlyQjTntrrVpbaknnaLOgVToKl4yauvstmkJul8vFpLZkfPtVLFfJs7Pn u7K9MQKKWPZeqsbhPRbFrp9HuhnlSeKQm5AbhuhTWUIcrFakaHAGmJxkJdeN/Yyg9mYP bcg8p24opBesk5fBhuWnNTKew8DsnzNNUe/z8= MIME-Version: 1.0 In-Reply-To: <20100605220143.08774900@schatten.dmk.lab> References: <201005302202.39511.rjw@sisk.pl> <201005312347.24251.rjw@sisk.pl> <1275471561.27810.30865.camel@twins> <20100605220143.08774900@schatten.dmk.lab> Date: Sat, 5 Jun 2010 23:26:27 +0300 Message-ID: Subject: Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8) From: Felipe Contreras To: Florian Mickler Cc: =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Peter Zijlstra , Thomas Gleixner , "Rafael J. Wysocki" , Matthew Garrett , Alan Stern , Paul@smtp1.linux-foundation.org, LKML , felipe.balbi@nokia.com, Linux OMAP Mailing List , Linux PM , Alan Cox Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3129 Lines: 71 On Sat, Jun 5, 2010 at 11:01 PM, Florian Mickler wrote: > On Sat, 5 Jun 2010 20:44:24 +0300 > Felipe Contreras wrote: > >> 2010/6/2 Arve Hjønnevåg : >> > 2010/6/2 Peter Zijlstra : >> >> (and please don't mention @#$@ up x86 ACPI again, Intel knows, they're >> >> fixing it, get over it already). >> >> >> > >> > I don't think it is realistic to drop support for all existing hardware. >> >> We are talking about mainline here, there's no support for suspend >> blockers, so nothing is dropped. >> >> In the mind of everybody, suspend blockers is for opportunistic >> suspend, which only makes sense on sensible hw (not current x86). So >> in the mind of everybody, x86 should be out of scope for the analysis >> of suspend blockers. >> >> Are you seriously suggesting that one of the strong arguments in favor >> of suspend blockers is x86 usage (nobody agrees)? If not, then drop >> it. > > I think they have an advantage over the > 30-minute-screensaver-then-suspend that current desktops do. Because > you can define what keeps the system up. I.e. the > screensaver/powermanager is not limited to keyboard- and > mouse-inactivity. What prevents you from defining other things keeping the system up right now? Nothing. It's up to user-space to decide when to suspend. In fact applications already block suspend; Transmission has the option to block suspend when downloading torrents. >> If I enable suspend blockers on my laptop, I have to modify my >> user-space. Otherwise my system will behave horribly. >> > > In the simplest case you have a shell script which takes a suspend > blocker and reads from stdinput. When you write "mem" to it, it > releases the suspend blocker and acquires it back again. Voila, forced > suspend reimplemented on top of opportunistic suspend. > > That wasn't hard, was it? Not hard, but still a modification of user-space, and a pretty bad one because it will prevent typical forced suspend, and typical suspend delaying (like with Transmission). Supposing the opportunistic suspend doesn't block the forced suspend, still, absolutely nothing will be achieved by enabling suspend blockers. If you want to take even a minimal advantage of suspend blockers you need serious modifications to user-space. Supposing there's a perfect usage of suspend blockers from user-space on current x86 platforms (in theory Android would have that), is the benefit that big to consider this a strong argument in favor of suspend blockers? Considering the small amount of x86 platforms using Android (is there any?), the fact that nobody else will use suspend blockers, and that x86 is already being fixed (as mentioned many times before) so dynamic PM is possible, I don't think we should be considering current x86 at all for suspend blockers. -- Felipe Contreras -- 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/