lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081003193718.GB1497@ucw.cz>
Date:	Fri, 3 Oct 2008 21:37:18 +0200
From:	Pavel Machek <pavel@...e.cz>
To:	"Jeffrey W. Baker" <jwbaker@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Put unused PCI devices in D3

Hi!

> My laptop computer has half a dozen unused PCI devices that could be put
> in the D3 power state, but they loiter in D0.  The audio codec, the
> ethernet adapter, the unused PCI Express port, all the USB controllers,
> the IEEE1394 controller, the SD/MMC card controller, and the cardbus
> bridge all support D3(hot) power state.
> 
> Currently it looks to me from browsing the code that D3 is only used in
> Linux when the whole machine is headed for S3, and the drivers are asked
> to suspend.  I think the drivers should be able to enter D3 in other
> circumstances:
> 
> * During pci_unregister_driver ... i.e. on module unload
> * When a network interface is downed
> * If the device is a bridge or hub with no downstream device
> * Whenever userspace requests D3 via sysfs

Well, patch that would put all unused devices into D3 would be
certainly 'interesting'. Then we  could measure power savings and
perhaps do it... (or not if it breaks machines as Mathew suggests).

> So, what fundamental problem prevents me from, for example, calling
> pci_set_power_state() from ohci1394's __exit?

Patch would be welcome.

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