DragonFly commits List (threaded) for 2009-06
DragonFly-126.96.36.1990.g4c339 master sys/dev/disk/ahci ahci.c ahci.h ahci_cam.c ahci_pm.c
Author: Matthew Dillon <firstname.lastname@example.org>
Date: Sat Jun 13 20:27:59 2009 -0700
AHCI - Implement better timeout semantics, fix bug in error handling, softreset
* Stopping a port with ahci_port_stop() is problematic if the port has not
already been stopped by the command processor (CR is inactive), because
command completions can race our saved CI register, leading to
double-issues. This creates issues with both NCQ and FBSS support.
Change the timeout code to idle the port by allowing commands to
complete normally until the only commands remaining are expired.
Then the port can be safely stopped.
The timeout code also no longer performs a softreset. It used to under
* With the changes to the timeout code softreset is no longer being called
from the timeout code, remove hacks from the softreset code that attempted
to restore the command processing state on failure.
* The CAM code was not properly generating dummy SENSE data for command
timeouts, leading the kernel to believe that the command succeeded
when it in fact failed.
Summary of changes:
sys/dev/disk/ahci/ahci.c | 452 +++++++++++++++++++++---------------------
sys/dev/disk/ahci/ahci.h | 1 +
sys/dev/disk/ahci/ahci_cam.c | 4 +
sys/dev/disk/ahci/ahci_pm.c | 2 -
4 files changed, 226 insertions(+), 233 deletions(-)
DragonFly BSD source repository