Subject: CVS commit: [netbsd-2] src/sys/dev
To: None <source-changes@NetBSD.org>
From: Jeff Rizzo <riz@netbsd.org>
List: source-changes
Date: 12/01/2005 20:05:26
Module Name:	src
Committed By:	riz
Date:		Thu Dec  1 20:05:26 UTC 2005

Modified Files:
	src/sys/dev/ic [netbsd-2]: esiop.c esiopvar.h siop.c siopvar.h
	    siopvar_common.h
	src/sys/dev/microcode/siop [netbsd-2]: esiop.ss siop.ss

Log Message:
Pull up following revision(s) (requested by bouyer in ticket #10168):
	sys/dev/ic/siop.c: revision 1.79 via patch
	sys/dev/ic/siopvar_common.h: revision 1.33 via patch
	sys/dev/ic/esiopvar.h: revision 1.13 via patch
	sys/dev/ic/esiop.c: revision 1.34 via patch
	sys/dev/microcode/siop/esiop.ss: revision 1.20 via patch
	sys/dev/ic/siopvar.h: revision 1.22 via patch
	sys/dev/microcode/siop/siop.ss: revision 1.20 via patch
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.27.4.5 -r1.27.4.6 src/sys/dev/ic/esiop.c
cvs rdiff -r1.8.4.1 -r1.8.4.2 src/sys/dev/ic/esiopvar.h
cvs rdiff -r1.72.4.4 -r1.72.4.5 src/sys/dev/ic/siop.c
cvs rdiff -r1.19 -r1.19.6.1 src/sys/dev/ic/siopvar.h
cvs rdiff -r1.27.4.2 -r1.27.4.3 src/sys/dev/ic/siopvar_common.h
cvs rdiff -r1.16.4.2 -r1.16.4.3 src/sys/dev/microcode/siop/esiop.ss
cvs rdiff -r1.17.10.1 -r1.17.10.2 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.