Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030190AbWCALb5 (ORCPT ); Wed, 1 Mar 2006 06:31:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030187AbWCALb5 (ORCPT ); Wed, 1 Mar 2006 06:31:57 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:21952 "EHLO ogre.sisk.pl") by vger.kernel.org with ESMTP id S1030190AbWCALb4 (ORCPT ); Wed, 1 Mar 2006 06:31:56 -0500 From: "Rafael J. Wysocki" To: Greg KH Subject: Re: [PATCH 0/4] Fix runtime device suspend/resumre interface Date: Wed, 1 Mar 2006 12:31:45 +0100 User-Agent: KMail/1.9.1 Cc: Patrick Mochel , akpm@osdl.org, torvalds@osdl.org, linux-kernel@vger.kernel.org, linux-pm@osdl.org References: <20060301003810.GI23716@kroah.com> In-Reply-To: <20060301003810.GI23716@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603011231.46170.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2821 Lines: 60 On Wednesday 01 March 2006 01:38, Greg KH wrote: > On Mon, Feb 27, 2006 at 11:18:43AM -0800, Patrick Mochel wrote: > > > > On Tue, 21 Feb 2006, Greg KH wrote: > > > > > On Mon, Feb 20, 2006 at 04:55:34PM -0800, Patrick Mochel wrote: > > > > > > > > Hi there, > > > > > > > > Here is an updated version of the patches to fix the sysfs interface for > > > > runtime device power management by restoring the file to its originally > > > > designed behavior - to place devices in the power state specified by the > > > > user process writing to the file. > > > > > > > > Recently, the interface was changed to filter out values to prevent a > > > > BUG() that was introduced in the PCI power management code. While a valid > > > > fix, it makes the driver core filter values that might otherwise be used > > > > by the bus/device drivers. > > > > > > Are there any existing bus/device drivers that are currently broken > > > because of this change? > > > > It's difficult to tell. There are several devices that support multiple > > PCI power states, and several drivers that will attempt to put the device > > into whatever state is passed to their ->suspend() method. But, there are > > not many that handle D1 or D2 specially. > > > > The point of the patches was to restore the functionality of the sysfs > > file to its documented interface, which had been that way since the file > > was created (early in 2.6). In the last year, since the conversion to the > > pm_message_t in driver suspend methods, it is not behaved as it was > > advertised to do. > > > > One solution is to prohibit any suspend/resume commands besides "on" and > > "off", and to change the documented semantics of the file. But, it seems > > much more useful to enable the use of the intermediate states, so long as > > it doesn't do any serious harm. Put another way, it doesn't seem to make > > sense to intentionally prevent the use of intermediate power states. > > > > What is also a bit wonky is the handling of those intermediate power > > states now. If someone has a PCI device that advertises D1/D2 support, and > > he/she knows the driver supports it (or is writing the driver support for > > it), a write of "1" or "2" to the device's state file is not going to > > provide the type of behavior that one would expect.. > > > > Does that help at all? > > Hm, no. As nothing can be proven to be broken right now, it's way too > late to get any change like this into 2.6.16-final. Especially as your > patch series broke Andrew's laptop :) And mine too, FWIW. ;-) Greetings, 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/