Bug 5882 - ide-cd turning off DMA when verifying DVD-R
Summary: ide-cd turning off DMA when verifying DVD-R
Status: REJECTED INSUFFICIENT_DATA
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: IDE (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Bartlomiej Zolnierkiewicz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-13 04:51 UTC by Ondrej Zary
Modified: 2007-09-16 16:55 UTC (History)
6 users (show)

See Also:
Kernel Version: 2.6.13
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Ondrej Zary 2006-01-13 04:51:10 UTC
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.

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
Comment 1 Diego Calleja 2006-01-13 05:53:14 UTC
2.6.13 was released on 28 Aug. almost 5 months ago, could you give a try to
2.6.15 to se if the problem is still there? Also, IDE maintainers will probably
need to know more things about your system (ie: lspci output, full dmesg etc)
Comment 2 Diego Calleja 2006-01-13 06:34:09 UTC
(Oh sorry I saw you were asked in the lkml to fill in this bug I though you were
a "typical bug reporter")
Comment 3 Andrew Morton 2006-01-13 11:34:21 UTC
Yes, please retest with 2.6.15.
Comment 4 Remi 2006-01-14 23:05:57 UTC
I've tested with 2.6.15 and still see the same behaviour.  In addition, DMA is
left off even if keepsettings=1
Comment 5 Christian 2007-07-25 02:13:14 UTC
I have the same problem. I'm using 2.6.17.13.
This is my drive:
/dev/hdd:

ATAPI CD-ROM, with removable media
        Model Number:       LITE-ON DVDRW SOHW-1633S
        Serial Number:
        Firmware Revision:  BS0S
Standards:
        Used: ATAPI for CD-ROMs, SFF-8020i, r2.5
        Supported: CD-ROM ATAPI-2
Configuration:
        DRQ response: 50us.
        Packet size: 12 bytes
Capabilities:
        LBA, IORDY(cannot be disabled)
        DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=227ns  IORDY flow control=120ns
Comment 6 Bartlomiej Zolnierkiewicz 2007-07-25 03:57:05 UTC
Hi,

Please retest with some newer kernel, i.e. 2.6.22 or 2.6.23-rc1
(2.6.17 was released on 18-Jun-2006 - this is more than year ago).

PS Re-assigning the bug to ide-cd Maintainer.
Comment 7 Adrian Bunk 2007-09-16 16:55:59 UTC
Please reopen this bug if it's still present with kernel 2.6.22.

Note You need to log in before you can comment on or make changes to this bug.