Error trying to read a cdrom disc
Hi.
This problem appears in 2.6.0-test9-mm2 and 2.6.0-test9-bk16.
The issue is: my cdrom drive is on the secondary ide controller as slave. I try to read the cdrom disc with two different ATAPI cdrom drives (a Sansung drive and other ATAPI compatible drive) and in both cases as slave of the secondary ide controller.
The problem appears trying to copy de contents of the cdrom disc to an iso image in the hard disk.
With this command:
cat /dev/hdd > knoppix-es.iso
..and with this:
cp /dev/hdd knoppix-es.iso
and this other command:
dd if=/dev/hdd of=knoppix-es.iso
... generate the same error than this, a problem with DMA, because the drive is trying to access to a wrong part of the cdrom, because the information the driver is reporting to the programs is not the correct info about the media sizes of the cdroms discs in the drives connected as slave of the secondary ide controller:
readcd dev=/dev/hdd f=knoppix-es.iso
readcd: Warning: controller returns wrong size for CD capabilities page. readcd: Warning: controller returns wrong size for CD capabilities page. readcd: Warning: controller returns wrong size for CD capabilities page. readcd: Warning: controller returns wrong size for CD capabilities page. Read speed: 2112 kB/s (CD 12x, DVD 1x). Write speed: 0 kB/s (CD 0x, DVD 0x). Capacity: 345646 Blocks = 691292 kBytes = 675 MBytes = 707 prMB Sectorsize: 2048 Bytes Copy from SCSI (0,0,0) disk to file 'knoppix-es.iso' end: 345646 readcd: Success. read_g1: scsi sendcmd: no error CDB: 28 00 00 05 46 12 00 00 1C 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 64 00 00 00 Sense Key: 0x5 Illegal Request, Segment 0 Sense Code: 0x64 Qual 0x00 (illegal mode for this track) Fru 0x0 Sense flags: Blk 0 (not valid) resid: 57344
cmd finished after 11.709s timeout 40s
readcd: Success. Cannot read source disk
readcd: Retrying from sector 345618
With my LG cdwriter (as master of the secondary ide controller) there is no problem.
Signature · 3 lines
Ramón Rey Vicente <ramon dot rey at hispalinux dot es>
jabber ID <rreylinux at jabber dot org>
GPG public key ID 0xBEBD71D5 -> http://pgp.escomposlinux.org/ide-cdrom version 4.59-ac1
ide-disk version 1.18
Sorry, the info about my ide controller
Signature · 3 lines
Ramón Rey Vicente <ramon dot rey at hispalinux dot es>
jabber ID <rreylinux at jabber dot org>
GPG public key ID 0xBEBD71D5 -> http://pgp.escomposlinux.org/----------VIA BusMastering IDE Configuration----------------
Driver Version: 3.38 South Bridge: VIA vt82c586b Revision: ISA 0x47 IDE 0x6 Highest DMA rate: UDMA33 BM-DMA base: 0xe000 PCI clock: 33.3MHz Master Read Cycle IRDY: 1ws Master Write Cycle IRDY: 1ws BM IDE Status Register Read Retry: yes Max DRDY Pulse Width: No limit -----------------------Primary IDE-------Secondary IDE------ Read DMA FIFO flush: yes yes End Sector FIFO flush: no no Prefetch Buffer: yes yes Post Write Buffer: yes no Enabled: yes yes Simplex only: no no Cable Type: 40w 40w -------------------drive0----drive1----drive2----drive3----- Transfer Mode: UDMA UDMA PIO DMA Address Setup: 30ns 30ns 30ns 30ns Cmd Active: 90ns 90ns 90ns 90ns Cmd Recovery: 30ns 30ns 30ns 30ns Data Active: 90ns 90ns 90ns 90ns Data Recovery: 30ns 30ns 30ns 30ns Cycle Time: 60ns 60ns 120ns 120ns Transfer Rate: 33.3MB/s 33.3MB/s 16.6MB/s 16.6MB/s