LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 06-09-2008, 03:28 PM   #1
stople
LQ Newbie
 
Registered: Jun 2008
Location: Sandeid, Norway
Distribution: Ubuntu Gutsy, Slackware 12.1, Debian Etch
Posts: 4
Blog Entries: 1

Rep: Reputation: 0
WDC drive with ultra-DMA support?


I cannot enable DMA on my Western Digital Caviar GP 1TB. When I try to hdparm -d1 /dev/hda it responds "HDIO_SET_DMA failed: Operation not permitted". I found an kernel configuration option, ALI M15x3 WDC support (DANGEROUS), which appears that I am a fool if I enable. I also found that the only blacklisted hard drives in ultra-DMA is WDC drives (dunno if this includes my disc). Can anyone explain why it is blacklisted (except that it "may cause corruption of data")? Is there any work in progress with this issue, where I maybe can contribute? In short: is there any hope for me to enable DMA on my hard drive?

Last edited by stople; 06-09-2008 at 03:34 PM.
 
Old 06-13-2008, 10:07 AM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 30
DMA is enabled by default and cannot be controlled on sata drives.
 
Old 06-24-2008, 03:38 PM   #3
stople
LQ Newbie
 
Registered: Jun 2008
Location: Sandeid, Norway
Distribution: Ubuntu Gutsy, Slackware 12.1, Debian Etch
Posts: 4
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Note: This probably only regards Slackware 12.1 users.

I found the article I was looking for (Slackware 12.1 & DMA). I forgot to mention that my hard drive was SATA, and that it was named /dev/hda. I think this problem is regarding Slackware 12.1. According to what I found, "it seems that the generic-smp kernel that ships with Slackware Linux 12.1 is build to first probe for ide before loading libata". The solution was to append hda=noprobe in lilo.conf. I have found this solution before and tried it, but then it resulted in a kernel panic during boot. But the article I found wrote something about an init ram disk (initrd), and by using it I made it work.

I did it the following way:
Make the initrd disk by using mkinitrd, and mount root to /dev/sda5 (my root file system was /dev/hda5), mkinitrd -c -k 2.6.25.6-smp -m reiserfs -r /dev/sda5
Modify /etc/fstab; change all /dev/hda* to /dev/sda*
Modify /etc/lilo.conf; add the following: append = " hda=noprobe"
Applying lilo.conf by running "lilo" from shell
Reboot
After rebooting I checked in my /dev folder, and I found that all the hda* devices that was the partitions on my hard drive was now sda*
Then I modified lilo.conf again; I changed boot from /dev/hda to /dev/sda, and root from /dev/hda5 to /dev/sda5. Don't change append hda=noprobe to sda=noprobe! I did it, with bad results....
Apply lilo.conf
Reboot
 
  


Reply

Tags
dma


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSE LINUX 9.1 Ultra DMA Not persistant upon reboot harbinger879 Linux - Hardware 1 06-08-2004 05:11 PM
How to put my Seagate in Ultra-DMA Mode 5?? Musikolo Linux - Hardware 5 01-09-2004 03:03 PM
Ultra Dma Mode 5 the panther Linux - Hardware 3 08-09-2003 02:09 PM
Ultra DMA, is it activated? Waldi Slackware 7 07-23-2003 02:55 AM
Debian Installation and Promise Ultra DMA 100 psychoholic Linux - Distributions 1 04-24-2003 11:30 PM


All times are GMT -5. The time now is 12:50 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
Open Source Consulting | Domain Registration