LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-25-2006, 06:03 AM   #1
SilverEagle
LQ Newbie
 
Registered: Mar 2005
Location: Madrid, Spain
Distribution: Kubuntu Dapper
Posts: 11

Rep: Reputation: 0
SATA drives and DMA


Hi,

I'm trying to enable DMA support in a SATA drive (I'm using a common Silicon Image 3112 controller). So far when I try to enable DMA:

Code:
sudo hdparm -d1 /dev/sda
I get this error:
Code:
/dev/sda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Inappropriate ioctl for device
I found several posts where people are suggesting recompiling the kernel. On the other hand in the Ubuntu wiki there is an entry against doing this. To make things more confusing, there is a lot of outdated information about the DMA SATA support in the kernel.

Do you know any workaround for this without recompiling the kernel ?

Thanks in advance,

- Juan

Last edited by SilverEagle; 06-26-2006 at 01:38 AM.
 
Old 06-25-2006, 11:10 AM   #2
ScottReed
Member
 
Registered: Dec 2005
Location: Montana
Distribution: Debian "squeeze"
Posts: 157

Rep: Reputation: 30
hdparm does not work with SCSI or SATA disks...
 
Old 06-25-2006, 11:14 AM   #3
spirit receiver
Member
 
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
And, as far as I know, there's no such thing as turning DMA for SATA drives on and off.
 
Old 06-26-2006, 01:58 PM   #4
SilverEagle
LQ Newbie
 
Registered: Mar 2005
Location: Madrid, Spain
Distribution: Kubuntu Dapper
Posts: 11

Original Poster
Rep: Reputation: 0
If there is no DMA for SATA I don't know what can be wrong... this is the drive info:

Code:
/dev/sda:
 IO_support   =  0 (default 16-bit)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 24321/255/63, sectors = 390721968, start = 0
When I copy a file the system gets heavily slowed down . That's why I thought it could be a DMA problem.
 
Old 06-26-2006, 04:48 PM   #5
spirit receiver
Member
 
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
It's pretty hard to find some quotable source for the SATA-(non)DMA thingy, but maybe this one points in the right direction:
http://www.gatago.com/linux/kernel/14699741.html

Some people with similar problems report that it was a driver issue, and recompiling the kernel helped (in German only: click, and note it's not a recent kernel).
You might also want to have a look at this: http://www.linuxquestions.org/questi...d.php?t=385371

Unfortunately, this is all I could find out.
 
Old 04-03-2007, 01:10 PM   #6
adhenry
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Rep: Reputation: 0
hdparm doesnt work with SATA drives?

Quote:
Originally Posted by ScottReed
hdparm does not work with SCSI or SATA disks...
I suspected this was the case and its ok if dma doesnt need enabling with SATA but what about 32bit IO? it is set to 16bit with hdparm.

How can I set this with SATA?

My main problem is that burning 700MB CD takes 6 mins and should take less than 2min. It takes 1.5min on older laptop with slower CD drive with DMA and 32bit IO enabled.
 
Old 10-11-2007, 09:39 AM   #7
jakommo
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by adhenry View Post
I suspected this was the case and its ok if dma doesnt need enabling with SATA but what about 32bit IO? it is set to 16bit with hdparm.

How can I set this with SATA?

My main problem is that burning 700MB CD takes 6 mins and should take less than 2min. It takes 1.5min on older laptop with slower CD drive with DMA and 32bit IO enabled.
I don't know if this helps and I never used it but there is a tool called sdparm maybe it helps.
 
0 members found this post helpful.
  


Reply

Tags
sata



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
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 07:01 AM
sata dma problem matrixon Linux - Software 2 02-01-2006 08:03 AM
SATA drive != DMA CyberIron Linux - Hardware 6 10-05-2005 06:05 PM
Enable DMA on DVD drives puppy Ubuntu 5 09-08-2005 07:09 PM
Hard drives and DMA Hammett Linux - Hardware 8 08-27-2004 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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