From owner-freebsd-bugs Sun Apr 1 16:10: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 33BBC37B71F for ; Sun, 1 Apr 2001 16:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f31NA1344799; Sun, 1 Apr 2001 16:10:01 -0700 (PDT) (envelope-from gnats) Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by hub.freebsd.org (Postfix) with ESMTP id 5D13A37B718 for ; Sun, 1 Apr 2001 16:01:01 -0700 (PDT) (envelope-from rhh@nc.rr.com) Received: from stealth.dummynet ([24.25.3.190]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Sun, 1 Apr 2001 19:00:55 -0400 Received: (from rhh@localhost) by stealth.dummynet (8.11.1/8.11.1) id f31N20i08835; Sun, 1 Apr 2001 19:02:00 -0400 (EDT) (envelope-from rhh) Message-Id: <200104012302.f31N20i08835@stealth.dummynet> Date: Sun, 1 Apr 2001 19:02:00 -0400 (EDT) From: aa8vb@nc.rr.com Reply-To: aa8vb@nc.rr.com To: FreeBSD-gnats-submit@freebsd.org Cc: aa8vb@nc.rr.com X-Send-Pr-Version: 3.2 Subject: kern/26278: ata driver doesn't support tertiary IDE controller; wd does Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26278 >Category: kern >Synopsis: ata driver doesn't support tertiary IDE controller; wd does >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 01 16:10:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Randall Hopper >Release: FreeBSD 4.2-RELEASE i386 >Organization: self >Environment: Stock 4.2-RELEASE. Two IDE controllers on motherboard. One Tertiary IDE controller installed in bus slot with 8MB IDE hard drive attached. >Description: As the ata driver is the next generation, I tried it first. I could not get it to attach my tertiary IDE controller. Flipping back to the wd driver revealed that it supports it just as well as 3.4-RELEASE did. In 4.2 (with ATA), I have these kernel lines: device ata0 at isa? port IO_WD1 irq 14 flags 0xa0ffa0ff device ata1 at isa? port IO_WD2 irq 15 flags 0xa0ffa0ff device ata2 at isa? port 0x1e8 irq 11 flags 0xa0ffa0ff device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives #options ATA_ENABLE_ATAPI_DMA # Enable DMA on ATAPI devices and I get these boot-ups probes related to my IDE controllers and disks: atapci0: port 0xe800-0xe80f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ... ata4 at port 0x1e8-0x1ef,0x3ee irq 11 flags 0xa0ffa0ff on isa0 ata4-master: ata_command: timeout waiting for intr ata4-master: identify failed ad0: 32253MB [65531/16/63] at ata0-master WDMA2 ad1: 8063MB [16383/16/63] at ata0-slave WDMA2 ad2: 8063MB [16383/16/63] at ata1-master WDMA2 acd0: DVD-ROM at ata1-slave using \ PIO4 you can see that the 3 hard drives and the IDE CD-ROM on the first two IDE controllers probe fine, but we're missing the tertiary IDE controller and the fourth hard drive. However, with these WD kernel lines: device wdc0 at isa? port "IO_WD1" irq 14 flags 0xa0ffa0ff device wd0 at wdc0 drive 0 device wd1 at wdc0 drive 1 device wdc1 at isa? port "IO_WD2" irq 15 flags 0xa0ffa0ff device wd2 at wdc1 drive 0 device wd3 at wdc1 drive 1 device wdc2 at isa? port "0x1e8" irq 11 flags 0xa0ffa0ff device wd4 at wdc2 drive 0 device wcd0 #IDE CD-ROM all 4 disks and the IDE CD-ROM work just fine (Notice the wdc2 (tertiary IDE controller) and wd4 (5th IDE disk hanging off tertiary IDE) probes: ide_pci0: port 0xe800-0xe80f at device 7.1 on pci0 ide_pci0: driver is using old-style compatability shims ... wdc0 at port 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa0 wdc0: unit 0 (wd0): , DMA, 32-bit, multi-block-16 wd0: 32253MB (66055248 sectors), 65531 cyls, 16 heads, 63 S/T, 512 B/S wdc0: unit 1 (wd1): , DMA, 32-bit, multi-block-16 wd1: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T, 512 B/S wdc0: driver is using old-style compatability shims wdc1 at port 0x170-0x177 irq 15 flags 0xa0ffa0ff on isa0 wdc1: unit 0 (wd2): , DMA, 32-bit, multi-block-16 wd2: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T, 512 B/S wdc1: unit 1 (atapi): , removable, accel, dma, iordis wcd0: drive speed 0KB/sec, 512KB cache wcd0: supported read types: CD-R, CD-RW, CD-DA wcd0: Audio: play, 256 volume levels wcd0: Mechanism: ejectable tray wcd0: Medium: no/blank disc inside, unlocked wdc1: driver is using old-style compatability shims wdc2 at port 0x1e8-0x1ef irq 11 flags 0xa0ffa0ff on isa0 wdc2: unit 0 (wd4): , multi-block-16 wd4: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T, 512 B/S wdc2: driver is using old-style compatability shims >How-To-Repeat: Install a tertiary IDE controller on port 0x1e8, and use the two sections of kernel configs above to confirm that it works with the wdc driver but no the ata driver. >Fix: Not known. Work-around: use the wdc driver for now. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message