Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with hdparm - no dma
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ksn03
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2004
Posts: 77

PostPosted: Wed Apr 07, 2004 9:43 pm    Post subject: Problems with hdparm - no dma Reply with quote

Hi when I boot up with the live CD, dma is activated, but when I boot up normally I get a message that dma is not on...If I try to activate it with hdparm, it is not possiblem...I have installed 2.6.4 kernel and my chipset is VIA KT333...I cant find this in the kernel...Where can I find settings for this in the kernel!!!

Bye
Back to top
View user's profile Send private message
BoZ
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 114
Location: The Netherlands

PostPosted: Wed Apr 07, 2004 9:46 pm    Post subject: Reply with quote

In the IDE/ATA section the last options are for chipsets, pick yours, recompile and reboot. :)

edit: I checked it quick, it can be found here: Device Drivers --> ATA/ATAPI/MFM/RLL support
Back to top
View user's profile Send private message
pathose
Retired Dev
Retired Dev


Joined: 08 Nov 2003
Posts: 35
Location: Ohio, USA

PostPosted: Thu Apr 08, 2004 2:18 am    Post subject: Reply with quote

I have the same problem. Things like fsck.reiserfs give warnings about dma not being enabled. # hdparm -i /dev/hda gives:
Code:
root@zidane:~# hdparm -i /dev/hda
 
/dev/hda:
 
 Model=Maxtor 4D040H2, FwRev=DAH017K0, SerialNo=D27YDXNE
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
 BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=80043264
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-6 T13 1410D revision 0:
 
 * signifies the current active mode


and yet # hdparm -d1 /dev/hda gives:
Code:
root@zidane:~# hdparm -d1 /dev/hda
 
/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)
Back to top
View user's profile Send private message
pandaxiongmao
Guru
Guru


Joined: 29 Sep 2003
Posts: 478
Location: USA

PostPosted: Sun Apr 11, 2004 5:32 am    Post subject: Reply with quote

Are you sure you already enabled the correct IDE chipset support inside the kernel?
_________________
CPU: Intel Core 2 Duo
GPU: nVidia GeForce 9800 GT
MB: Asus P5N-E SLI
Back to top
View user's profile Send private message
pathose
Retired Dev
Retired Dev


Joined: 08 Nov 2003
Posts: 35
Location: Ohio, USA

PostPosted: Wed Apr 14, 2004 3:54 pm    Post subject: Reply with quote

Quote:
Are you sure you already enabled the correct IDE chipset support inside the kernel?

AFAIK, it's been enabled. I'll double-check though.
Back to top
View user's profile Send private message
Phk
Guru
Guru


Joined: 02 Feb 2004
Posts: 428
Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time

PostPosted: Wed Apr 28, 2004 1:47 pm    Post subject: Reply with quote

pathose wrote:

Code:
root@zidane:~# hdparm -i /dev/hda
 
/dev/hda:
 
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5


and yet

Code:
root@zidane:~# hdparm -d1 /dev/hda
 
/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)


Exactly the same problem here... Now compiling kernel with ALL chipsets support :D:D:D (hope to get different results...)

However, other things do not work.... I enabled 32-bit support, and the "Keep settings" option... But only BEFORE REBOOT i get:

Code:
Darkness root # hdparm -c /dev/hda
 
/dev/hda:
 IO_support   =  1 (32-bit)


... After reboot it turns back to 16-bit.... Damn... :(


Can anyone please release the secret of IDE drives and HDPARM?! :D
_________________
"# cat /dev/urandom >> /tmp/life"
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu Apr 29, 2004 1:16 am    Post subject: Reply with quote

Phk wrote:
Can anyone please release the secret of IDE drives and HDPARM?! :D

The secret is :
Hdparm is not needed if you configure your kernel correctly.

Here is an example :
The computer I am using right now has an SiS chipset (according to lspci)
Code:
# lspci
...
0000:00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0)
...

So I want to include this driver in my kernel.
Code:
Device Drivers  --->
   ATA/ATAPI/MFM/RLL support  --->
      <*>         SiS5513 chipset support

See, it works.
Code:
# hdparm /dev/hda /dev/hdc
 
/dev/hda:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 65535/16/63, sectors = 120103200, start = 0
 
/dev/hdc:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 65535/16/63, sectors = 120103200, start = 0

Code:
# hdparm -tT /dev/hda /dev/hdc /dev/md0
 
/dev/hda:
 Timing buffer-cache reads:   1060 MB in  2.00 seconds = 529.29 MB/sec
 Timing buffered disk reads:  134 MB in  3.01 seconds =  44.55 MB/sec
 
/dev/hdc:
 Timing buffer-cache reads:   1056 MB in  2.00 seconds = 527.29 MB/sec
 Timing buffered disk reads:  134 MB in  3.04 seconds =  44.13 MB/sec
 
/dev/md0:
 Timing buffer-cache reads:   1044 MB in  2.00 seconds = 521.30 MB/sec
 Timing buffered disk reads:  260 MB in  3.02 seconds =  86.13 MB/sec
Back to top
View user's profile Send private message
Hara
Apprentice
Apprentice


Joined: 25 Jan 2004
Posts: 162

PostPosted: Thu Apr 29, 2004 1:47 am    Post subject: Reply with quote

Hey,

I had this problem a while ago, if you search, you will find.

However, to put things briefly, you need to make sure you enable:
Device Drivers --> ATA/ATAPI.... --> Generic PCI bus-master --> VIA82cxxx chipset

Because it works on live CD and not on your computer, this means you have a kernel problem.

Also make sure when you build your kernel you:
-mount /boot
-modify grub configuration file if you decided to switch between old and new kernel (I made this mistake and realized the two options pointed to the same old kernel instead of the new one)

This SHOULD solve your problem.

Good Luck
_________________
Hara

(Mandrake->Slackware->LFS(Never Finished)->Gentoo)
Back to top
View user's profile Send private message
Phk
Guru
Guru


Joined: 02 Feb 2004
Posts: 428
Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time

PostPosted: Thu Apr 29, 2004 7:41 am    Post subject: Reply with quote

Quote:
The secret is :
Hdparm is not needed if you configure your kernel correctly.



Well, isn't my kernel correctly configured? I've selected the SiS with a |*|...


Quote:
See, it works.
No it doesn't :D I think you didn't fully read my first post! Notice i've done everything (and i've posted it step by step!)

[]'s
_________________
"# cat /dev/urandom >> /tmp/life"
Back to top
View user's profile Send private message
Phk
Guru
Guru


Joined: 02 Feb 2004
Posts: 428
Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time

PostPosted: Thu Apr 29, 2004 7:46 am    Post subject: Reply with quote

cyrillic: SORRY man, i thought i was in another post!!!

Here's what i told you about, please see it:
https://forums.gentoo.org/viewtopic.php?p=1086889

It's the same thing...
_________________
"# cat /dev/urandom >> /tmp/life"
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu Apr 29, 2004 2:24 pm    Post subject: Reply with quote

Phk, I am glad to hear you got it working. :)

I never realized that Generic IDE support would make the drive run slowly like that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum