Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753834Ab0HHSIL (ORCPT ); Sun, 8 Aug 2010 14:08:11 -0400 Received: from e3.ny.us.ibm.com ([32.97.182.143]:51997 "EHLO e3.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753197Ab0HHSIJ (ORCPT ); Sun, 8 Aug 2010 14:08:09 -0400 Date: Sun, 8 Aug 2010 11:07:49 -0700 From: "Paul E. McKenney" To: Felipe Contreras Cc: linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, arve@android.com, mjg59@srcf.ucam.org, pavel@ucw.cz, florian@mickler.org, rjw@sisk.pl, stern@rowland.harvard.edu, swetland@google.com, peterz@infradead.org, tglx@linutronix.de, alan@lxorguk.ukuu.org.uk, david@lang.hm, menage@google.com, david-b@pacbell.net, James.Bottomley@suse.de, tytso@mit.edu, arjan@infradead.org, swmike@swm.pp.se, galibert@pobox.com, dipankar@in.ibm.com Subject: Re: Attempted summary of suspend-blockers LKML thread, take three Message-ID: <20100808180749.GG19600@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20100731175841.GA9367@linux.vnet.ibm.com> <20100804195704.GA23681@linux.vnet.ibm.com> <20100806225453.GA3947@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2981 Lines: 67 On Sun, Aug 08, 2010 at 03:40:28PM +0300, Felipe Contreras wrote: > On Sat, Aug 7, 2010 at 1:54 AM, Paul E. McKenney > wrote: > > o ? ? ? "Ill-behaved application" AKA "untrusted application" AKA > > ? ? ? ?"crappy application". > > > o ? ? ? "PM-driving application" are applications that are permitted > > ? ? ? ?to acquire suspend blockers on Android. > > These definitions are wrong. Indeed they are, given the way you quoted small portions of them. ;-) > 1) There are trusted applications that misbehave (the user clicks Yes > when asked about PM permissions) These would be buggy PM-driving applications. Of course, any type of application might have bugs, including PM-driving applications. > 2) There are untrusted applications that are power optimized (The user > clicks No) I did indeed exclude this category by saying "power-optimized applications are those PM-driving applications that have been aggressively tuned to reduce power consumption." The reason I excluded this case is that that there are a number of cases where removing the PM-driving attribute could destroy the power optimization. If you have an example power-optimized application that retains its power-optimized property despite lacking PM-driving privileges, please put it forward. In doing so, please keep two things in mind: 1. The definition of power-optimized is more aggressive than many people are used to -- look at http://lkml.org/lkml/2010/8/4/409 and search for "POWER-OPTIMIZED APPLICATIONS". 2. In a number of the implementations that do not use suspend blockers, -all- applications are in effect PM-driving applications. So it is quite possible that different people are using subtly different flavors of the "PM-driving applications" definition. For example, an Android person might consider a application to be PM-driving only if it is permitted to use suspend blockers, while a Maemo person might consider an application to be PM-driving if it had permission to invoke pm_qos functions. If these two hypothetical people each try to apply their definition of PM-driving to each others' platforms, they will likely have severe problems communicating with each other, right? ;-) But if you do have a good example, perhaps I will need to change my definition of power-optimized application. > The proponents of suspend blockers in user-space have tried to ignore > this fact, but the truth is that PM permissions and power optimization > are orthogonal to each other. In fact, you might have noticed that the proponents of each platform have been quite persistent in shouting past each other from the warmth and security of their own particular viewpoints. ;-) Thanx, Paul -- 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/