ahci - Adjust a few things
commit0e589b85686434c5a4deb4cf3514d3e9f02df367
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 19 Dec 2016 00:45:06 +0000 (18 16:45 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 19 Dec 2016 18:20:49 +0000 (19 10:20 -0800)
treef3830cf2647e4b8ec0ce2fd0ff29cfc292a27d64
parent499dbb9a4526dc66764051c80c57dfe0815696e6
ahci - Adjust a few things

* These changes have no effect on known AHCI devices but are a good idea.

* As suggested in the AHCI spec 10.1.2, zero out the memory pointed to
  by the FB and CL port dma addresses.

* Write to FB before FBU, and to CLB before CLBU, just in case hardware
  clears the upper bits on a write to the lower bits (no known AHCI
  hardware does this but its something that is commonly implemented in
  other hw so...).

* Improved I/O error reporting.
sys/dev/disk/ahci/ahci.c
sys/dev/disk/ahci/ahci.h
sys/dev/disk/ahci/ahci_attach.c
sys/dev/disk/ahci/ahci_cam.c
sys/dev/disk/ahci/atascsi.h