Subject: CVS commit: src/sys/dev/ic
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 09/16/2007 15:02:07
Module Name:	src
Committed By:	bouyer
Date:		Sun Sep 16 15:02:07 UTC 2007

Modified Files:
	src/sys/dev/ic: ahcisata_core.c ahcisatareg.h

Log Message:
Fix various error handling bugs:
- the value of the ATA error register would be computed wrongly, leading to
  bogus error values reported to wd(4)
- the channel would not always be restarted after an error, so the next
  command would not be handled by the controller
- a timeout condition would not be properly reported to wd(4), leading
  to a short transfer instead of a reset/retry
these bugs would cause a AHCI SATA channel to be stalled (no more command
processed) after a "ID not found" or "Aborted command" error reported by the
drive.


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 src/sys/dev/ic/ahcisata_core.c
cvs rdiff -r1.1 -r1.2 src/sys/dev/ic/ahcisatareg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.