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 10-13-2005, 07:14 AM   #1
pdevries
LQ Newbie
 
Registered: May 2004
Distribution: slackware
Posts: 8

Rep: Reputation: 0
"lose" dma on ide drive


After running for a few hours, my ide hard disk, hda, "loses" its settings--the one I care about is dma=on. When I boot, dma is set, and later I can reenable it with hdparm, but it always eventually goes back to dma=off. I am getting very terse messages in the system message log "kernel: hda: DMA disabled".

This is a new problem since I switched from kernel 2.6.11.x to 2.6.13.x. My chipset is VIA. The kernel module for the chipset is compiled into the kernel, and the "use dma by default" option is also compiled in. Actually, unless the chipset module is compiled in, I can't get dma to turn on at all. I don't know why this would be relevent, but, the distro is slackware 10.2.

Any relevant information, or any advice about how to troubleshoot this is appreciated in advance!
 
Old 10-14-2005, 02:14 PM   #2
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
This may happen if the drives is old/buggy, the motherboard too old for DMA (P2 motherboard and lower... linux usually bypass the BIOS to activate DMA on old hardware but it's not that great) or if your wife has a bad day ( read : anything, you are maybe just unlucky).
Usually, the best thing to do is to try to slowdown the drive. Use "hdparm -vi /dev/hdX" to find out what DMA settings your drive is using. There is usually several "DMA modes" supported, as example, if you are using, let's say, udma5, then it may be a good idea to slowdown to "udma1" or even lower (mdmaX). Take a look to hdparm, it should be clear enought

Nb 1 : if "hdparm -vi" can't tell you which DMA mode you are using, then there is probably a big bad problem there, mean the driver is trying to use a mode that your drive isn't even supporting, to slowdown is important then.

Nb2 : it's quite normal that you can't use IDE driver as module. Since it is the first thing loaded on boot, if you want to use this as module, you have to use the an "initrd" ram disk, as the kernel need to read the disk ( and so to have an IDE module loaded!) to load your module. In that case, the kernel just usu the "default" ide module, which is slow as hell and prevent you to load any further IDE drivers.
 
Old 10-17-2005, 07:31 AM   #3
pdevries
LQ Newbie
 
Registered: May 2004
Distribution: slackware
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks. I'll look at these, particularly the drive speed (udma) idea, which seems most likely in my case. Appreciate the help.

P.S I always dread the "mabye its just bad luck!" option.
 
Old 10-17-2005, 12:20 PM   #4
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
If the dma drop occurs at regular intervals, you may want to see if a cron job or other scheduled task is restoring old settings or the like.
 
  


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
Fedora Core 4 wont "see" my Promise Fastrak 378 IDE-RAID array as one drive. Justinr999 Linux - Hardware 0 07-19-2005 01:30 AM
cdrecord error "medium not present" on LG IDE drive configured as SCSI. ColinLadyka Linux - Hardware 3 01-14-2005 01:37 PM
Hard drive lose dma "on the fly" Hammett Linux - Hardware 4 08-23-2004 01:38 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 04:58 AM
php ide with "break" and "trace" Kayaker Programming 3 04-25-2003 02:52 PM


All times are GMT -5. The time now is 06:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration