IDE CDROM and dd...

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Tue Jun 06 2000 - 23:46:09 EST


Jens and lkml,

I have consistently had a problem with kernels >= 2.2.x where dd'ing
from /dev/cdrom to a file fails. In fact this operation has never
worked for me on a CDROM drive faster than 4X, and this behavior is
noted across multiple CDROM drivers and multiple IDE controllers.
Mounting the CDROM (as opposed to 'dd') works just fine, even under
stress.

Attached are two examples, one a 40X drive on a PIIX4 controller (ASUS
P2B), and another a 24X driver on a Via-686A controller (Compaq Presario
laptop). The tests were performed under 2.4.0-test1-ac10, but the same
failures occur under 2.2.x kernels as well.

The first test, the ASUS P2B w/ 40X, fails about 80MB into the dd
operation. dd output, dmesg output, 'ls' after failure out, and
compressed .config are attached.

The second test, the Compaq laptop w/ 24X, completely reads the CDROM
data, but then fails after the operation completes! ;-) Similar output
for this test is attached also. I forgot to do an MD5SUM on /dev/cdrom
and compare it to the output file, though.

Let me know if any other output or settings would help.

Regards,

        Jeff

-- 
Jeff Garzik              | Liberty is always dangerous, but
Building 1024            | it is the safest thing we have.
MandrakeSoft, Inc.       |      -- Harry Emerson Fosdick

dd: /dev/cdrom: Input/output error 39369+0 records in 39369+0 records out

total 78852 -rw-r--r-- 1 jgarzik jgarzik 3612 Jun 7 00:08 config.txt.gz -rw-r--r-- 1 jgarzik jgarzik 74 Jun 7 00:08 dd.txt -rw-r--r-- 1 jgarzik jgarzik 10946 Jun 7 00:08 dmesg.txt drwxr-xr-x 14 jgarzik jgarzik 4096 Jun 5 13:28 linux_2_3 -rw-r--r-- 1 jgarzik jgarzik 0 Jun 7 00:08 ls.txt -rw-r--r-- 1 jgarzik jgarzik 80627712 Jun 7 00:02 mdk61.iso drwxr-xr-x 5 jgarzik jgarzik 4096 Jun 6 15:19 vanilla

Uniform Multi-Platform E-IDE driver Revision: 6.30 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx PIIX4: IDE controller on PCI bus 00 dev 21 PIIX4: chipset revision 1 PIIX4: not 100% native mode: will probe irqs later ide0: BM-DMA at 0xd800-0xd807, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0xd808-0xd80f, BIOS settings: hdc:pio, hdd:DMA hda: WDC AC313600D, ATA DISK drive hdd: ATAPI CD-ROM DRIVE 40X MAXIMUM, ATAPI CDROM drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ide1 at 0x170-0x177,0x376 on irq 15 hda: 26712000 sectors (13677 MB) w/1966KiB Cache, CHS=1662/255/63, UDMA(33) Partition check: hda: hda1 hda2 < hda5 hda6 hda7 hda8 > Serial driver version 5.01 (2000-05-29) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A ttyS01 at 0x02f8 (irq = 3) is a 16550A Real Time Clock Driver v1.10c 8139too Fast Ethernet driver 0.9.6 loaded eth0: RealTek RTL8139 Fast Ethernet board found at 0xe0800000, IRQ 5 eth0: Chip is 'RTL-8139A' eth0: MAC address 00:40:f6:f4:ff:ef. eth1: RealTek RTL8139 Fast Ethernet board found at 0xe0000000, IRQ 10 eth1: Chip is 'RTL-8139A' eth1: MAC address 00:40:f6:f4:ff:73. kmem_create: Forcing size word alignment - nfs_fh VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 192k freed Adding Swap: 248968k swap-space (priority -1) Creative EMU10K1 PCI Audio Driver, version 0.5, 23:25:24 Jun 6 2000 emu10k1: EMU10K1 rev 6 found at IO 0xb400, IRQ 11 nfs warning: mount version older than kernel nfs warning: mount version older than kernel hdd: ATAPI 40X CD-ROM drive, 128kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.09 VFS: Disk change detected on device ide1(22,64) hdd: command error: status=0x51 { DriveReady SeekComplete Error } hdd: command error: error=0x50 end_request: I/O error, dev 16:40 (hdd), sector 157476 ATAPI device hdd: Error: No sense data -- (Sense key=0x00) No additional sense information -- (asc=0x00, ascq=0x00)


dd: /dev/cdrom: Input/output error 313149+0 records in 313149+0 records out

