LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-22-2005, 08:05 PM   #1
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slack 10.2 kde 3.4.2 kernel 2.6.15
Posts: 452

Rep: Reputation: 30
can't turn DMA on my hard drive


Hello

I have double checked my kernel configs and I have the right drivers compiled in for my IDE chipset.

However I am unable to turn dma on,which is causing me as few performance issues etc.

when I do hdparm -d1 /dev/hdb i get

Code:
/dev/hdb:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)

I also have tried parsing


ide-scsi ide0=dma ide1=dma to the kernel at boot time via grub because i thought i read somehwere that you can't activate dma to a mounted device ??


anyway it didn't work.

You help is much appreciated as ever.
 
Old 09-23-2005, 02:36 AM   #2
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
Re: can't turn DMA on my hard drive

Have you tried doing it as root?

Quote:
Originally posted by slzckboy
...because i thought i read somehwere that you can't activate dma to a mounted device ??
Well, since complete hard drives are rarely mounted (but partitions), this should not apply. As far as I remember, I can active DMA on hard drives that contain mounted partitions.

Last edited by addy86; 09-23-2005 at 02:37 AM.
 
Old 09-23-2005, 04:32 AM   #3
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slack 10.2 kde 3.4.2 kernel 2.6.15
Posts: 452

Original Poster
Rep: Reputation: 30
yes
I have done it as root.
 
Old 09-23-2005, 06:48 AM   #4
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
Have you already looked in your BIOS settings (just a guess)?

Or maybe your hardware is so old that it doesn't support DMA
 
Old 09-23-2005, 08:43 PM   #5
wpyh
Member
 
Registered: Jun 2004
Location: Beijing
Distribution: Slackware 9.1 but FUBAR with packages I compile myself, and OpenBSD (not exactly a distro) on QEMU
Posts: 153

Rep: Reputation: 35
I have this in my lilo.conf instead:

append="ide0=ata66 ide1=ata66 hdc=ide-scsi"

Btw, are you using the correct 80-wire cable?
 
Old 09-24-2005, 06:58 AM   #6
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slack 10.2 kde 3.4.2 kernel 2.6.15
Posts: 452

Original Poster
Rep: Reputation: 30
Age of my hardware is not an issue.
I should have said that it worked ok with my 2.4.26 kernel

its only since i started using 2.6x kernels.

silly me.


I just booted my 2.4.26 and DMA is enabled for all my ide devices

back to the drawing board

Last edited by slzckboy; 09-24-2005 at 07:00 AM.
 
Old 09-24-2005, 01:26 PM   #7
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slack 10.2 kde 3.4.2 kernel 2.6.15
Posts: 452

Original Poster
Rep: Reputation: 30
# CONFIG_BLK_DEV_VIA82CXXX is not set

found above in my .config file
lspci

00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Mas


fingers x'd
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Drive Problems: timeout waiting for DMA; error waiting for DMA mintee Linux - Hardware 10 09-21-2007 05:06 AM
Hard drive dma causes crc errors kel_en Linux - Hardware 3 08-25-2005 08:20 AM
DMA Mode of Hard Drive Ace2005 Linux - Hardware 6 07-21-2005 07:23 AM
is it possible to set up a network to hard drive dma jwstric2 Programming 5 06-24-2004 04:03 AM
setting using dma flag on hard drive? danny678010 Linux - Hardware 3 08-27-2003 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:06 AM.

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