AHCI - Add conditional logic for wcache and rahead, enhanced reporting, fixes
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 6 Jun 2009 05:11:38 +0000 (22:11 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 6 Jun 2009 05:11:38 +0000 (22:11 -0700)
commit669fbbf7b5b168ecb7f843bff5909f6ccd9a8f91
tree3dd43bbb10eac8db725e2cb6e315b35a256f7757
parent4444122d5f4134b877d299c50b1105c0d15fd3d6
AHCI - Add conditional logic for wcache and rahead, enhanced reporting, fixes

* Do not enable the write cache if the ident info says it is already enabled.

* Do not enable read-ahead if the ident info says it is already enabled.

* Do not try to set the freeze lock if the security feature is not supported.

* Enhanced error reporting.

* Report wcache and rahead state in the Ident.

NOTE: "WD My Book" ESATA consumer devices generate a fatal interface error
      when presented with ATA_C_SET_FEATURES.  The above code will quietly
      work around the problem.  The bug is likely in the My Book daughter
      board.
sys/dev/disk/ahci/ahci_cam.c
sys/dev/disk/ahci/atascsi.h