esp vs. MSG_IGN_WIDE_RESIDUE

Michael <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64,gmane.os.netbsd.ports.sparc
Organization The NetBSD Foundation
Message-ID <20170611123315.36b10c97@blackbush>
Hello,

I keep getting messages like this with my new old toy, and Ultra 2:
sd(0,0,0): unrecognized MESSAGE; sending REJECT

The disk is hooked to an esp/hme SBus card, so wide SCSI. I've been
using those on sparc with all sorts of disks and never saw this. It
seems harmless but seems to be followed by a drive reset /
recalibration every time, by the sound of it.
So I tried one of the known working-with-esp drives - same behaviour.
Some more digging revealed that the message in question is
MSG_IGN_WIDE_RESIDUE, which is handles only by a few drivers, and they
only ACK it and move on. 

With this patch esp should do the same ( and prints which message is
being rejected, which is kinda helpful ):

Index: ncr53c9x.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/ncr53c9x.c,v
retrieving revision 1.147
diff -u -w -r1.147 ncr53c9x.c
--- ncr53c9x.c  11 Jan 2017 07:16:48 -0000      1.147
+++ ncr53c9x.c  11 Jun 2017 16:29:26 -0000
@@ -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;

Since I'm not familiar with low level SCSI or esp hardware - any
comments? Is this even sane? It helps here, the resets are gone and
things work normally.

have fun
Michael
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.