Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic do what other SCSI drivers do - ack MSG_IGN_WIDE_...



details:   https://anonhg.NetBSD.org/src/rev/54a7fc37e6b8
branches:  trunk
changeset: 825147:54a7fc37e6b8
user:      macallan <macallan%NetBSD.org@localhost>
date:      Sat Jul 01 15:54:08 2017 +0000

description:
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

diffstat:

 sys/dev/ic/ncr53c9x.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 98f14f61dec6 -r 54a7fc37e6b8 sys/dev/ic/ncr53c9x.c
--- a/sys/dev/ic/ncr53c9x.c     Sat Jul 01 15:30:41 2017 +0000
+++ b/sys/dev/ic/ncr53c9x.c     Sat Jul 01 15:54:08 2017 +0000
@@ -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 @@
                                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;



Home | Main Index | Thread Index | Old Index