Subject: CVS commit: src/sys/dev
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 11/18/2005 23:10:32
Module Name:	src
Committed By:	bouyer
Date:		Fri Nov 18 23:10:32 UTC 2005

Modified Files:
	src/sys/dev/ic: esiop.c esiopvar.h siop.c siopvar.h siopvar_common.h
	src/sys/dev/microcode/siop: esiop.ss siop.ss

Log Message:
Some drives disconnect after the last data phase without a save data pointer
message. In such case we would not update resid with the proper value
(eventually resid would not be updated at all if there was only one data
phase). To fix this, have the script save the offset in the data tables at
disconnect time if there was a transfer, and use this to compute the resid
if the current offset is 0.
Problem reported and patch tested by edwin, Roy Bixler and YAMAMOTO Takashi.
Fix kern/31990 by YAMAMOTO Takashi.


To generate a diff of this commit:
cvs rdiff -r1.33 -r1.34 src/sys/dev/ic/esiop.c
cvs rdiff -r1.12 -r1.13 src/sys/dev/ic/esiopvar.h
cvs rdiff -r1.78 -r1.79 src/sys/dev/ic/siop.c
cvs rdiff -r1.21 -r1.22 src/sys/dev/ic/siopvar.h
cvs rdiff -r1.32 -r1.33 src/sys/dev/ic/siopvar_common.h
cvs rdiff -r1.19 -r1.20 src/sys/dev/microcode/siop/esiop.ss \
    src/sys/dev/microcode/siop/siop.ss

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