From: "Rafael J. Wysocki" Subject: Re: [linux-pm] [PATCH 02/11] PM: extend PM QoS with per-device wake-up constraints Date: Tue, 23 Aug 2011 23:31:54 +0200 Message-ID: <201108232331.54844.rjw@sisk.pl> References: <20110820062543.GA5011@opensource.wolfsonmicro.com> <201108212005.53898.rjw@sisk.pl> <20110823092155.GJ9232@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from ogre.sisk.pl ([217.79.144.158]:32826 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752183Ab1HWVaJ (ORCPT ); Tue, 23 Aug 2011 17:30:09 -0400 In-Reply-To: <20110823092155.GJ9232@opensource.wolfsonmicro.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Mark Brown Cc: Alan Stern , Linux PM mailing list , linux-omap@vger.kernel.org, Jean Pihet , markgross@thegnar.org On Tuesday, August 23, 2011, Mark Brown wrote: > On Sun, Aug 21, 2011 at 08:05:53PM +0200, Rafael J. Wysocki wrote: > > On Sunday, August 21, 2011, Mark Brown wrote: > > > > I don't understand why the driver would need to know what situation it's > > > in. I'd been working on the basis that the idea was that the driver > > > said what the constraints it has are and then some code with a more > > > system wide view would make the actual decisions for things outside the > > > driver domian. > > > That's correct, but in order to figure out a "sensible default" > > the driver generally would need to know what the expectations with > > respect to it are. Otherwise it can very well generate a random > > number and use that. > > Right, but I'd expect that should be something that the driver can > generally do based on knowledge of what it needs to deliver to its > users. It doesn't need to be tunable to that - for example, input > devices will have a reasonable idea of the response time needed to > deliver interactive performance. If it's really got no idea then > hopefully not providng any constraints will do something sensible. Perhaps. Still, that requires some policy to be put into drivers, which I don't think is entirely correct. Thanks, Rafael