From nobody@FreeBSD.org  Mon Jan 15 17:36:13 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 5591C37B69E
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Jan 2001 17:36:03 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f0G1a3Z49854;
	Mon, 15 Jan 2001 17:36:03 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200101160136.f0G1a3Z49854@freefall.freebsd.org>
Date: Mon, 15 Jan 2001 17:36:03 -0800 (PST)
From: klui@cup.hp.com
To: freebsd-gnats-submit@FreeBSD.org
Subject: ATA driver finds non-existent drives
X-Send-Pr-Version: www-1.0

>Number:         24367
>Category:       kern
>Synopsis:       ATA driver finds non-existent drives
>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 Jan 15 17:40:01 PST 2001
>Closed-Date:    Tue May 29 06:35:21 PDT 2001
>Last-Modified:  Tue May 29 10:00:03 PDT 2001
>Originator:     Ken Lui
>Release:        4.2-RELEASE
>Organization:
N/A
>Environment:
FreeBSD black 4.2-RELEASE FreeBSD 4.2-RELEASE #10: Mon Jan 15 17:16:06 PST 2001     klui@black:/usr/src/sys/compile/A7V  i386

>Description:
Sometimes, the ATA driver will find drives that doesn't exist on my A7V
system. When this happens, I get the following error:
ata3-slave: ata_command: timeout waiting for intr
ata3-slave: identify failed
ata3-master: ata_command: timeout waiting for intr
ata3-master: identify failed

My A7V (board rev 1.02, BIOS 1005C) with Duron (800MHz) has a UDMA66 
drive on the Primary ATA100 (Promise, onboard) controller (only drive on
this cable) as master, and a DVD-ROM drive on the Secondary IDE
controller (only drive on this cable) as master.

On boot, I sometimes see the following:
[DVD-ROM/master]
atapci0: <VIA 82C686 ATA66 controller> port 0xd800-0xd80f at device 4.1 on pci0
ata1: at 0x170 irq 15 on atapci0
 .
 .
 .
atapci1: <Promise ATA100 controller> port 0x8800-0x883f,0x9000-0x9003,0x9400-0x9
407,0x9800-0x9803,0xa000-0xa007 mem 0xe2000000-0xe201ffff irq 10 at device 17.0 
on pci0
[Quantum Fireball Plus LM/master]
ata2: at 0xa000 on atapci1
[??]
ata3: at 0x9400 on atapci1

Sometimes, ata3 doesn't show up, but sometimes, it does. My current
ATA settings are all PIO. I have no cable dangling off the secondary
ATA100 connector.


Ken
>How-To-Repeat:
Intermittent
>Fix:


>Release-Note:
>Audit-Trail:

From: Soren Schmidt <sos@freebsd.dk>
To: klui@cup.hp.com
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/24367: ATA driver finds non-existent drives
Date: Tue, 16 Jan 2001 08:21:52 +0100 (CET)

 It seems klui@cup.hp.com wrote:
 > >Description:
 > Sometimes, the ATA driver will find drives that doesn't exist on my A7V
 > system. When this happens, I get the following error:
 > ata3-slave: ata_command: timeout waiting for intr
 > ata3-slave: identify failed
 > ata3-master: ata_command: timeout waiting for intr
 > ata3-master: identify failed
 > 
 > My A7V (board rev 1.02, BIOS 1005C) with Duron (800MHz) has a UDMA66 
 > drive on the Primary ATA100 (Promise, onboard) controller (only drive on
 > this cable) as master, and a DVD-ROM drive on the Secondary IDE
 > controller (only drive on this cable) as master.
 
 Uhm firstly the Promise isn't the primary adaptor on those baords, the
 VIA '686 is, that migth lead to some confusion.
 
 > On boot, I sometimes see the following:
 > [DVD-ROM/master]
 > atapci0: <VIA 82C686 ATA66 controller> port 0xd800-0xd80f at device 4.1 on pci0
 > ata1: at 0x170 irq 15 on atapci0
 >  .
 >  .
 >  .
 > atapci1: <Promise ATA100 controller> port 0x8800-0x883f,0x9000-0x9003,0x9400-0x9
 > 407,0x9800-0x9803,0xa000-0xa007 mem 0xe2000000-0xe201ffff irq 10 at device 17.0 
 > on pci0
 > [Quantum Fireball Plus LM/master]
 > ata2: at 0xa000 on atapci1
 > [??]
 > ata3: at 0x9400 on atapci1
 > 
 > Sometimes, ata3 doesn't show up, but sometimes, it does. My current
 > ATA settings are all PIO. I have no cable dangling off the secondary
 > ATA100 connector.
 
 How have you setup your BIOS ? 
 
 -Sren
 

From: Ken Lui <klui@cup.hp.com>
To: Soren Schmidt <sos@freebsd.dk>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/24367: ATA driver finds non-existent drives
Date: Tue, 16 Jan 2001 01:40:41 -0800 (PST)

 On Tue, 16 Jan 2001, Soren Schmidt wrote:
 > Uhm firstly the Promise isn't the primary adaptor on those baords, the
 > VIA '686 is, that migth lead to some confusion.
 
 Sorry about the confusing terminology. I read the labels off of the
 A7V (1.02) motherboard. The Promise ATA100 is labeled Primary/Secondary
 ATA100 while the '686A is Primary/Secondary IDE.
 
 > 
 > > On boot, I sometimes see the following:
 > > [DVD-ROM/master]
 > > atapci0: <VIA 82C686 ATA66 controller> port 0xd800-0xd80f at device 4.1 on pci0
 > > ata1: at 0x170 irq 15 on atapci0
 > >  .
 > >  .
 > >  .
 > > atapci1: <Promise ATA100 controller> port 0x8800-0x883f,0x9000-0x9003,0x9400-0x9
 > > 407,0x9800-0x9803,0xa000-0xa007 mem 0xe2000000-0xe201ffff irq 10 at device 17.0 
 > > on pci0
 > > [Quantum Fireball Plus LM/master]
 > > ata2: at 0xa000 on atapci1
 > > [??]
 > > ata3: at 0x9400 on atapci1
 > > 
 > > Sometimes, ata3 doesn't show up, but sometimes, it does. My current
 > > ATA settings are all PIO. I have no cable dangling off the secondary
 > > ATA100 connector.
 > 
 > How have you setup your BIOS ? 
 
 When I was using this configuration, I was had the system boot
 in this order:
    DVD-ROM (on VIA '686 secondary-master)
    ATA100/SCSI (Promise primary-master)
    Floppy
    IDE (disabled, as I didn't have any other drives attached)
 
 The boot order of the Promise/SCSI is as per above (ATA100, then
 SCSI). My SCSI card isn't installed.
 
 Anything in particular you're interested in my BIOS configuration?
 
 I also get this behavior if I run only on the VIA '686 primary and
 secondary connectors:
    UDMA66 drive on primary-master
    DVD-ROM on secondary-master
 
 Boot order is
    DVD-ROM
    IDE
    floppy
    ATA100/SCSI is disabled
 
 I've also disabled the Promise ATA100 bus's BIOS in my current
 setup.
 
 
 Ken
 
 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Tue May 29 06:35:21 PDT 2001 
State-Changed-Why:  
This should be fixed in 4.3, however some "ghost" drives can 
appear when the hardware delivers bogus data on empty channels. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24367 

From: Ken Lui <klui@cup.hp.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/24367: ATA driver finds non-existent drives
Date: Tue, 29 May 2001 09:58:15 -0700

 What constitutes a ghost driver? I still get it on 4.3-stable.
 
 
 Ken
 
>Unformatted:
