ATAng not detecting drives

From: Jan Srzednicki <w_at_dream.vg>
Date: Sun, 31 Aug 2003 13:25:22 +0200
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_at_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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0440000<RSVD,AMIE,DSP,3DNow!>
real memory  = 536805376 (511 MB)
avail memory = 515395584 (491 MB)
Pentium Pro MTRR support enabled
[..]
atapci0: <VIA 82C686A UDMA66 controller> 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 <FUJITSU MPF3204AT> [39714/16/63] at ata0-master UDMA66
ad1: 39093MB <FUJITSU MPG3409AH EF> [79428/16/63] at ata0-slave UDMA66
ata1-slave: FAILURE - ATA_IDENTIFY status=51<READY,DSC,ERROR>
error=4<ABORTED>
acd0: CDROM <CD-540E> at ata1-master UDMA33
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TEAC CD-540E 1.0A> 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 <CD-W540E> 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<READY,DSC,ERROR>
error=4<ABORTED>
acd0: CDRW <CD-W540E> at ata1-slave UDMA33
cd0 at ata1 bus 0 target 1 lun 0
cd0: <TEAC CD-W540E 1.0C> 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_at_dream.vg --- w_at_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 --
Received on Sun Aug 31 2003 - 02:25:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:20 UTC