LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-28-2005, 10:40 PM   #1
noelcantona
LQ Newbie
 
Registered: Jun 2003
Posts: 23

Rep: Reputation: 15
Problem enabling DMA on hda (RH9)


I am too lazy to recompile my kernel, so I tried the command below:

hdparm -c 3 -d 1 -m 16 -A1 /dev/hda

And I get the message below:

/dev/hda:
setting 32-bit IO_support flag to 3
setting multcount to 16
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
setting drive read-lookahead to 1 (on)
multcount = 16 (on)
IO_support = 3 (32-bit w/sync)
using_dma = 0 (off)

Next, I do a hdparm -tT and these are the results:

Timing buffer-cache reads: 128MB in 0.36=355.56MB/sec

Timing buffered disk reads: 64MB in 15.48 seconds=4.13MB/sec

Is this good enough? I think it would be lots faster if dma is enabled or after kernel recompilation.

Please advice.

cheers,

P/S: Level 5, root
 
Old 01-29-2005, 02:24 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Quote:
Timing buffered disk reads: 64MB in 15.48 seconds=4.13MB/sec
this could be alot better.......you need to enable DMA in the kernel, to get the performance you want.........
 
Old 01-29-2005, 05:29 AM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
looks like your specific chipset support was not enabled in the kernel
 
Old 01-30-2005, 07:50 AM   #4
noelcantona
LQ Newbie
 
Registered: Jun 2003
Posts: 23

Original Poster
Rep: Reputation: 15
Correct. I did a `lspci` and my hardisk was not recognised.

Thanks a lot.

cheers,
 
Old 02-01-2005, 05:45 AM   #5
noelcantona
LQ Newbie
 
Registered: Jun 2003
Posts: 23

Original Poster
Rep: Reputation: 15
Well guys, this is my latest updates:

I download kernel-2.4.20-30.9.src.rpm,

1.boot up with `linux rescue`
2.`chroot /mnt/sysimage/`
3.rpmbuild --rebuild *.rpm
4.rpm -Uvh /usr/src/redhat/BUILD/*.rpm

Next thing, I boot up with the kernel upgrades to level 5,

1.hdparm -d1 /dev/hda
2.hdparm -tT /dev/hda

Results:
Timing buffer-cache reads: 304.76MB/sec
Timing buffer disk reads: 25.00MB/sec

------------------------------------------------
But my chipset still not correctly installed, this is my lspci:

00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 04)
00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge (rev 04)
00:1d.0 USB Controller: Intel Corp. 82801DB USB (Hub #1) (rev 03)
00:1d.1 USB Controller: Intel Corp. 82801DB USB (Hub #2) (rev 03)
00:1d.2 USB Controller: Intel Corp. 82801DB USB (Hub #3) (rev 03)
00:1d.7 USB Controller: Intel Corp. 82801DB USB EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 83)
00:1f.0 ISA bridge: Intel Corp.: Unknown device 24cc (rev 03)
00:1f.1 IDE interface: Intel Corp.: Unknown device 24ca (rev 03)
00:1f.3 SMBus: Intel Corp. 82801DB SMBus (rev 03)
00:1f.5 Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio (rev 03)
00:1f.6 Modem: Intel Corp. 82801DB AC'97 Modem (rev 03)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY
02:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
02:08.0 Ethernet controller: Intel Corp. 82801BD PRO/100 VE (MOB) Ethernet Controller (rev 83)
-------------------------------------------------------

cheers,

P/S: Now my modem fails to work, and some problem with the soundcard as well. :-(
 
Old 02-01-2005, 05:49 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
go to the kernel source directory, do "make menuconfig" or "make xconfig", look under the ide section for the listing of specific chipsets and see if yours is listed. it will have to be built directly into the kernel (not a module unless your using an initrd)
 
Old 07-10-2005, 06:14 AM   #7
niko_zhang
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
hi

HI,

My harddisk is from maxtor. I can't select the tap from "make xconfig"

Please help me

thanks.

niko
 
Old 07-10-2005, 03:38 PM   #8
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
just do lspci look under ide for chipset manufacturer. now when you recompile kernel select your ide chipset driver under ata ide settings
 
Old 07-11-2005, 06:35 AM   #9
niko_zhang
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
HI

My os is redhat 8.0. I do like this:
1. cd /usr/src
2. make xconfig
3. setting(But I can't set the maxtor.., it is gray)
4. make dep
5. make
6. make modules_install
7. make install
8. reboot!

Is it right?

Please help me!!

thanks.

niko
 
  


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
Enabling DMA on my /dev/hda Riddick Slackware 11 12-13-2005 07:28 PM
problem enabling dma matrixon Linux - Hardware 2 04-30-2005 12:50 AM
hda DMA error turi Linux - Hardware 2 07-06-2004 09:38 AM
RH9 enabling DMA for DVD/CD/CDRW combo filkacik Linux - Software 0 10-03-2003 02:57 PM
Enabling DMA bizzikid Linux - Newbie 4 08-06-2003 05:56 AM


All times are GMT -5. The time now is 11:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration