LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2003, 05:17 PM   #1
Gill Bates
Member
 
Registered: Aug 2003
Location: the far side
Distribution: OpenSuSe 10.2, Mac OS X Tiger
Posts: 380

Rep: Reputation: 30
stupid dma not enabling


i recompiled my kernel (2.4.20) disabling most modules (1's i would never use) and putting others as part of the kerne (1s i would use)l, when i boot the new kernel, it comes up fine, but my root partition (reiserfs) flashs a quick error about DMA being disabled for some reason -> dmesg doesnt show why DMA is being disabled, but when i try to enable it using hdparm -d1 /dev/hdc it gives an error saying it can't, when i boot the old kernel, dma is enabled fine and hdparm can turn it on and off no problem.
does anyone have any idea what could have caused this after a recompile?
suggestions would be handy if u dont know

Last edited by Gill Bates; 11-05-2003 at 05:19 PM.
 
Old 11-05-2003, 05:28 PM   #2
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
Did you make sure to enable DMA for your IDE chipset?
It's under

MainMenu
IDE\ATA\MFM\RLL support
IDE, ATA, and ATAPI Block devices.


Could you post the exact error message?
 
Old 11-05-2003, 05:32 PM   #3
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Yup. When you recompiled your kernel, you left out support for DMA somewhere. It can be kind of hide and seek with recompiling and getting to know where everything is

It's under ATA/IDE/MFM/RLL Support and then the "block devices" section.

You'll want to enable (assuming the 2.4.22 kernel):
Enhanced Support
IDE/ATA-2
PCI IDE chipset support
Generic PCI IDE Chipset Support
Sharing PCI IDE interrupts support
GEneric PCI bus-master DMA support
Use PCI DMA by default when available

You probably dont' need all of these, but these should work. You may not have left in the last two.

That should do it

-Shade
 
Old 11-05-2003, 07:26 PM   #4
Gill Bates
Member
 
Registered: Aug 2003
Location: the far side
Distribution: OpenSuSe 10.2, Mac OS X Tiger
Posts: 380

Original Poster
Rep: Reputation: 30
ok i did that and i still got the error message, the screen is moving too fast to be able to read it and dmesg doesnt refer to the error anywhere,
however, with that stuff enabled, hdparm will now work thanks, so now i will just ignore the problem and use hdparm to set the disk values during start up.
what are optimal settings or close to optimal settings for it? i know all drives are different but does anyone know what are definite "no gos"?
 
Old 11-05-2003, 07:32 PM   #5
Gill Bates
Member
 
Registered: Aug 2003
Location: the far side
Distribution: OpenSuSe 10.2, Mac OS X Tiger
Posts: 380

Original Poster
Rep: Reputation: 30
zoink!! never mind - found something else
http://www.linuxquestions.org/questi...ighlight=cdrom

so what about "no go's"?
 
Old 11-05-2003, 10:40 PM   #6
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
You mean, dos and don'ts of hdparm?

Well, it's kind of hit or miss ... Sometimes hdparm will let you enable something the drive isn't capable of and you can screw things up.

If your drive is relatively new, I wouldn't worry about it though.

The settings I use :

hdparm -m16 -u1 -c1 -d1 -k1 /dev/hda

-Shade
 
Old 11-06-2003, 07:18 AM   #7
Gill Bates
Member
 
Registered: Aug 2003
Location: the far side
Distribution: OpenSuSe 10.2, Mac OS X Tiger
Posts: 380

Original Poster
Rep: Reputation: 30
do -> speeds up performance
don'ts -> cripple the hard drive

i have been experimenting with it, some of the settings dont appear to do anything
 
  


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
enabling DMA problems blastradius Ubuntu 11 09-07-2005 02:22 AM
Enabling DMA Problems. ShoCkwave Slackware 7 02-07-2005 12:29 PM
Enabling DMA - tried everything? imranakbar Linux - Hardware 2 01-18-2005 03:49 AM
Enabling DMA DeadlyMuffin Slackware 4 07-19-2004 10:24 PM
Enabling DMA bizzikid Linux - Newbie 4 08-06-2003 06:56 AM


All times are GMT -5. The time now is 08:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration