LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-03-2006, 07:31 PM   #1
daveReed
LQ Newbie
 
Registered: Oct 2005
Distribution: Fedora Core 5
Posts: 7

Rep: Reputation: 0
enabling DMA for DVD playback


I am fairly new to linux so please, bare with me. I have been searching the web to figure out how to enable DMA support for a DVD drive, but haven't been able to find anything short of recompling the kernel. I have the latest Fedora 5 stable kernel build and hdparm installed. Please let me know what I can do. Here is my output:
Quote:
[root@localhost sbin]# ./hdparm -d 1 /dev/hdc

/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
here is the output of /sbin/lspci:
Quote:
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d3)
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 03)
03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)03:01.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3)
03:01.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 08)
03:01.2 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
03:03.0 Network controller: Intel Corporation PRO/Wireless 2200BG (rev 05)
My kernel is 2.6.16-1.2122_FC5


Please help...

update:
I have added the following to my /etc/modprobe.conf
Quote:
options ide-cd dma=1

Last edited by daveReed; 06-03-2006 at 07:39 PM.
 
Old 06-04-2006, 04:59 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Maybe DMA is not supported by your drive (though this would be unusual I think).
You could check with hdparm -I /dev/hdc

HTH
 
Old 06-04-2006, 09:13 PM   #3
daveReed
LQ Newbie
 
Registered: Oct 2005
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tredegar
Maybe DMA is not supported by your drive (though this would be unusual I think).
You could check with hdparm -I /dev/hdc

HTH
I think that DMA is supported by my drive... here is the output of hdparm -I /dev/hdc

Quote:
[root@localhost sbin]# ./hdparm -I /dev/hdc

/dev/hdc:

ATAPI CD-ROM, with removable media
Model Number: _NEC DVD+/-RW ND-6650A
Serial Number:
Firmware Revision: 102C
Standards:
Likely used CD-ROM ATAPI-1
Configuration:
DRQ response: 3ms.
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=120ns IORDY flow control=120ns
 
Old 06-05-2006, 01:35 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Weird.

For what it's worth, here's the listing from mine:
Code:
# hdparm -I /dev/hdc

/dev/hdc:

ATAPI CD-ROM, with removable media
        Model Number:       SONY    CD-RW  CRX320E
        Serial Number:
        Firmware Revision:  NYK5
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
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=227ns  IORDY flow control=120ns

#hdparm -d 1 /dev/hdc

/dev/hdc:
 setting using_dma to 1 (on)
 using_dma    =  1 (on)
Other things to think about:
Are you using the right sort of (E)IDE cable (Eg the 80-wire type) to connect the drive?
Do you have another device on that cable with inferior capabilities?
Is your DVD drive working alright? If it is, I wouldn't mess with it further!
Maybe you need to use the -X flag, but please see man hdparm before you start!

HTH
 
Old 06-05-2006, 02:36 PM   #5
daveReed
LQ Newbie
 
Registered: Oct 2005
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tredegar
Weird.

Other things to think about:
Are you using the right sort of (E)IDE cable (Eg the 80-wire type) to connect the drive?
Do you have another device on that cable with inferior capabilities?
Is your DVD drive working alright? If it is, I wouldn't mess with it further!
Maybe you need to use the -X flag, but please see man hdparm before you start!

HTH
The IDE cable shouldn't be causing the problems... it's an Inspiron 6000 laptop. The drive plays movies fine in windows with DMA enabled. I am just trying to figure out how to do it in linux.

Thanks for your help
 
Old 06-05-2006, 03:05 PM   #6
psheldon
LQ Newbie
 
Registered: Sep 2003
Location: South Africa
Distribution: RH 8 + Slackware 10.0
Posts: 6

Rep: Reputation: 0
Is that a SATA system? My hda is SATA (sda) I have the same problem. I still can't find an answer
 
Old 06-05-2006, 03:07 PM   #7
daveReed
LQ Newbie
 
Registered: Oct 2005
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by psheldon
Is that a SATA system? My hda is SATA (sda) I have the same problem. I still can't find an answer
Yes, I believe it is.
 
Old 06-09-2006, 05:34 PM   #8
daveReed
LQ Newbie
 
Registered: Oct 2005
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
Ok I have found a solution that worked for me...
Add the following line into your kernel boot line (/etc/grub.conf)

hdc=noprobe

so the line should look something like this
kernel /boot/vmlinuz-2.6.16-1.2122_FC5 ro root=LABEL=/ rhgb quiet hdc=noprobe

thanks to bodger from the fedoraforum for helping me solve this
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dma and subtitles in xine dvd playback ? unionjak Ubuntu 2 11-18-2005 01:27 PM
Enabling DMA for DVD when system boots (SuSE 9.1) webwolf70 Linux - Hardware 2 07-26-2004 01:53 PM
DVD Playback Issues - DMA Problem? rnmartinez Linux - Software 1 06-14-2004 01:58 AM
RH9 enabling DMA for DVD/CD/CDRW combo filkacik Linux - Software 0 10-03-2003 03:57 PM
Suse 8.2 change my DMA setting on my DVD-R drive to off & IDE DMA MODE NOT SHOWING IT maximalred Linux - General 0 08-23-2003 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration