LinuxQuestions.org
Review your favorite Linux distribution.
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-02-2005, 08:52 AM   #1
TMH
Member
 
Registered: Nov 2004
Location: UK
Distribution: Gentoo
Posts: 61

Rep: Reputation: 15
Enabling DMA on hard disks


When I try to enable DMA using hdparm, it says "operation not permitted", which apparently means I must specify my IDE and SATA controlers in the kernel. There is one Intel kernel driver, but it doesn't seem to do anything when I compile it in, and the same hdparm error message pops up.

Here are the lspci entries for my cards:
Code:
0000:00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
0000:00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
Does anyone know of a kernel driver for these cards? I can't seem to find one on the net. Linux without DMA very much reminds me of windows 98 without the bluescreens
 
Old 04-02-2005, 09:03 AM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
-) are you "root" ?
-) try "hdparm -I /dev/whatever" to check your configuration and post results here
 
Old 04-02-2005, 01:31 PM   #3
TMH
Member
 
Registered: Nov 2004
Location: UK
Distribution: Gentoo
Posts: 61

Original Poster
Rep: Reputation: 15
The output of hdparm -I /dev/hda:
Code:
/dev/hda:

ATA device, with non-removable media
        Model Number:       WDC WD3200JB-00KFA0                     
        Serial Number:      WD-WMAMR1136579
        Firmware Revision:  08.05J08
Standards:
        Supported: 6 5 4 3 
        Likely used: 6
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:  625142448
        device size with M = 1024*1024:      305245 MBytes
        device size with M = 1000*1000:      320072 MBytes (320 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        bytes avail on r/w long: 65     Queue depth: 1
        Standby timer values: spec'd by Standard, with device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Recommended acoustic management value: 128, current value: 254
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4 
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    READ BUFFER cmd
           *    WRITE BUFFER cmd
           *    Host Protected Area feature set
           *    Look-ahead
           *    Write cache
           *    Power Management feature set
                Security Mode feature set
           *    SMART feature set
           *    FLUSH CACHE EXT command
           *    Mandatory FLUSH CACHE command 
           *    Device Configuration Overlay feature set 
           *    48-bit Address feature set 
                Automatic Acoustic Management feature set 
                SET MAX security extension
           *    DOWNLOAD MICROCODE cmd
           *    SMART self-test 
           *    SMART error logging 
Security: 
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
HW reset results:
        CBLID- above Vih
        Device num = 0 determined by the jumper
Checksum: correct
Results of hdparm -I /dev/hdb:

Code:
/dev/hdb:

ATA device, with non-removable media
        Model Number:       ST3120023A                              
        Serial Number:      3KA0BX36            
        Firmware Revision:  3.31    
Standards:
        Used: ATA/ATAPI-6 T13 1410D revision 2 
        Supported: 6 5 4 3 
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  234441648
        device size with M = 1024*1024:      114473 MBytes
        device size with M = 1000*1000:      120034 MBytes (120 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        bytes avail on r/w long: 4      Queue depth: 1
        Standby timer values: spec'd by Standard
        R/W multiple sector transfer: Max = 16  Current = 16
        Recommended acoustic management value: 128, current value: 254
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 
             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:
           *    READ BUFFER cmd
           *    WRITE BUFFER cmd
           *    Host Protected Area feature set
           *    Look-ahead
           *    Write cache
           *    Power Management feature set
                Security Mode feature set
           *    SMART feature set
           *    Mandatory FLUSH CACHE command 
           *    Device Configuration Overlay feature set 
           *    Automatic Acoustic Management feature set 
                SET MAX security extension
           *    DOWNLOAD MICROCODE cmd
           *    SMART self-test 
           *    SMART error logging 
Security: 
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
HW reset results:
        CBLID- above Vih
        Device num = 1 determined by the jumper
Checksum: correct
Results of hdparm -I /dev/sda:

Code:
/dev/sda:
 HDIO_DRIVE_CMD(identify) failed: Invalid argument
(/dev/sda is a firewire device)

Yes, I am running the hdparm tool as root. I don't get hdparm as a normal user.
 
Old 04-02-2005, 01:31 PM   #4
TMH
Member
 
Registered: Nov 2004
Location: UK
Distribution: Gentoo
Posts: 61

Original Poster
Rep: Reputation: 15
An additional note, Knoppix is able to enable DMA on the drives, but knoppix has a magic kernel, it's unlikely I'll be able to figure out what to do.
 
Old 04-03-2005, 10:23 AM   #5
TMH
Member
 
Registered: Nov 2004
Location: UK
Distribution: Gentoo
Posts: 61

Original Poster
Rep: Reputation: 15
Bump!

Sorry, I try not to bump, but this problem is causing me a lot of trouble.
 
Old 04-05-2005, 08:10 PM   #6
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
>DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
(note the '*' - it shows your curent setting)

Both your IDE drives already seem to be running at UDMA5 - which is the best you can get on your hardware.
 
Old 04-05-2005, 08:48 PM   #7
TMH
Member
 
Registered: Nov 2004
Location: UK
Distribution: Gentoo
Posts: 61

Original Poster
Rep: Reputation: 15
I worked out how to fix this an hour ago. I found the right driver and compiled it into the kernel. Hooray.
 
  


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 - tried everything? imranakbar Linux - Hardware 2 01-18-2005 02:49 AM
enabling DMA for hard disk jogurt666 Linux - Hardware 1 08-12-2004 02:44 AM
Enabling DMA DeadlyMuffin Slackware 4 07-19-2004 09:24 PM
Enabling DMA on an IDE Hard Disk paulo2k Slackware 7 09-09-2003 01:58 PM
Enabling DMA bizzikid Linux - Newbie 4 08-06-2003 05:56 AM

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

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