I have a Teac CD-W524E ATAPI CD-Writer. Under Windows, I can
burn/read/grab without problems. Under Linux, I can burn/read,
but grabbing is a problem:
cdparanoia -v -Q works fine, but as soon as I try to actually read
audio data (e.g. with cdparanoia -v 4-4), then cdparanoia hangs after
"outputting to cdda.wav",
and for a minute nothing happens, and then the following appears in
/var/log/messages:
scsi : aborting command due to timeout : pid 187, scsi0, channel 0, id
0, lun 0 0xbe 00 00 01 58 d3 00 00 05 f8 00 00
hdc: lost interrupt
(last message repeated 5 times)
hdc: irq timeout: status=0xd0 { Busy }
hdc: ATAPI reset complete
hdc: irq timeout: status=0x80 { Busy }
hdc: ATAPI reset complete
hdc: irq timeout: status=0x80 { Busy }
and cdparanoia prints:
SCSI transport error: timeout waiting to read packet
scsi_read error: sector=88275 length=5 retry=0
Sense key: 0 ASC: 0 ASCQ: 0
Transport error: Error reading command from device
System error: Success
cdda2wav gives similar problems.
I already switched from ATAPI to SCSI simulation, and even compiled a new
kernel (2.4.17 - without ATAPI CDROM support, with IDESCSI and generic SCSI
support). I also disabled and enabled dma for the cd-rw (hdc) (with
hdparm), all without solving the problem.
I would be grateful for any suggestions / comments.
Josef
In the following I attach some "random information" that might
be useful to determine the nature of this problem.
Most of it seems to be harmless to me, apart maybe from
6) in /proc/ide/hdc/settings, the value of ide_scsi is 0
(shouldn't it be 1?), and
8) "hdparm -v /dev/hdc" displays some errors.
1) Description of the hardware
2) cdrecord -scanbus output
3) some lines of the kernel-.config
4) some files in /dev
5) a line in modules.conf
6) /proc/ide: via, hdc/model, hdc/driver, hdc/settings
7) some lines of dmesg
8) Output of hdparm -v /dev/hdc:
9) Output of cdparanoia -v -Q
1)
Mainboard: MSI K7T266 Pro2
CPU: Athlon XP 1600
Ram: 128 MB DDR
Primary master: Seagate Barracuda IV HDD
Primary slave: none
Secondary master: CD-RW Teac CD-W524E
Secondary slave: none
2) cdrecord -scanbus output:
Cdrecord 1.11a05 (i686-suse-linux) Copyright (C) 1995-2001 Jörg
Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'TEAC ' 'CD-W524E ' '1.0A' Removable CD-ROM
0,1,0 1) *
[...]
3) kernel-.config:
# CONFIG_BLK_DEV_IDECD is not set
CONFIG_BLK_DEV_IDESCSI=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=m
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_SR_EXTRA_DEVS=4
CONFIG_CHR_DEV_SG=y
4) in /dev:
lrwxrwxrwx 1 root root 4 Feb 25 14:21 cdrecorder -> scd0
lrwxrwxrwx 1 root root 4 Feb 25 14:21 cdrom -> scd0
brw-rw-r-- 1 root disk 22, 0 Oct 25 17:50 hdc
brw-rw-rw- 1 root disk 11, 0 Oct 25 17:50 scd0
brw-r----- 1 root disk 11, 0 Oct 25 17:50 sr0
5) modules.conf:
alias scsi_hostadapter ide-scsi
6) Output of cat /proc/ide/via:
----------VIA BusMastering IDE Configuration----------------
Driver Version: 3.29
South Bridge: VIA vt8233
Revision: ISA 0x0 IDE 0x6
Highest DMA rate: UDMA100
BM-DMA base: 0xfc00
PCI clock: 33MHz
Master Read Cycle IRDY: 0ws
Master Write Cycle IRDY: 0ws
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: 80w 40w
-------------------drive0----drive1----drive2----drive3-----
Transfer Mode: UDMA PIO UDMA PIO
Address Setup: 30ns 120ns 30ns 120ns
Cmd Active: 90ns 90ns 90ns 90ns
Cmd Recovery: 30ns 30ns 30ns 30ns
Data Active: 90ns 330ns 90ns 330ns
Data Recovery: 30ns 270ns 30ns 270ns
Cycle Time: 20ns 600ns 60ns 600ns
Transfer Rate: 99.0MB/s 3.3MB/s 33.0MB/s 3.3MB/s
Output of cat /proc/ide/hdc/model: CD-W524E
Output of cat /proc/ide/hdc/driver: ide-scsi version 0.9
Output of cat /proc/ide/hdc/settings:
name value min max mode
---- ----- --- --- ----
bios_cyl 0 0 1023 rw
bios_head 0 0 255 rw
bios_sect 0 0 63 rw
current_speed 66 0 69 rw
ide_scsi 0 0 1 rw
init_speed 12 0 69 rw
io_32bit 1 0 3 rw
keepsettings 0 0 1 rw
log 0 0 1 rw
nice1 1 0 1 rw
number 2 0 3 rw
pio_mode write-only 0 255 w
slow 0 0 1 rw
transform 1 0 3 rw
unmaskirq 1 0 1 rw
using_dma 1 0 1 rw
7) some lines of dmesg
ide_setup: hdc=ide-scsi
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
VP_IDE: IDE controller on PCI bus 00 dev 89
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8233 (rev 00) IDE UDMA100 controller on pci00:11.1
ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:DMA, hdd:pio
hda: ST340016A, ATA DISK drive
hdc: CD-W524E, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63,
UDMA(100)
Partition check:
hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 >
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: TEAC Model: CD-W524E Rev: 1.0A
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
8) Output of hdparm -v /dev/hdc:
/dev/hdc:
HDIO_GET_MULTCOUNT failed: Input/output error
I/O support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
HDIO_GET_NOWERR failed: Input/output error
readonly = 0 (off)
BLKRAGET failed: Input/output error
HDIO_GETGEO_BIG failed: Invalid argument
remark: after hdparm -d 0 /dev/hdc, I get
/dev/hdc:
HDIO_GET_MULTCOUNT failed: Input/output error
I/O support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
HDIO_GET_NOWERR failed: Input/output error
readonly = 0 (off)
BLKRAGET failed: Input/output error
HDIO_GETGEO_BIG failed: Invalid argument
and the problem remains
9) Output of cdparanoia -v -Q
cdparanoia III release 9.8 (March 23, 2001)
(C) 2001 Monty <mo...@xiph.org> and Xiphophorus
Report bugs to para...@xiph.org
http://www.xiph.org/paranoia/
Checking /dev/cdrom for cdrom...
Testing /dev/cdrom for cooked ioctl() interface
/dev/scd0 is not a cooked ioctl CDROM.
Testing /dev/cdrom for SCSI interface
generic device: /dev/sg0
ioctl device: /dev/scd0
Found an accessible SCSI CDROM drive.
Looking at revision of the SG interface in use...
SG interface version 3.1.22; OK.
CDROM model sensed sensed: TEAC CD-W524E 1.0A
Checking for SCSI emulation...
Drive is ATAPI (using SCSI host adaptor emulation)
Checking for MMC style command set...
Drive is MMC style
DMA scatter/gather table entries: 256
table entry size: 32768 bytes
maximum theoretical transfer: 3566 sectors
Setting default read size to 13 sectors (30576 bytes).
Verifying CDDA command set...
Expected command set reads OK.
Table of contents (audio tracks only):
track length begin copy pre ch
===========================================================
1. 24315 [05:24.15] 0 [00:00.00] no yes 2
2. 40972 [09:06.22] 24315 [05:24.15] no yes 2
3. 22988 [05:06.38] 65287 [14:30.37] no yes 2
4. 32382 [07:11.57] 88275 [19:37.00] no yes 2
5. 16995 [03:46.45] 120657 [26:48.57] no yes 2
6. 38528 [08:33.53] 137652 [30:35.27] no yes 2
7. 16407 [03:38.57] 176180 [39:09.05] no yes 2
8. 13788 [03:03.63] 192587 [42:47.62] no yes 2
9. 20740 [04:36.40] 206375 [45:51.50] no yes 2
10. 10652 [02:22.02] 227115 [50:28.15] no yes 2
11. 11868 [02:38.18] 237767 [52:50.17] no yes 2
TOTAL 249635 [55:28.35] (audio only)
[snip]
Have you tried using the -S cdparanoia option (forces read
rate)? Perhaps cdparanoia is trying to read at a rate that
doesn't work for your drive.
If forcing the max cd-rw drive speed doesn't work, try forcing a
lower speed, and see what happens.
> Have you tried using the -S cdparanoia option (forces read
> rate)?
Thanks for the hint. However, -S doesn't solve the problem.
(The option doesn't seem to have any effect at all:
the cdrw seems to spin with a low rate (maybe 1x ?)
during the minute until the error is diplayed, whether I use -S 1 or -S 32).
I made the assumption that you are able to mount cd-r, cdrom,
and cd-rw discs in this drive, and read data from them. Is that
right?
--
===============================================================================
Adam Schuetze + aschuetz[at]me.uvic.ca or adam[at]adam-schuetze.org
===============================================================================