Skip to contentSkip to conversation

ide-cd turning off DMA when verifying DVD-R

DISCUSSION Ondrej Zary 2 participants 2 messages Jan 12, 2006 – Jan 13, 2006

lore
Share & tools
lore
#0 lore raw

Hello,
I found this problem when burning DVDs using K3b (it uses growisofs to do the work) with LG GSA-4167B drive:
Burn process completes without any problems, then K3b ejects and reloads the tray, then it calculates MD5 checksum from the image. Then it starts reading the DVD back to calculate MD5 checksum of it. The moment it starts to read, this appears in dmesg:

hdd: irq timeout: status=0xd0 { Busy }
ide: failed opcode was: unknown
hdd: DMA disabled
hdd: ATAPI reset complete

And then it slowly reads the DVD in PIO mode. After about a hour, it finishes with success. When I re-enable DMA mode ("hdparm -d1 /dev/hdd") immediately after it was disabled, it works fine in - there are no more errors in the log and the verification completes much sooner. I burnt 10 DVDs and it always does exactly this.

Any ideas why it does this? And why ide-cd disables the DMA?

Kernel is 2.6.13, the drive is (firmware is the latest version):
/dev/hdd:

Model=HL-DT-ST DVDRAM GSA-4167B, FwRev=DL12, SerialNo=7076348C2984 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=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no
Drive conforms to: device does not report version:

* signifies the current active mode

Signature · 1 line
Ondrej Zary
#1 lore raw
Quoted 13 lines · Ondrej Zary

Hello,
I found this problem when burning DVDs using K3b (it uses growisofs to do the work) with LG GSA-4167B drive:
Burn process completes without any problems, then K3b ejects and reloads the tray, then it calculates MD5 checksum from the image. Then it starts reading the DVD back to calculate MD5 checksum of it. The moment it starts to read, this appears in dmesg:

hdd: irq timeout: status=0xd0 { Busy }
ide: failed opcode was: unknown
hdd: DMA disabled
hdd: ATAPI reset complete

Quoted 7 lines

And then it slowly reads the DVD in PIO mode. After about a hour, it finishes with success. When I re-enable DMA mode ("hdparm -d1 /dev/hdd") immediately after it was disabled, it works fine in - there are no more errors in the log and the verification completes much sooner. I burnt 10 DVDs and it always does exactly this.

Any ideas why it does this? And why ide-cd disables the DMA?

I think the drive just takes too long to recongize the disc. My 4163B has the same problem which is why I always close the tray manually or with eject -t and wait a while before mounting or burning the disc. Of course that won't help in your case. I guess the real fix would be to increase some ide-cd timeout.

Signature · 3 lines
Ville Syrjälä
[email protected]
http://www.sci.fi/~syrjala/