total 626920 -rw-r--r-- 1 jgarzik jgarzik 76 Jun 7 00:29 dd.txt -rw-r--r-- 1 jgarzik jgarzik 0 Jun 7 00:31 ls.txt -rw-r--r-- 1 jgarzik jgarzik 641329152 Jun 7 00:29 mdk61.iso

Uniform Multi-Platform E-IDE driver Revision: 6.30 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: IDE controller on PCI bus 00 dev 39 VP_IDE: chipset revision 6 VP_IDE: not 100% native mode: will probe irqs later ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx Apollo MVP4 Chipset Core ATA-66 Split FIFO Configuration: 8 Primary buffers, threshold = 1/2 8 Second. buffers, threshold = 1/2 ide0: BM-DMA at 0x1820-0x1827, BIOS settings: hda:DMA, hdb:pio ide0: VIA Bus-Master (U)DMA Timing Config Success ide1: BM-DMA at 0x1828-0x182f, BIOS settings: hdc:DMA, hdd:pio ide1: VIA Bus-Master (U)DMA Timing Config Success hda: TOSHIBA MK4313MAT, ATA DISK drive hdc: TOSHIBA CD-ROM XM-7002B, ATAPI CDROM drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ide1 at 0x170-0x177,0x376 on irq 15 hda: 8452080 sectors (4327 MB), CHS=8944/15/63, UDMA(33) hdc: ATAPI 24X CD-ROM drive, 128kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.09 Partition check: hda: hda1 < hda5 hda6 hda7 > Floppy drive(s): fd0 is 1.44M FDC 0 is a post-1991 82077 Serial driver version 5.01 (2000-05-29) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A Real Time Clock Driver v1.10c ppdev: user-space parallel port driver Linux agpgart interface v0.99 (c) Jeff Hartmann agpgart: Maximum main memory to use for agp memory: 3M agpgart: Detected Via MVP4 chipset agpgart: AGP aperture is 64M @ 0xf8000000 Via 686a audio driver 1.1.8cvs via82cxxx: timeout while reading AC97 codec ac97_codec: AC97 audio codec, id: 0x4144:0x5340 (Analog Devices AD1881) via82cxxx: board #1 at 0x1000, IRQ 11 Linux PCMCIA Card Services 3.1.11 options: [pci] [cardbus] [pm] Adding cardbus controller 0: Texas Instruments PCI1211 IRQ for 00:0a.0(0) via 00:0a.0 -> PIRQ 02, mask 0200, excl 0000 -> newirq=9 -> assigning IRQ 9 ... OK PCI: Assigned IRQ 9 for device 00:0a.0 Yenta IRQ list 0028, PCI irq9 Socket status: 30000020 kmem_create: Forcing size word alignment - nfs_fh VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 176k freed cs: cb_alloc(bus 2): vendor 0x1011, device 0x0019 PCI: Enabling device 02:00.0 (0000 -> 0003) Linux Tulip driver version 0.9.6 (May 31, 2000) kmem_grow: Called nonatomically from int - size-2048 PCI: Setting latency timer of device 02:00.0 to 64 eth0: Digital DS21143 Tulip rev 65 at 0x1c00, 00:E0:29:5A:AE:13, IRQ 9. eth0: EEPROM default media type Autosense. eth0: Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block. eth0: MII transceiver #1 config 3000 status 7809 advertising 01e1. Adding Swap: 204552k swap-space (priority -1) nfs warning: mount version older than kernel VFS: Disk change detected on device ide1(22,0) hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x51 end_request: I/O error, dev 16:00 (hdc), sector 1252596 ATAPI device hdc: Error: Illegal request -- (Sense key=0x05) Illegal mode for this track or incompatible medium -- (asc=0x64, ascq=0x00) hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error } hdc: cdrom_decode_status: error=0x30 hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error } hdc: cdrom_decode_status: error=0x30 hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error } hdc: cdrom_decode_status: error=0x30 hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error } hdc: cdrom_decode_status: error=0x30 hdc: DMA disabled hdc: ATAPI reset complete ATAPI device hdc: Error: Unit attention -- (Sense key=0x06) Power on, reset or hardware reset occurred -- (asc=0x29, ascq=0x00) hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error } hdc: cdrom_decode_status: error=0x30 hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error } hdc: cdrom_decode_status: error=0x30 hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error } hdc: cdrom_decode_status: error=0x30 hdc: ATAPI reset complete end_request: I/O error, dev 16:00 (hdc), sector 1252600 ATAPI device hdc: Error: Unit attention -- (Sense key=0x06) Power on, reset or hardware reset occurred -- (asc=0x29, ascq=0x00)


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:27 EST