Subject: Re: attempted netbsd installs
To: Ben Collver <collver1@comcast.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc64
Date: 11/21/2003 20:13:04
--d6Gm4EdcadzBjdND
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Nov 20, 2003 at 08:39:22PM -0800, Ben Collver wrote:
> [...]
> > If that's not the problem, please set wdcdebug_flags to 0x10, and
> > send me the boot messages.
> 
> Oddly the drive attaches when debugging is enabled.

OK, timing problem.
First can you try the attached patch ?
It helped for other peoples

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--

--d6Gm4EdcadzBjdND
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff

Index: wdc.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/wdc.c,v
retrieving revision 1.155
diff -u -r1.155 wdc.c
--- wdc.c	2003/11/17 20:01:35	1.155
+++ wdc.c	2003/11/21 19:11:47
@@ -721,7 +721,7 @@
 	DELAY(2000);
 	(void) bus_space_read_1(chp->cmd_iot, chp->cmd_ioh, wd_error);
 	bus_space_write_1(chp->ctl_iot, chp->ctl_ioh, wd_aux_ctlr, WDCTL_4BIT);
-	delay(10);	/* 400ns delay */
+	delay(2000);	/* 400ns should be enouth, but some drives need more */
 
 	ret_value = __wdcwait_reset(chp, ret_value, poll);
 	WDCDEBUG_PRINT(("%s:%d: after reset, ret_value=0x%d\n",
@@ -1121,7 +1121,7 @@
 	(void) bus_space_read_1(chp->cmd_iot, chp->cmd_ioh, wd_error);
 	bus_space_write_1(chp->ctl_iot, chp->ctl_ioh, wd_aux_ctlr,
 	    WDCTL_4BIT | WDCTL_IDS);
-	delay(10);	/* 400ns delay */
+	delay(2000);	/* 400ns should be enouth, but some drives need more */
 
 	drv_mask1 = (chp->ch_drive[0].drive_flags & DRIVE) ? 0x01:0x00;
 	drv_mask1 |= (chp->ch_drive[1].drive_flags & DRIVE) ? 0x02:0x00;

--d6Gm4EdcadzBjdND--