cvs commit: src/sys/dev/pci pci.c

[ Available lists | Index of cvs-src | Month of Sep 2005 | Week of 11 Sep 2005 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Warner Losh <imp@FreeBSD.org>
Date
11 Sep 2005 04:09:45
Subject
cvs commit: src/sys/dev/pci pci.c
Message-ID
200509110409.j8B49ig7099210@repoman.freebsd.org


[ Hide this part ]
imp         2005-09-11 04:09:44 UTC

FreeBSD src repository

Modified files:
sys/dev/pci pci.c
Log:
Change hw.pci.do_powerstate from a boolean to a range. 0 means the
same as today: do no power management. 1 means be conservative about
what you power down (any device class that has caused problems gets
added here). 2 means be agressive about what gets powered down (any
device class that's fundamental to the system is here). 3 means power
them all down, reguardless. The default is 1.

The effect in the default system is to add mass storage devices to the
list that we don't power down. From all the pciconf -l lists that
I've seen for the aac and amr issue, the bad device has been a mass
storage device class.

This is an attempt at a compromise between the very small number of
systems that have extreme issues with powerdown, and the very large
number of systems that gain real benefits from powerdown (I get about
20% more battery life when I attach a minimal set of drivers on my
Sony). Hopefully it will strike the proper balance.

MFC After: 3 days (before next beta)

Revision Changes Path
1.297 +34 -15 src/sys/dev/pci/pci.c


Elapsed time: 0.069 seconds