Put unused PCI devices in D3

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Date: Monday, September 29, 2008 - 4:11 pm

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

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

-jwb

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Put unused PCI devices in D3, Jeffrey W. Baker, (Mon Sep 29, 4:11 pm)
Re: Put unused PCI devices in D3, Pavel Machek, (Fri Oct 3, 3:37 pm)
Re: Put unused PCI devices in D3, Matthew Garrett, (Mon Sep 29, 8:09 pm)
Re: Put unused PCI devices in D3, Jeffrey W. Baker, (Mon Sep 29, 8:55 pm)
Re: Put unused PCI devices in D3, Pavel Machek, (Fri Oct 3, 3:40 pm)
Re: Put unused PCI devices in D3, Matthew Garrett, (Mon Sep 29, 9:06 pm)