LinuxQuestions.org
Help answer threads with 0 replies.
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 05-05-2007, 10:46 PM   #1
Tje
Member
 
Registered: Dec 2005
Posts: 75

Rep: Reputation: 15
DMA activation problem on Intel ICH7 82801GBM/GHMA


I have Acer Travelmate 3250 laptop (Core Duo).

Activating DMA on my harddrive seems to be impossible. The IDE controller is:

Code:
IDE Interface Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02) (prof-if 90 [Master])
I also checked, I checked the option "Intel PIIXn chipsets support" in the kernel configuration "ATA/ATAPI/MFM/RLL support"

and also checked "Intel ESB, ICH, PIIX3 PIIX4 PATA/SATA SUPPORT" and "AHCI SATA SUPPORT" under
"Serial ATA(prod) and Parallel ATA (experimental) drivers" and even I checked "Generic ATA support"

When I run hdparm as root, it shows me this :

# hdparm -d1 /dev/sda
/dev/sda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Invalid argument

Is there anything else I must do to get working?

Please Help me..

Last edited by Tje; 05-06-2007 at 08:43 AM.
 
Old 05-06-2007, 08:00 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
Isn't DMA an IDE thing? You have SATA, I see.
 
Old 05-07-2007, 02:34 AM   #3
Tje
Member
 
Registered: Dec 2005
Posts: 75

Original Poster
Rep: Reputation: 15
So you would say, no DMA for SATA is normal ?
 
Old 05-07-2007, 08:29 AM   #4
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
Generally recent kernels activate DMA for IDE disks automatically whenever it's possible. If it's turned off then activating it manually mostly won't work.
IDE disks have built-in controllers, thus the need for DMA. The thing on the motherboard called "IDE controller" merely provides IDE interface.
SCSI controllers are real controllers, consequently there is no such thing as DMA for SCSI disks.
I think SATA works like SCSI.
 
Old 05-07-2007, 08:39 AM   #5
Tje
Member
 
Registered: Dec 2005
Posts: 75

Original Poster
Rep: Reputation: 15
So, my effort to activating the DMA is useless?

and then is my "Timing buffered disk reads" normal?

# hdparm -tT /dev/hda
/dev/hda:
Timing cached reads: 4564 MB in 2.00 seconds = 2282.73 MB/sec
Timing buffered disk reads: 4 MB in 3.07 seconds = 1.30 MB/sec
 
Old 05-10-2007, 04:49 AM   #6
Tje
Member
 
Registered: Dec 2005
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson
Generally recent kernels activate DMA for IDE disks automatically whenever it's possible. If it's turned off then activating it manually mostly won't work.
IDE disks have built-in controllers, thus the need for DMA. The thing on the motherboard called "IDE controller" merely provides IDE interface.
SCSI controllers are real controllers, consequently there is no such thing as DMA for SCSI disks.
I think SATA works like SCSI.
Um...how about my /dev/cdrom ? I also can't activate it. My K3b warned me that DMA is not activated.

If you said that, should I ignore that warning?
 
Old 05-10-2007, 05:09 AM   #7
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
Disk read 1.3 MB/s is not normal indeed. I think your kernel is using generic IDE driver for your controller. I'm not familiar with this h/w, is your HDD SATA or not? SATA devices should show up as sdx if kernel is configured properly.
 
Old 05-10-2007, 05:55 AM   #8
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
I have a SATA hard drive, and it does not have a DMA setting. If you're using PATA drives, this page may be of some use. Further down the thread in that link there is a full patch, although given that it was signed off in September last year, it should have made it into recent kernels.
 
Old 05-11-2007, 01:53 AM   #9
Tje
Member
 
Registered: Dec 2005
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson
Disk read 1.3 MB/s is not normal indeed. I think your kernel is using generic IDE driver for your controller. I'm not familiar with this h/w, is your HDD SATA or not? SATA devices should show up as sdx if kernel is configured properly.
nope my hard disk is not SATA, /dev/hda is absolutely correct.
 
Old 05-11-2007, 01:56 AM   #10
Tje
Member
 
Registered: Dec 2005
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Gethyn
I have a SATA hard drive, and it does not have a DMA setting. If you're using PATA drives, this page may be of some use. Further down the thread in that link there is a full patch, although given that it was signed off in September last year, it should have made it into recent kernels.
I have never patch kernel before, could you tell me how to apply that patch please..

The full patch, I guess in this link, right? ( http://www.spinics.net/lists/linux-ide/msg04810.html )

And also, the path of ata_piix.c (in that link is linux-2.6.17-new/drivers/scsi/ata_piix.c ) file is different in kernel 2.6.21.1. In the kernel 2.6.21.1 is in "drivers/ata". Then can this patch apply to this new kernel?

thx

Last edited by Tje; 05-11-2007 at 02:00 AM.
 
Old 05-11-2007, 08:47 AM   #11
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
That's the right page, indeed. I've never tried patching a kernel myself, so I think it would be best if someone more knowledgeable could answer your question about that. At a guess, I'd say it's probably best not to apply the patch to a different kernel version though. As I mentioned earlier, given that that patch was released some months ago, I'd be surprised if it hadn't already made it into the kernel for 2.6.21. Since it's a fairly short patch, it might be worth opening up the unpatched 2.6.21 source file and checking the code, and applying the patch manually if necessary. At least you'll know exactly what's going on then, even if it takes a few extra minutes. Of course, backing up the source file in question before modification would probably be a good idea!
 
Old 05-13-2007, 11:29 PM   #12
Tje
Member
 
Registered: Dec 2005
Posts: 75

Original Poster
Rep: Reputation: 15
Thank you very much. I understood what you mean. Very appreciate your reply and help

Last edited by Tje; 05-13-2007 at 11:34 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 10.1 Intel Ich7 82801g Rev.2 Sound Card Problem locque Linux - Hardware 14 12-21-2006 12:45 AM
No soundcards found - gentoo - Intel Corporation 82801G (ICH7 Family) nones Linux - Laptop and Netbook 1 10-18-2006 07:21 AM
Help With Intel 82801GBM/GHM (ICH7) SATA Storage Controller Drivers wolvorine4424 Linux - Hardware 3 10-15-2006 01:18 PM
DMA activation on ATAPI DVD/CD + RW Valhalla Linux - Hardware 4 06-06-2005 01:30 PM

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

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