On the theory that an ATAPI CD/DVD drive is just an ATAPI CD/DVD drive,
I tried replacing the one in my trusty old Blue&White G3.

The new one just plain doesn't work.  Not even to playback CD audio
tracks or tell the drive to eject.

Here's some relevant dmesg and kern.log stuff:

Memory BAT mapping: BAT2=256Mb, BAT3=256Mb, residual: 1024Mb
Total memory = 1024MB; using 2048kB for hash table (at c0400000)
Linux version 2.4.22-powerpc ([EMAIL PROTECTED]) (gcc version 3.3.2 (Debian)) 
#1 Sat Oct 25 16:59:03 EST 2003
Found a Paddington mac-io controller, rev: 0, mapped at 0xfdf80000
PowerMac motherboard: Blue&White G3
Found Grackle (MPC106) PCI host bridge at 0x80000000. Firmware bus number: 0->1
[...]
Memory: 1030260k available (1848k kernel code, 1080k data, 172k init, 262144k 
highmem)
[...]
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD646: IDE controller at PCI slot 01:01.0
CMD646: chipset revision 7
CMD646: chipset revision 0x07, UltraDMA Capable
CMD646: 100% native mode on irq 26
    ide0: BM-DMA at 0x1080-0x1087, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0x1088-0x108f, BIOS settings: hdc:pio, hdd:pio
ide2: Found Apple Heathrow ATA controller, bus ID 0
Probing IDE interface ide0...
hda: QUANTUM FIREBALL CR6.4A, ATA DISK drive
hdb: WDC WD1200JB-00DUA3, ATA DISK drive
Unhandled interrupt 1a, disabled
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
blk: queue c02eebc0, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c02eed00, I/O limit 4095Mb (mask 0xffffffff)
Probing IDE interface ide1...
ide1: Wait for ready failed before probe !
Probing IDE interface ide2...
hde: SAMSUNG CDRW/DVD SM-352B, ATAPI CD/DVD-ROM drive
Unhandled interrupt d, disabled
hde: Enabling MultiWord DMA 2
ide0 at 0x10c0-0x10c7,0x10b2 on irq 26
ide2 at 0xf2017000-0xf2017007,0xf2017160 on irq 13
hda: attached ide-disk driver.
hda: 12594960 sectors (6449 MB) w/418KiB Cache, CHS=13328/15/63, UDMA(33)
hdb: attached ide-disk driver.
hdb: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(33)
hde: attached ide-cdrom driver.
Uniform CD-ROM driver Revision: 3.12
Partition check:
[...]

cdeject produces no kernel messages, but doesn't work.

redwald:/home/branden# cdeject
cdeject: ioctl cdromeject

cdplay produces some output.

redwald:/home/branden# cdplay
nodisc

(That's a lie, there's a CD-audio disc in there.)

Things get more interesting when I try to get data off the drive:
redwald:/home/branden# dd if=/dev/hde of=/dev/null bs=1024 count=1024
dd: reading `/dev/hde': Input/output error
0+0 records in
0+0 records out
0 bytes transferred in 0.007848 seconds (0 bytes/sec)

And kern.log says:

Oct 26 02:52:38 redwald kernel: hde: command error: status=0x51 { DriveReady 
SeekComplete Error }
Oct 26 02:52:38 redwald kernel: hde: command error: error=0x54
Oct 26 02:52:38 redwald kernel: end_request: I/O error, dev 21:00 (hde), sector 0
Oct 26 02:52:38 redwald kernel: hde: command error: status=0x51 { DriveReady 
SeekComplete Error }
Oct 26 02:52:38 redwald kernel: hde: command error: error=0x54
Oct 26 02:52:38 redwald kernel: end_request: I/O error, dev 21:00 (hde), sector 
4

Also, earlier I got the following error, which turned up on this list in July,
but the thread petered out.

Oct 26 02:11:10 redwald kernel: hde: timeout waiting ^I^I^Ifor dbdma command 
stop
Oct 26 02:11:10 redwald kernel: hde: bad status at DMA end, dstat=8480
Oct 26 02:11:10 redwald kernel: hde: DMA disabled
Oct 26 02:11:10 redwald kernel: hde: command error: status=0x51 { DriveReady 
SeekComplete Error }
Oct 26 02:11:10 redwald kernel: hde: command error: error=0x54
Oct 26 02:11:10 redwald kernel: end_request: I/O error, dev 21:00 (hde), sector 0
Oct 26 02:11:10 redwald kernel: hde: command error: status=0x51 { DriveReady 
SeekComplete Error }
Oct 26 02:11:10 redwald kernel: hde: command error: error=0x54
Oct 26 02:11:10 redwald kernel: end_request: I/O error, dev 21:00 (hde), sector 
4

Unfortunately I don't remember what I did to cause the above.

I'm willing to patch my kernel to get better diagnostics or test fixes.
Can anyone help?

-- 
G. Branden Robinson                |
Debian GNU/Linux                   |       kernel panic -- causal failure
[EMAIL PROTECTED]                 |       universe will now reboot
http://people.debian.org/~branden/ |

Attachment: signature.asc
Description: Digital signature

Reply via email to