LinuxQuestions.org
Review your favorite Linux distribution.
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 09-07-2004, 04:00 PM   #1
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15
turning DMA on with hdparm


I'm trying to turn dma on for my cd-roms (for nice fast dvd access). I am pretty certain the drive supports dma as is nice and new (is there any way to find this out). however when I run (as root)
Code:
hdparm -d1 /dev/hdb
I get told:
Code:
/dev/hdb:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)
how come???

Also I read that the kernel does not enable DMA for devices on boot due to compatability reason's. How do I enable this rather than having to use hdparm
 
Old 09-07-2004, 04:01 PM   #2
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Original Poster
Rep: Reputation: 15
just found out how to find whether DMA able using
Code:
hdparm -I /dev/hdb
and the drive is DMA able

Plus I have found out that the drive is using 16bit I/O mode despite being set to 32bit by bios, how come kernel has overwritten this setting

Last edited by geniarse; 09-07-2004 at 04:05 PM.
 
Old 09-07-2004, 04:38 PM   #3
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Original Poster
Rep: Reputation: 15
I have solved the problem, I hadn't compiled my IDE controller into the kernel now all drives using DMA (didn't need to post this really took me a further 5 minutes to figure out). However still not using 32 bit IO, any ideas anybody.
 
Old 09-07-2004, 04:48 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
What does "hdparm -v /dev/hdb" show?

What does "hdparm -v /dev/hd[a-z]" show? (I think you did not compile the kernel for DMA support)

What brand and model is your DVD drive?
 
Old 09-09-2004, 03:47 PM   #5
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Original Poster
Rep: Reputation: 15
I have solved the DMA problem, It's not that I hadn't compiled DMA into kernel, I compiled the incorrect IDE controller chipset, so hdparm wasn't accessing it correctly (hence the failure). I have already explained this in previous post, but thanks for the help anyway.
 
  


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
hdparm can't enable dma with ich6m rob666 Linux - Hardware 5 09-05-2005 05:00 PM
Kernel 2.6.5, hdparm dma, and AK72 linuxbeak Linux - Hardware 2 05-04-2004 09:19 AM
Enabling DMA with no hdparm ? SML Fedora 1 02-22-2004 03:52 PM
Enabling DMA with no hdparm SML Red Hat 1 02-22-2004 03:46 PM
hdparm/dma MightyKC Linux - Newbie 7 08-19-2003 08:43 AM

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

All times are GMT -5. The time now is 05:45 PM.

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
Open Source Consulting | Domain Registration