Subject: Re: Narrowing a wide scsi bus
To: Chris Ross <cross+netbsd@distal.com>
From: Andrey Petrov <petrov@netbsd.org>
List: current-users
Date: 09/14/2004 11:47:08
On Tue, Sep 14, 2004 at 12:12:43AM -0400, Chris Ross wrote:
>
> Hi there. I have a machine (sparc64) which has a wide scsi
> controller in
> it, and a wide SCSI disk, but only a narrow scsi cable. The cases for
> this
> are difficult to explain, but the disk has a receiver, so I can't
> simply put
> a wide cable in.
>
> Is there a way to tell NetBSD, when booting, to treat a scsibus as
> narrow,
> and all the devices on it as narrow, regardless of what they otherwise
> negotiate? I looked in docs and on the web, and was unable to find
> this.
>
Not that I remember. If that fas the patch below might help.
Index: ncr53c9x.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/ncr53c9x.c,v
retrieving revision 1.111
diff -u -p -r1.111 ncr53c9x.c
--- ncr53c9x.c 3 May 2004 12:25:34 -0000 1.111
+++ ncr53c9x.c 14 Sep 2004 18:42:48 -0000
@@ -923,7 +923,7 @@ ncr53c9x_scsipi_request(chan, req, arg)
ti->flags |= T_TAG;
} else
ti->flags &= ~T_TAG;
-
+#if 0
if ((xm->xm_mode & PERIPH_CAP_WIDE16) != 0) {
NCR_MISC(("%s: target %d: wide scsi negotiation\n",
sc->sc_dev.dv_xname, xm->xm_target));
@@ -932,6 +932,7 @@ ncr53c9x_scsipi_request(chan, req, arg)
ti->width = 1;
}
}
+#endif
if ((xm->xm_mode & PERIPH_CAP_SYNC) != 0 &&
(ti->flags & T_SYNCHOFF) == 0 && sc->sc_minsync != 0) {