git: ahci - Adjust a few things
dillon at crater.dragonflybsd.org
Mon Dec 19 10:20:53 PST 2016
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Dec 18 16:45:06 2016 -0800
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.
Summary of changes:
sys/dev/disk/ahci/ahci.c | 10 +++++++---
sys/dev/disk/ahci/ahci.h | 3 +++
sys/dev/disk/ahci/ahci_attach.c | 14 +++++++++-----
sys/dev/disk/ahci/ahci_cam.c | 17 ++++++++++++++---
sys/dev/disk/ahci/atascsi.h | 1 +
5 files changed, 34 insertions(+), 11 deletions(-)
DragonFly BSD source repository
More information about the Commits