Atapi cdrom problem: wrong speed found by ide-cdrom

Pedro Alves (pmalves@think.co.pt)
Mon, 3 Dec 2001 02:52:17 +0000


Hi. My cdrom is not working properly in linux (a plain 40x atapi-ide
cdrom, unbranded as far as I can see from the outside :) ). The
problem is that it is not working at full speed. Putting a data cd,
here is the benchmark:

hdparm -tT /dev/hdc

/dev/hdc:
Timing buffer-cache reads: 128 MB in 2.80 seconds = 45.71 MB/sec
Timing buffered disk reads: 64 MB in 66.50 seconds =985.50 kB/sec

If I force speed 40 with hdparm -E 40, for about 20 secs, the
benchmarks turns into:

/dev/hdc:
Timing buffer-cache reads: 128 MB in 2.43 seconds = 52.67 MB/sec
Timing buffered disk reads: 64 MB in 24.82 seconds = 2.58 MB/sec

After a time of inactivity or if I change media, the cdrom "slows
down" to the original speed. I tried to play with hdparm, with no
sucess. If I put an audio cd in the drive, I cannot change the read
speed, nor with hdparm neither with cdparanoia (forcing speed with
-S).

Is there any way to force a default speed for the drive?

Here goes some data:

___
dmesg | grep CDROM
hdc: ATAPI CDROM, ATAPI CD/DVD-ROM drive (no, its not dvd reader)

___
hdparm -i -v /dev/hdc

/dev/hdc:
HDIO_GET_MULTCOUNT failed: Invalid argument
I/O support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
HDIO_GET_NOWERR failed: Invalid argument
readonly = 1 (on)
readahead = 8 (on)
HDIO_GETGEO failed: Invalid argument

Model=ATAPI CDROM, FwRev=V130H, SerialNo=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=yes, tPIO={min:227,w/IORDY:120}, tDMA={min:120,rec:150}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2 udma0 udma1 *udma2

___
uname -a
Linux neraka 2.4.11 #1 Mon Nov 12 00:37:05 Local time zone must be
set--see zic manuai686 i686 unknown

___
cat /proc/ide/hdc/driver
ide-cdrom version 4.59

___
cat /proc/ide/hdc/model
ATAPI CDROM (not very helpfull...)

___
sudo cat /proc/ide/hdc/settings
name value min max mode
---- ----- --- --- ----
breada_readahead 4 0 127 rw
current_speed 0 0 69 rw
dsc_overlap 1 0 1 rw
file_readahead 0 0 2097151 rw
ide_scsi 0 0 1 rw
init_speed 0 0 69 rw
io_32bit 0 0 3 rw
keepsettings 0 0 1 rw
max_kb_per_request 127 1 127 rw
nice1 1 0 1 rw
number 2 0 3 rw
pio_mode write-only 0 255 w
slow 0 0 1 rw
unmaskirq 0 0 1 rw
using_dma 0 0 1 rw

-- 
Pedro Miguel G. Alves

THINK - Tecnologias de Informação Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal Tel: +351 21 3590285 Fax: +351 21 3582729 HomePage: www.think.co.pt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/