LinuxQuestions.org
Register a domain and help support LQ
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 08-23-2004, 09:36 AM   #1
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Rep: Reputation: 54
Hard drive lose dma "on the fly"


HI all!!!

I have been recently having a lot of problems with one of my HDD. It's a Matrox 120GB HDD formated with fat32.
I've noticed this harddrive is quite slow, so i checked with hdparm if the dma was enabled. To my surprise, it wasn't, so i put it. I even made an entry to /etc/rc5.d/S99local file to not having to do it everytime i switch on the pc.

Few moments ago, i had to put it back (hdparm -d1 /dev/hdb) and to my surprise (again), after five minutes, it was disbled again!! Putting manually DMA option to the hard drive does not give any error, and for a while it's working, but then (i don't know how or why) it's just disabled.

I'm sure i have compiled the kernel with DMA support, and checking dmesg, i found this error:

hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hdb: DMA disabled

When booting the kernel, i get this:

hda: Write Cache FAILED Flushing!
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }

hdb: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: task_no_data_intr: error=0x04 { DriveStatusError }
hdb: Write Cache FAILED Flushing!

This 2 messages appear several times....

I'm running a 2.6.6 custom kernel.

Both HDD run just fine under WinXP

What's happening to my HDDs??? Should I upgrade the kernel?? How can i solve this??

Thanks in advance
 
Old 08-23-2004, 09:46 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
These errors are common when you do not have the proper support for your IDE controller in your kernel. The kernel can access the drives but cannot cannot set the DMA mode correctly. What kind of motherboard do you use?


Håkan
 
Old 08-23-2004, 10:03 AM   #3
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Original Poster
Rep: Reputation: 54
It's an ASUS P4S8X-X.
Fortunatelly I still keep the old kernel (the one that came out of the box). I'll boot with it and see if I get those errors again.
So i guess i'll have to recompile the kernel again. I guess the problem should be under Device Drivers --> ATA/ATAPI/MFM/RLL support isn't it?
 
Old 08-23-2004, 11:26 AM   #4
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Original Poster
Rep: Reputation: 54
OK, booted with the old kernel, same problem.... What can i do now? Any ideas??

Thnx

EDIT: Downloading kernel 2.6.7 and recompiling again....hope it's gonna work. If someone has any idea, pls share

Last edited by Hammett; 08-23-2004 at 11:47 AM.
 
Old 08-23-2004, 01:38 PM   #5
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Original Poster
Rep: Reputation: 54
Well, it's kinda wierd, but upgrading the kernel solved the problem.
I'm still getting the same errors, but i have dma enabled at least, and the "hdparm -Tt /dev/hdb" test is good.
hw-tph, thanks for your help
 
  


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
"hdc: lost interrupt" - hard drive hangs philetus Linux - Hardware 18 03-14-2008 05:17 AM
Onkyo MB-S1 "Digital Music Libary" CD Player (Hard Drive Format?) bpk Linux - Hardware 3 08-12-2006 12:33 AM
"lose" dma on ide drive pdevries Linux - Hardware 3 10-17-2005 12:20 PM
mandriva 10.1 install stops at "hard drive detection" Devoid_Janitor Mandriva 0 08-08-2005 11:30 AM
Mandrake 10.1 - Linux doesn't "see" free hard drive space scottlyter Linux - General 3 10-15-2004 04:39 PM


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