From: Pavel Machek <pavel@suse.cz>
To: "Jeffrey W. Baker" <jwbaker@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Put unused PCI devices in D3
Date: Fri, 3 Oct 2008 21:37:18 +0200 [thread overview]
Message-ID: <20081003193718.GB1497@ucw.cz> (raw)
In-Reply-To: <1222719064.19236.129.camel@squeak.gghcwest.com>
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
prev parent reply other threads:[~2008-10-03 19:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-29 20:11 Jeffrey W. Baker
2008-09-30 0:09 ` Matthew Garrett
2008-09-30 0:55 ` Jeffrey W. Baker
2008-09-30 1:06 ` Matthew Garrett
2008-10-03 19:40 ` Pavel Machek
2008-10-03 19:37 ` Pavel Machek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081003193718.GB1497@ucw.cz \
--to=pavel@suse.cz \
--cc=jwbaker@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®