From owner-freebsd-current@FreeBSD.ORG Sun Aug 31 04:25:26 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C805F16A4C0 for ; Sun, 31 Aug 2003 04:25:26 -0700 (PDT) Received: from oak.rpg.pl (oak.rpg.pl [81.21.196.196]) by mx1.FreeBSD.org (Postfix) with SMTP id 49F5443FE5 for ; Sun, 31 Aug 2003 04:25:25 -0700 (PDT) (envelope-from winfried@oak.rpg.pl) Received: (qmail 22639 invoked by uid 1002); 31 Aug 2003 11:25:22 -0000 Date: Sun, 31 Aug 2003 13:25:22 +0200 From: Jan Srzednicki To: sos@spider.deepcore.dk Message-ID: <20030831112521.GG61234@oak.rpg.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i cc: freebsd-current@freebsd.org Subject: ATAng not detecting drives X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2003 11:25:26 -0000 Hello sir, I've just cvsupped the new -C source, and installed a new kernel. My CD-RW could not be detected: FreeBSD 5.1-CURRENT #7: Sun Aug 31 12:21:57 CEST 2003 root@stronghold:/usr/obj/usr/src/sys/MOONDANCE Preloaded elf kernel "/boot/kernel/kernel" at 0xc0545000. Preloaded elf module "/boot/kernel/mga.ko" at 0xc05451f4. Preloaded elf module "/boot/kernel/aio.ko" at 0xc054529c. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0545344. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Duron(tm) Processor (600.03-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x630 Stepping = 0 Features=0x183f9ff AMD Features=0xc0440000 real memory = 536805376 (511 MB) avail memory = 515395584 (491 MB) Pentium Pro MTRR support enabled [..] atapci0: port 0xd000-0xd00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 [..] ad0: 19546MB [39714/16/63] at ata0-master UDMA66 ad1: 39093MB [79428/16/63] at ata0-slave UDMA66 ata1-slave: FAILURE - ATA_IDENTIFY status=51 error=4 acd0: CDROM at ata1-master UDMA33 cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: cd present [2154583490 x 838860800 byte records] Mounting root from ufs:/dev/ad0s2a (it's this ata1-slave thing). Previously, it has been seen as: acd1: CD-RW at ata1-slave UDMA33 And everything worked fine, Teacs run in DMA mode without any problems. Another weird thing is that the first drive in atapicam mode (accessed as /dev/cd0, not /dev/acd0) reports "something" inside of it, while there's no CD inside (as you can see it in dmesg). After atacontrol detach/attach, I've got the thing flip-flopped: acd0: WARNING - removed from configuration (cd0:ata1:0:0:0): lost device (cd0:ata1:0:0:0): removing device entry ata1-master: FAILURE - ATA_IDENTIFY status=51 error=4 acd0: CDRW at ata1-slave UDMA33 cd0 at ata1 bus 0 target 1 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: cd present [879076549 x 1006698496 byte records] (the second drive is also empty) After some playing with atacontrol, it appears that it's rather random which drive gets detected. But I could not get them both working at one time, it always detected just one. Anyway, after some massive disk IO (installworld && mergemaster) and reboot, syncer decided to give up on one buffer. No idea, whether this is ATAng feature, yet it hasn't been happening on ATAold. greets, -- -- wrzask --= v =-- Winfried --===-- GG# 3838383 --- -- w@dream.vg --- w@303.krakow.pl --===-- http://violent.dream.vg/ --- --=< Ride the wild wind - push the envelope, don't sit on the fence, --- -- Ride the wild wind - live life on the razor's edge! >=-- Queen --