Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 1997 13:46:29 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Paul Dekkers <psd@worldaccess.nl>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Slow CD-Player detection?
Message-ID:  <19970816134629.26168@emsphone.com>
In-Reply-To: <Pine.BSF.3.95q.970816170341.563C-100000@gromit.nev.ml.org>; from "Paul Dekkers" on Sat Aug 16 17:03:56 GMT 1997
References:  <Pine.BSF.3.95q.970816170341.563C-100000@gromit.nev.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 16), Paul Dekkers said:
> Hi
> 
> I have a Philips PCA21CR atapi-cd-player. Once detected it works well. But
> the detection at boot-time costs a little.
> 
> wdc0: unit 1 (wd1): <ST3491A-XR>
> wd1: 408MB (836070 sectors), 899 cyls, 15 heads, 62 S/T, 512 B/S
> 
> <wait for 10 sec's>
> 
> wdc1 at 0x170-0x177 irq 15 on isa
> 
> <wait for 30 sec's>
> 
> wdc1: unit 0 (atapi): <PHILIPS PCA21CR/A2.0>, removable, iordy
> wcd0: 344Kb/sec, 128Kb cache, audio play, 256 volume levels, ejectable tray
> wcd0: 120mm data disc loaded, unlocked, lock protected

Take a look at /sys/i386/isa/wd.c . The first #define after all the
#includes (around line 111) is

#define TIMEOUT 10000

Every time the kernel function 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, but the probing now
takes just 6 seconds.  Your mileage may vary, depending on how old your
IDE devices are, and how long they take to respond during the probe.

	-Dan Nelson
	dnelson@emsphone.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970816134629.26168>