kernel - AHCI - enable AHCI device initiated power management
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 12 Mar 2010 23:07:58 +0000 (15:07 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 12 Mar 2010 23:07:58 +0000 (15:07 -0800)
commit795adb22603dc0509b704b8e4e5c1c82c888256a
tree4d9e74f341186fae466216de1825f09fa3abf1f3
parent255301128e764dd284d43bd58d2124509ace84af
kernel - AHCI - enable AHCI device initiated power management

* Add hw.ahci sysctls to allow the power management state to be set and
  monitored.

* Issue device features command when aggressive power management is
  enabled to turn on device-initiated power management, and turn it off
  when power management is set to none.

* Currently does not try do power management for devices behind a
  PM.

Submitted-by: Johannes Hofmann <johannes.hofmann@gmx.de>
sys/dev/disk/ahci/ahci.c
sys/dev/disk/ahci/ahci.h
sys/dev/disk/ahci/ahci_dragonfly.c
sys/dev/disk/ahci/ahci_pm.c