From owner-freebsd-hackers Sat May 17 10:07:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA02157 for hackers-outgoing; Sat, 17 May 1997 10:07:21 -0700 (PDT) Received: from dan.emsphone.com (dan@dot.atdot.dotat.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA02152 for ; Sat, 17 May 1997 10:07:19 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.8.2/8.8.2) id MAA29210; Sat, 17 May 1997 12:07:12 -0500 (CDT) Message-ID: <19970517120712.59744@dan.emsphone.com> Date: Sat, 17 May 1997 12:07:12 -0500 From: Dan Nelson To: Johan Larsson Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Probing time. References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.67e In-Reply-To: ; from "Johan Larsson" on Sat, May 17, 1997 at 12:56:51PM +0200 X-OS: FreeBSD 2.2.1-RELEASE Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In the last episode (May 17), Johan Larsson said: > Is there any way to make the probing time for wdc1 smaller? It is > when my computer boots and it stops for about 20 seconds right after > that the wdc0 and the disks connected to it been found. I have an > ATAPI cdrom as master on that controller, but it is the same when i > have an ordinary harddrive connected to it. Thanks in advance for any > answers :-) Take a look at /sys/i386/isa/wd.c . The first #define after all the #includes is #define TIMEOUT 10000 Every time wdwait() is called, it waits for TIMEOUT ms for a response from an IDE device. I added a little debugging, and with my kernel, wdwait() times out 3 times during probing. That would be around 30 seconds. Try decreasing the TIMEOUT define and see if that helps. I have TIMEOUT set at 2000, and everything still works. Your mileage may vary, depending on how old your IDE devices are. -Dan Nelson dnelson@emsphone.com