LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-05-2004, 07:51 AM   #1
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Rep: Reputation: 30
Question howto set DMA


hi!does someone know how to set DMA on in kernel-2.6.xx?I know the kernel-2.4.26 sets on by default,but 2.6.xx doesn't.when I command like this -------->/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

with 2.4.26 no need to command.I tried to look for and to enable from the kernel-2.6.xx menu,but I couldn't find place where from to enable.does someone know exact place in the kernel-2.6.xx menu or where to enable DMA from?thanks!
 
Old 09-05-2004, 08:33 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Re: howto set DMA

Quote:
Originally posted by moonloader
hi!does someone know how to set DMA on in kernel-2.6.xx?I know the kernel-2.4.26 sets on by default,
No DMA is not set by default in the 2.4.26 kernel, you have to re-compile the kernel to enable support..............and
the same goes for the 2.6x kernels................re-compile to get support.
 
Old 09-05-2004, 09:03 AM   #3
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
Just turn it on it's compiled into 2.4.26 and 2.6.7 that are included with slackware: I have this in /etc/rc.d/rc.local

hdparm -d 1 /dev/hda
hdparm -d 1 /dev/hdc
 
Old 09-05-2004, 09:28 AM   #4
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
When I boot the machine with 2.4.26 (the one comes with slack), no error message for it.
However when I boot it with 2.6.8.1, fsck warns me something like:

DMA of your hard disk is turned off.
This may slow down fsck process.

Tough I am not sure which option is for enabling DMA, I am sure that I turn it on.

Any idea on that?
 
Old 09-05-2004, 09:30 AM   #5
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Original Poster
Rep: Reputation: 30
hello lupin_the_3rd and 320mb!

I have put this command to rc.local

/usr/sbin/hdparm -c 1 -d 1 -k 1 /dev/hda
/usr/sbin/hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda

but message comes back


HDIO_SET_DMA failed: Operation not permitted
----------------------------------------------------------------------------------------------------
320mb wrote

No DMA is not set by default in the 2.4.26 kernel, you have to re-compile the kernel to enable support..............and
the same goes for the 2.6x kernels................re-compile to get support.
-------------------------------------------------------------------------------------------------------
I am read to compile the kernel again,but where is the place in the kernel menu to enable it?I tried to look for and to enable from the kernel-2.6.xx menu,but I couldn't find place where from to enable.does someone know exact place in the kernel-2.6.xx menu or where to enable DMA from?thanks!


ps:in the kernel 2.4.26 DMA is enabled,but anyway you have to command as single user or to rc.local
hdparm -c 1 /dev/hda
hdparm -d 1 /dev/hda

Last edited by moonloader; 09-05-2004 at 09:34 AM.
 
Old 09-05-2004, 03:21 PM   #6
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Original Poster
Rep: Reputation: 30
hello to all!
I found out how to set the DMA on and it same for the kernel-2.4.xx and kernel-2.6.xx.this is how I did it and I hope this post will help to the people who has same issue or who wants to set DMA on.

ATA/ATAPI/API/MFM/RLL support yes
PCI IDE chipset support yes
Generic PCI bus-master DMA support yes
then I chose All options in same menu (what effect to set DMA on!!!)

results success!

/dev/hda:
using_dma = 1 (on)

Last edited by moonloader; 09-05-2004 at 03:23 PM.
 
Old 09-14-2004, 09:14 AM   #7
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
I think one of the most crucial thing is to compile CORRECT IDE Bus Controller.
I got the warning everytime I boot until I got the that thing into kernel.

 
  


Reply



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
howto turn on DMA for /dev/hda ? tdking19 Linux - Hardware 3 05-15-2005 07:31 AM
unable to set dma on a seagate barracuda st340014a dabicho Linux - Hardware 0 02-08-2005 06:19 PM
Howto activate DMA Mode on HardDisk Drive krasi Linux - Software 3 07-05-2004 03:59 PM
is it possible to set up a network to hard drive dma jwstric2 Programming 5 06-24-2004 04:03 AM
CDRW SuSE 8.2 DMA set problem lacerto Linux - Laptop and Netbook 0 11-11-2003 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:17 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