Subject: Re: pc164/ncr scsi problems
To: None <darrenr@pobox.com>
From: Matt Thomas <matt@3am-software.com>
List: port-alpha
Date: 08/22/1999 08:50:20
At 07:55 AM 8/22/99 , Darren Reed wrote:
>In getting my pc164 running, I've plugged in an older narrow HDD to my
>tekram dc-310. The HDD itself is a Fujitsu M2909STU (2.9GB). I've
>tried with no termination, termination on the drive only, only externally
>and both ends - all return with the same result: shit happens when NetBSD
>boots up. This drive _was_ working, seemingly without any problems in a
>drive housing connected up to a Sparc LX running SunOS4.1.4.
I fixed this in the ncr driver last week. I should submit the patch to
1.4.2...
Index: ncr.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pci/ncr.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- ncr.c 1999/08/04 20:51:31 1.82
+++ ncr.c 1999/08/19 00:43:45 1.83
@@ -1,4 +1,4 @@
-/* $NetBSD: ncr.c,v 1.82 1999/08/04 20:51:31 tron Exp $ */
+/* $NetBSD: ncr.c,v 1.83 1999/08/19 00:43:45 matt Exp $ */
/**************************************************************************
**
@@ -1518,7 +1518,7 @@
#if 0
static char ident[] =
- "\n$NetBSD: ncr.c,v 1.82 1999/08/04 20:51:31 tron Exp $\n";
+ "\n$NetBSD: ncr.c,v 1.83 1999/08/19 00:43:45 matt Exp $\n";
#endif
static const u_long ncr_version = NCR_VERSION * 11
@@ -4136,6 +4136,7 @@
"error = %d\n", self->dv_xname, error);
return;
}
+ memset(np->script, 0, sizeof(struct script));
#else
np->script = (struct script *)
malloc (sizeof (struct script), M_DEVBUF, M_WAITOK);
@@ -4184,6 +4185,7 @@
"error = %d\n", self->dv_xname, error);
return;
}
+ memset(np->scripth, 0, sizeof(struct scripth));
#endif /* __FreeBSD__ */
#ifdef SCSI_NCR_PCI_CONFIG_FIXUP
--
Matt Thomas Internet: matt@3am-software.com
3am Software Foundry WWW URL: http://www.3am-software.com/bio/matt/
Cupertino, CA Disclaimer: I avow all knowledge of this message