From steve@dylan.visint.co.uk  Mon Feb 10 04:52:47 1997
Received: from dylan.visint.co.uk ([194.207.134.180])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA00846
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 Feb 1997 04:52:45 -0800 (PST)
Received: (from root@localhost)
          by dylan.visint.co.uk (8.8.4/8.8.4)
	  id MAA00726; Mon, 10 Feb 1997 12:52:03 GMT
Message-Id: <199702101252.MAA00726@dylan.visint.co.uk>
Date: Mon, 10 Feb 1997 12:52:03 GMT
From: Stephen Roome <steve@dylan.visint.co.uk>
Reply-To: steve@visint.co.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: Occasional failure to detect wdc1 on bootup
X-Send-Pr-Version: 3.2

>Number:         2704
>Category:       kern
>Synopsis:       Occasional failure to detect wdc1 on bootup
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 10 05:00:02 PST 1997
>Closed-Date:    Tue Jul 6 14:39:52 PDT 1999
>Last-Modified:  Tue Jul  6 14:41:09 PDT 1999
>Originator:     Stephen Roome
>Release:        FreeBSD 2.2-BETA_A i386
>Organization:
Vision Interactive
>Environment:
I'm using a pentium motherboard with a SiS 5513 PCI IDE controller and on
wdc1 I have an ATAPI CDROM drive, (Creative Labs Infra1800 12speed very new
with a remote control that will run Webbrowsers under windoze 95 !!)
here's some spurious info from bootup :
...
pcibus_setup(1):        mode 1 addr port (0x0cf8) is 0x8000f800
pcibus_setup(1a):       mode1res=0x80000000 (0x80000000)
pcibus_check:   device 0 is there (id=55111039)
Probing for devices on PCI bus 0:
        configuration mode 1 allows 32 devices.
chip0 <generic PCI bridge (vendor=1039 device=5511 subclass=0)> rev 0 on pci0:0
chip1 <SiS 85c503> rev 1 on pci0:1:0
pci0:1:1: Silicon Integrated Systems, device=0x5513, class=storage (ide) int a irq ?? [no driver assigned]
        map(10): io(01f0)
        map(14): io(03f4)
        map(18): io(0170)
        map(1c): io(0374)
        map(20): io(4000)
...

>Description:
I have tried 2 other CDROM drives and the same thing happens on startup,
one out of four times I get :

wdc0 at 0x1f0-0x1f7 irq 14 flags 0x80ff80ff on isa
wdc0: unit 0 (wd0): <QUANTUM TRB850A>, 32-bit, multi-block-8
wd0: 810MB (1660176 sectors), 1647 cyls, 16 heads, 63 S/T, 512 B/S
wdc1 at 0x170-0x177 irq 15 flags 0x80ff80ff on isa
wdc1: unit 0 (atapi): <CREATIVE CD1220E/ec1.02.>, removable, dma, iordy
wcd0: 171/2062Kb/sec, 240Kb cache, audio play, 255 volume levels, ejectable tray
wcd0: 120mm audio disc loaded, unlocked

and the rest of the time I get :
wdc0 at 0x1f0-0x1f7 irq 14 flags 0x80ff80ff on isa
wdc0: unit 0 (wd0): <QUANTUM TRB850A>, 32-bit, multi-block-8
wd0: 810MB (1660176 sectors), 1647 cyls, 16 heads, 63 S/T, 512 B/S
wdc1: not found 

I'm not sure precisely what it says for the not found line, but it's just
the standard "I can't find this thing here line"

Occasionaly wdc1 is found but the CDROM drive isn't, but that is very rare
and usually boils down to a bad cable or somesuch... but not always =)

>How-To-Repeat:
	I have absolutley no idea how to repeat the problem other that
restarting the computer and watching it fail to find wdc1, however I have
noticed that if I actually cold boot my system it seems _slightly_ more
likely to find the controller than after a warm boot.

>Fix:
	I'll try 3.0 but I'm confused.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Fri Jun 25 11:34:15 PDT 1999 
State-Changed-Why:  
I sincerely hope that the absence of follow-up doesn't mean you didn't 
get any feedback on this one! I used to get similar behaviour for ages 
until I discovered that my IDE drive was incorrectly jumpered for  
correct operation as master on a channel with slave present (ATAPI 
CDROM slave). 

Presumably you've resolved the problem since the days of 2.2-BETA? :-) 

From: Anton Berezin <tobez@plab.ku.dk>
To: sheldonh@FreeBSD.ORG
Cc: steve@visint.co.uk, freebsd-bugs@FreeBSD.ORG
Subject: Re: kern/2704: Occasional failure to detect wdc1 on bootup
Date: Mon, 28 Jun 1999 16:57:06 +0200

 On Fri, Jun 25, 1999 at 11:36:16AM -0700, sheldonh@FreeBSD.ORG wrote:
 
 > Synopsis: Occasional failure to detect wdc1 on bootup
 > State-Changed-From-To: open->feedback
 
 > I sincerely hope that the absence of follow-up doesn't mean you didn't
 > get any feedback on this one! I used to get similar behaviour for ages
 > until I discovered that my IDE drive was incorrectly jumpered for
 > correct operation as master on a channel with slave present (ATAPI
 > CDROM slave).
 
 Well, do you need a feedback? :-)
 
 I have the same problem on my home machine (Pentium 133).  I have only a
 master CD-ROM on wdc1, and I think it is jumpered correctly.  The ratio
 found/not found was about 1:8;  when I put IDE_DELAY=22000, the ratio
 became 1:4, just like in the original report.
 
 So it's still there, in 3.2-stable (as of June, 14th or so).
 
 I can provide verbose dmesg output tomorrow if someone thinks it might
 be of any interest.
 
 
State-Changed-From-To: feedback->closed 
State-Changed-By: sheldonh 
State-Changed-When: Tue Jul 6 14:39:52 PDT 1999 
State-Changed-Why:  
Closed with submitter's consent, since the now-ancient hardware isn't 
going to get another shot at 2.2-BETA. :-) 
>Unformatted:
