Subject: CVS commit: [netbsd-3] src/sys/dev
To: None <source-changes@NetBSD.org>
From: Matthias Scheler <tron@netbsd.org>
List: source-changes
Date: 11/21/2005 20:55:44
Module Name:	src
Committed By:	tron
Date:		Mon Nov 21 20:55:44 UTC 2005

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

Log Message:
Pull up following revision(s) (requested by bouyer in ticket #973):
	sys/dev/ic/siop.c: revision 1.79
	sys/dev/ic/siopvar_common.h: revision 1.33
	sys/dev/ic/esiopvar.h: revision 1.13
	sys/dev/ic/esiop.c: revision 1.34
	sys/dev/microcode/siop/esiop.ss: revision 1.20
	sys/dev/ic/siopvar.h: revision 1.22
	sys/dev/microcode/siop/siop.ss: revision 1.20
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.32.4.1 -r1.32.4.2 src/sys/dev/ic/esiop.c
cvs rdiff -r1.12 -r1.12.2.1 src/sys/dev/ic/esiopvar.h
cvs rdiff -r1.78 -r1.78.2.1 src/sys/dev/ic/siop.c
cvs rdiff -r1.21 -r1.21.2.1 src/sys/dev/ic/siopvar.h
cvs rdiff -r1.32 -r1.32.2.1 src/sys/dev/ic/siopvar_common.h
cvs rdiff -r1.19 -r1.19.2.1 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.