Subject: Re: 120GB HD
To: Sergio Jimenez <tripledes@eslack.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-i386
Date: 11/09/2003 19:31:07
--VrqPEDrXMn8OVzN4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Nov 04, 2003 at 10:46:14PM +0000, Sergio Jimenez wrote:
> Don't worry, here you are the dmesg, and the disk is on secondary port of the cmdide as a master.

OK, thanks.
Looks like the drive fails to become ready after reset; maybe we don't
wait long enouth.
Can you try the attached patch ?
If it doesn't help, maybe try to increase the delay again.

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

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

Index: wdc.c
===================================================================
RCS file: /home/bouyer/anoncvs/cvs/src/sys/dev/ic/wdc.c,v
retrieving revision 1.150
diff -u -r1.150 wdc.c
--- wdc.c	30 Oct 2003 01:58:17 -0000	1.150
+++ wdc.c	9 Nov 2003 18:28:11 -0000
@@ -334,7 +334,7 @@
 		goto out;
 
 	/* for ATA/OLD drives, wait for DRDY, 3s timeout */
-	for (i = 0; i < mstohz(3000); i++) {
+	for (i = 0; i < mstohz(10000); i++) {
 		if (chp->wdc && (chp->wdc->cap & WDC_CAPABILITY_SELECT))
 			chp->wdc->select(chp,0);
 		bus_space_write_1(chp->cmd_iot, chp->cmd_ioh, wd_sdh,

--VrqPEDrXMn8OVzN4--