On Tue, 2008-09-30 at 01:09 +0100, Matthew Garrett wrote:
True. On my hardware, the smbus controller doesn't advertise power
management capabilities, so this would not be a problem.
Very cool. netbsd-current apparently has this already (and a
kernel-wide topological representation of PCI power management
generally).
I sure would like to have it back, if only just for experimentation.
Right now, I don't even know what kind of power savings could be
achieved from D3, I'm just speculating. As you rightfully point out,
it's possible that the driver could put the device into an ultra-low
power saving state while still operating in D0, and that D3 savings
would be negligible.
No, you couldn't, but that isn't really the point. If I have my laptop
on a transoceanic flight it may be useful for me to be able to set a
power policy turning off all the extraneous junk on my machine, because
I know /a priori/ that no hotplug events will happen. There's no way
the kernel could know that, but userspace can tell the kernel to turn
off an unneeded device.
Think of it this way. Putting the machine into S3 prevents it from
checking my email, but the capability exists. All I want to do is
extend that concept to the PCI device level.
Anyway, ohci1394 is pretty easy to understand, and it's not likely to
hose up the system too badly, so I'm going to perform surgery there.
-jwb
--