LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-17-2010, 05:20 AM   #1
bhageshp
Member
 
Registered: Sep 2008
Location: Mumbai
Distribution: Redhat
Posts: 41

Rep: Reputation: 16
Unhappy How to enable DMA


Hi,

I have a Lenova Machine with RHEL5 installed. Recently I noticed that I am facing slow speed because of my hdd dma has been disabled.

[root@Maxy ~]# hdparm /dev/hdc

/dev/hdc:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 36481/255/63, sectors = 586072368, start = 0

I try to enable the dma by running the command
[root@Maxy ~]# hdparm -d1 /dev/hdc

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

But it remains unchanged. Anybody have an idea about it.
 
Old 04-17-2010, 05:47 AM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
try -X69 -d1 or -X66 -d1
Quote:
To enable UDMA, you use -Xxx where xx is the transfer mode.
Here's how it stacks up:
-X64 : UDMA 0 (ATA 16)
-X65 : UDMA 1 (ATA 25)
-X66 : UDMA 2 (ATA 33)
-X67 : UDMA 3 (ATA 44)
-X68 : UDMA 4 (ATA 66)
-X69 : UDMA 5 (ATA 100)
-X70 : UDMA 6 (ATA 133)
http://linuxdevcenter.com/pub/a/linu...rm.html?page=2

Last edited by troop; 04-17-2010 at 05:52 AM.
 
Old 04-17-2010, 07:21 AM   #3
bhageshp
Member
 
Registered: Sep 2008
Location: Mumbai
Distribution: Redhat
Posts: 41

Original Poster
Rep: Reputation: 16
Smile

Hi,

How can I find out which ATA I have.
 
Old 04-17-2010, 07:27 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by bhageshp View Post
Hi,

How can I find out which ATA I have.
You can use 'hdparm -I /dev/hdc' from the command line. Do a 'man hdparm' to understand the usage.

 
Old 04-17-2010, 07:48 AM   #5
bhageshp
Member
 
Registered: Sep 2008
Location: Mumbai
Distribution: Redhat
Posts: 41

Original Poster
Rep: Reputation: 16
Smile

Hi I have the output of the command as follows.
How can i find the ATA version.


[root@Maxy bin]# hdparm -I /dev/hdc

/dev/hdc:

ATA device, with non-removable media
Model Number: ST3300822AS
Serial Number: 4NF2AJ5L
Firmware Revision: 3.AAE
Standards:
Supported: 7 6 5 4
Likely used: 7
Configuration:
Logical max current
cylinders 16383 65535
heads 16 1
sectors/track 63 63
--
CHS current addressable sectors: 4128705
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 586072368
device size with M = 1024*1024: 286168 MBytes
device size with M = 1000*1000: 300069 MBytes (300 GB)
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Recommended acoustic management value: 208, current value: 0
DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4 udma5 udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=240ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* DOWNLOAD_MICROCODE
SET_MAX security extension
* 48-bit Address feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* SATA-I signaling speed (1.5Gb/s)
* SATA-II signaling speed (3.0Gb/s)
* Native Command Queueing (NCQ)
* Phy event counters
* Software settings preservation
Security:
Master password revision code = 65534
supported
not enabled
not locked
frozen
not expired: security count
not supported: enhanced erase
Checksum: correct
 
Old 04-17-2010, 07:58 AM   #6
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
Quote:
DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4 udma5 udma6
for UltraDMA, the value is the desired UltraDMA mode number plus 64. -X70

p.s. look at using sdparm instead of hdparm for sata.

p.s.s.
Quote:
If you have a SATA drive but Linux is seeing it as IDE (i.e. it appears as /dev/hd*, rather than /dev/sd*) then your BIOS is emulating IDE, and you may not be able to persuade hdparm to do anything useful. You'll have to change your BIOS settings to present the drive as SATA. If you do this, be careful to ensure that your BIOS is still trying to boot off the correct drive;
(c) http://www.gentoo-wiki.info/Hdparm

Last edited by troop; 04-17-2010 at 08:08 AM.
 
Old 04-17-2010, 08:05 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Is this your drive? If so, then it is a SATA.

Do you have the correct drivers installed?

BTW, please place your long list or data within the vbcode tags # or quote. The # & Quote are at the top of the reply window. Quote is the balloon to the left of the #. This makes your post cleaner therefore easier to read.

 
Old 04-19-2010, 05:58 AM   #8
bhageshp
Member
 
Registered: Sep 2008
Location: Mumbai
Distribution: Redhat
Posts: 41

Original Poster
Rep: Reputation: 16
Smile

I have the BIOS Configuration for IDE like this:-
Parallel ATA: Disabled
Serial ATA: Enabled
Native Mode Operation: Automatic

There is one more option is there for Native mode Serial ATA

Which option is required for the Linux to recognize the disk as sata?
 
Old 04-19-2010, 07:12 AM   #9
bhageshp
Member
 
Registered: Sep 2008
Location: Mumbai
Distribution: Redhat
Posts: 41

Original Poster
Rep: Reputation: 16
Thumbs up

Hi,

Thanks for the Information.

I Changed the Native mode : Serial ATA

Then it is showing the HDD as sata

Now my device list as /dev/sda

and I got performance like normal system.
 
  


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
How do I enable DMA? abefroman Linux - Server 1 10-14-2008 07:19 PM
How do I enable DMA? ouellettesr Slackware 5 03-01-2007 10:36 AM
cant enable DMA! hĺkon Linux - Hardware 1 08-08-2003 03:11 PM
How to enable DMA? Piero Linux - Hardware 14 07-21-2003 06:05 AM
enable DMA? Alinuxnoob Linux - Newbie 1 02-28-2002 03:58 PM

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

All times are GMT -5. The time now is 07:44 PM.

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