DMA mode unavailable

From: Alejandro Luque (btpa16_at_btp5x36.phy.uni-bayreuth.de)
Date: 09/30/03


Date: 30 Sep 2003 16:07:48 +0200


  Hi everybody. I'm new in this group so first of all i want to give
thanks in advance for any help.

  My problem is related with DMA access to a SAMSUNG COMBO CDRW/DVD
SM-352B with motherboard ASUS P4P800 installed and SuSE 8.2. The
COMBO is acting as Master in the secondary IDE chanel and connected
with a 40-pin ribbon cable. I want to set up the udma2 mode.
I am able to configure everything as desired (for example with
YaST2). And after reboot everything seems to be normal; this is what
hdparm produces:

#hdparm -i /dev/hdc

/dev/hdc:

 Model=SAMSUNG CDRW/DVD SM-352B, FwRev=T806, 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:120}
 PIO modes: pio0 pio1 pio2 pio3 pio4
 DMA modes: mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 *udma2
 AdvancedPM=no

#hdparm -I /dev/hdc

/dev/hdc:

ATAPI CD-ROM, with removable media
        Model Number: SAMSUNG CDRW/DVD SM-352B
        Serial Number:
        Firmware Revision: T806
Standards:
        Likely used CD-ROM ATAPI-1
Configuration:
        DRQ response: 50us.
        Packet size: 12 bytes
Capabilities:
        LBA, IORDY(cannot be disabled)
        DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=227ns IORDY flow control=120ns

However the following errors appear in the log:

#dmesg |tail -n 4

hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdc: drive_cmd: error=0x04Aborted Command
hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdc: drive_cmd: error=0x04Aborted Command

Then when i try to mount /media/cdrom (or /media/dvd or
/media/cdrecorder) it takes quite a long time (around 1 minute or so)
and finally the driver is mounted but these errors appear in the log:

Sep 30 14:57:29 linux kernel: hdc: status timeout: status=0xd0 { Busy }
Sep 30 14:57:29 linux kernel: hdc: status timeout: error=0x00
Sep 30 14:57:29 linux kernel: hdc: drive not ready for command
Sep 30 14:57:29 linux kernel: hdc: ATAPI reset complete
Sep 30 14:57:39 linux kernel: hdc: timeout waiting for DMA
Sep 30 14:57:39 linux kernel: hdc: timeout waiting for DMA
Sep 30 14:57:39 linux kernel: hdc: (__ide_dma_test_irq) called while
not waiting
[...REPEATED 3 TIMES...]

  If i check now, the CD works properly but DMA mode has been
disabled. What can i do? I have tried lots of things and
searched in manuals and in the internet but i have not yet set DMA to
work properly. Any help will be welcomed. Thank you for your time
and best regards,

   A. Luque.

-- 
----
Alejandro Luque
Universitaet Bayreuth
Theoretische Physik IV
95440 Bayreuth (Germany)
Tel.      +49-(0)921/55-3328
e-mail:   <alejandro DOT luque AT uni-bayreuth DOT de>


Relevant Pages

  • ide-cd problem in 2.6.12-rc5 + todays snapshot
    ... Since 2.4.21 timeframe IDE DMA for this CD ... Now, since ide-cd dma is broken, the first access to cd always gets DMA ... it probes for drives on boot. ... hdc: drive_cmd: status=0x51 ...
    (Linux-Kernel)
  • 2.6.0 IDE CD repeatable panic
    ... hdc: timeout waiting for DMA ... Unable to handle kernel paging request at virtual address c7de1f74 ...
    (Linux-Kernel)
  • Re: DMA disabled
    ... the hdparm results for hdc is ... Or should i do somthing to solve this DMA problem? ... If you want to play it safe you could boot from a Knoppix CD. ... 0000:00:02.0 VGA compatible controller: Intel Corp. ...
    (Debian-User)
  • Re: PIIX4 DMA Timeout
    ... IDE driver reported it's timeouted on DMA operation. ... hdc: HTE721010G9AT00, ATA DISK drive ... hdc: DMA interrupt recovery ...
    (Linux-Kernel)
  • [SLE] Printer refuses to work - error attached
    ... Here is an excerpt from the messages file. ... and use the system as a print server, but afraid to continue until I get ... Jul 3 17:29:23 linux kernel: DMA write timed out ...
    (SuSE)