LinuxQuestions.org
Visit Jeremy's Blog.
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 10-02-2007, 03:18 AM   #1
SEGStriker
LQ Newbie
 
Registered: Feb 2006
Posts: 21

Rep: Reputation: 0
Enabling DMA & 32 bit access on SATA HDD and DVD RW


Does someone knows an easy and quick way (without recompiling or patching the kernel) for enabling 32 bit access, DMA and other useful settings to SATA hard drive and SATA DVD drive? On such a drives hdparm fails to set any option, because it can't recognise ioctl.
 
Old 10-02-2007, 06:06 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
If I remember correctly, sata drives don't use or don't need dma. That is why hdparm won't work on them. Are you having problems with drive access speed or something? If not I wouldn't worry about it.

Last edited by tommcd; 10-03-2007 at 03:43 AM.
 
Old 10-02-2007, 06:48 AM   #3
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
As tommcd said, you should not be doing that. There is a sdparm utility for SCSI devices, but I never use it, so can't really comment on that.

However, there are some situations, where there is a need to manually do something for DVD RW. For example, for my Dell Inspirion 640m, I need to add: "combined_mode=libata atapi_enable=1" into lilo.conf (I use lilo, I think most people use grub) in order to get good performance. But, this is what I had encountered, which maybe completely different from your situation. If you really having some problem with your SATA devices, you should give us more details on what exactly the devices and the problem you are facing. Otherwise, I am not sure if anyone can help.
 
Old 10-02-2007, 06:48 AM   #4
SEGStriker
LQ Newbie
 
Registered: Feb 2006
Posts: 21

Original Poster
Rep: Reputation: 0
Well, you are right about DMA mode, but not for 32 bit access. I searched in Internet about this problem and many people are on the same road. Most of them use libata patch: http://www.linconsult.no/libata/

In this page is written: "Note: this whole issue has been fixed in kernel 2.6.15", which is still not true.


P.S. ghostdancer, I tried sdparm, it is not working with SATA drives. I think hdparm developers must improve SATA support, it is a shame - SATA drives are here for 4 years

Output of sdparm:

sdparm /dev/sda

/dev/sda: ATA ST3320620AS 3.AA
REQUEST SENSE failed, try again with '-v' option

sdparm -v /dev/sda

/dev/sda: ATA ST3320620AS 3.AA
Request Sense cmd: 03 00 00 00 40 00
request sense: Fixed format, current; Sense key: Illegal Request
Additional sense: Invalid command operation code
REQUEST SENSE failed


Output of hdparm:

hdparm /dev/sda

/dev/sda:
IO_support = 0 (default 16-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 38913/255/63, sectors = 625142448, start = 0

hdparm -c3 /dev/sda (tried -c1 without success)

/dev/sda:
setting 32-bit IO_support flag to 3
HDIO_SET_32BIT failed: Invalid argument
IO_support = 0 (default 16-bit)

hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 2180 MB in 2.00 seconds = 1090.05 MB/sec
Timing buffered disk reads: 168 MB in 3.03 seconds = 55.50 MB/sec

hdparm -d1 /dev/sda

/dev/sda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Inappropriate ioctl for device


The reason is clear for me - "Inappropriate ioctl for device", SATA drives are not well supported. So I have to use combined_mode=libata atapi_enable=1 in grub (I used primarly lilo till this installation.

Last edited by SEGStriker; 10-02-2007 at 06:57 AM.
 
  


Reply



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
Enabling DMA for DVD burner? ak-87 Linux - Hardware 10 06-30-2007 04:39 AM
Enabling DMA for DVD drive. morghanphoenix Ubuntu 6 10-22-2006 09:10 PM
enabling DMA for DVD playback daveReed Linux - Hardware 7 06-09-2006 04:34 PM
Enabling HDD DMA in Gentoo? vharishankar Linux - Hardware 12 03-10-2005 03:14 AM
RH9 enabling DMA for DVD/CD/CDRW combo filkacik Linux - Software 0 10-03-2003 02:57 PM

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

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