From mboxrd@z Thu Jan 1 00:00:00 1970 From: Auke Kok Subject: Re: Runtime power management for network interfaces Date: Tue, 25 Jul 2006 09:20:06 -0700 Message-ID: <44C644B6.20208@intel.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Network development list , David Brownell Return-path: Received: from mga01.intel.com ([192.55.52.88]:55081 "EHLO fmsmga101-1.fm.intel.com") by vger.kernel.org with ESMTP id S932447AbWGYQi0 (ORCPT ); Tue, 25 Jul 2006 12:38:26 -0400 To: Alan Stern In-Reply-To: Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Alan Stern wrote: > During a Power Management session at the Ottawa Linux Symposium, it was > generally agreed that network interface drivers ought to automatically > suspend their devices (if possible) whenever: > > (1) The interface is ifconfig'ed down, or > > (2) No link is available. > > Presumably (1) should be easy enough to implement. (2) might or might not > be feasible, depending on how much WOL support is available. (It might > not be feasible at all for wireless networking.) Still, there can be no > question that it would be a Good Thing for laptops to power-down their > ethernet controllers when the network cable is unplugged. > > Has any progress been made in this direction? If not, a natural approach > would be to start with a reference implementation in one driver which > could then be copied to other drivers. Intel's newer e1000's (ich7 onboard e1000 and newer versions for instance) already support this feature partially - the MAC stays on but the PHY can be powered off when no link is present. In order to enable this feature you will need to turn it on explicitly at load time: modprobe e1000 SmartPowerDownEnable=1 Allthough not the entire NIC is powered off, it still saves a significant part of the power consumed by the NIC. All bits help. The power automatically restores once a cable is plugged in. Cheers, Auke