Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932901AbWLSUXJ (ORCPT ); Tue, 19 Dec 2006 15:23:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932936AbWLSUXJ (ORCPT ); Tue, 19 Dec 2006 15:23:09 -0500 Received: from pentafluge.infradead.org ([213.146.154.40]:46131 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932901AbWLSUXI (ORCPT ); Tue, 19 Dec 2006 15:23:08 -0500 Subject: Re: Changes to sysfs PM layer break userspace From: Arjan van de Ven To: Matthew Garrett Cc: linux-kernel@vger.kernel.org, david-b@pacbell.net, gregkh@suse.de In-Reply-To: <20061219200803.GA14332@srcf.ucam.org> References: <20061219185223.GA13256@srcf.ucam.org> <1166556889.3365.1269.camel@laptopd505.fenrus.org> <20061219194410.GA14121@srcf.ucam.org> <1166558602.3365.1271.camel@laptopd505.fenrus.org> <20061219200803.GA14332@srcf.ucam.org> Content-Type: text/plain Organization: Intel International BV Date: Tue, 19 Dec 2006 21:23:05 +0100 Message-Id: <1166559785.3365.1276.camel@laptopd505.fenrus.org> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 (2.8.2.1-2.fc6) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1463 Lines: 35 On Tue, 2006-12-19 at 20:08 +0000, Matthew Garrett wrote: > On Tue, Dec 19, 2006 at 09:03:21PM +0100, Arjan van de Ven wrote: > > > humm shouldn't the driver do this when the interface is brought down? > > sounds like you're playing with fire to do this behind the drivers' > > back.... > > I'm not sure. Suspending the chip means you lose things like link beat > detection, so it's not something you necessarily want to automatically > tie to something like interface status. right now the "spec" for Linux network drivers assumes that you put the NIC into D3 on down, except for cases where Wake-on-Lan is enabled etc. > Some chips support more > fine-grained power management, so we could do something more sensible in > that case - but right now, there doesn't seem to be a lot of driver > support for it. sounds like that's the right approach at least .. not talking to the PCI hardware directly from userspace... I can see the point of having more than just "UP" and "DOWN" as interface states; "UP", "DOWN" and "OFF" for example... -- if you want to mail me at work (you don't), use arjan (at) linux.intel.com Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org - 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/