Module Name: src
Committed By: macallan
Date: Sat Jul 1 15:54:09 UTC 2017
Modified Files:
src/sys/dev/ic: ncr53c9x.c
Log Message:
do what other SCSI drivers do - ack MSG_IGN_WIDE_RESIDUE messages and move on
instead of erroring out and resetting the drive
while there, when rejecting a message print which one it is
now my U2 boots without resetting its disk 3 times
To generate a diff of this commit:
cvs rdiff -u -r1.147 -r1.148 src/sys/dev/ic/ncr53c9x.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/ncr53c9x.c
diff -u src/sys/dev/ic/ncr53c9x.c:1.147 src/sys/dev/ic/ncr53c9x.c:1.148
--- src/sys/dev/ic/ncr53c9x.c:1.147 Wed Jan 11 07:16:48 2017
+++ src/sys/dev/ic/ncr53c9x.c Sat Jul 1 15:54:08 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: ncr53c9x.c,v 1.147 2017/01/11 07:16:48 skrll Exp $ */
+/* $NetBSD: ncr53c9x.c,v 1.148 2017/07/01 15:54:08 macallan Exp $ */
/*-
* Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.147 2017/01/11 07:16:48 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.148 2017/07/01 15:54:08 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1837,12 +1837,15 @@ gotit:
goto reject;
}
break;
+ case MSG_IGN_WIDE_RESIDUE:
+ NCR_MSGS(("ignore wide residue "));
+ break;
default:
NCR_MSGS(("ident "));
scsipi_printaddr(ecb->xs->xs_periph);
- printf("%s: unrecognized MESSAGE; sending REJECT\n",
- device_xname(sc->sc_dev));
+ printf("%s: unrecognized MESSAGE (%x); sending REJECT\n",
+ device_xname(sc->sc_dev), sc->sc_imess[0]);
reject:
ncr53c9x_sched_msgout(SEND_REJECT);
break;