Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
enableing udma mode 6 (133)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
fobban
n00b
n00b


Joined: 08 Nov 2003
Posts: 13

PostPosted: Fri Nov 14, 2003 1:23 pm    Post subject: enableing udma mode 6 (133) Reply with quote

Hello. I've been searching the forum for solutions but not found any that tells me how to enable udma mode 6, only how to enable dma. is that the same?

hdparm /dev/hda
Quote:
multcount = 0 (off)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 24792/255/63, sectors = 398297088, start = 0


hdparm -i /dev/hda
Quote:
Model=Maxtor 6Y200P0, FwRev=YAR41BW0, SerialNo=Y6165WPE
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
BuffType=DualPortCache, BuffSize=7936kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
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 *udma6
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: (null):

* signifies the current active mode


since the drive supports udma mode 6 i would like it to use it too :) and since i'm completely new on this i have no clue on how to... i have read the manual for hdparm but that doesn't mek me much smarter :|

so if anyone could help me out i would be more than pleased.
Back to top
View user's profile Send private message
fobban
n00b
n00b


Joined: 08 Nov 2003
Posts: 13

PostPosted: Fri Nov 14, 2003 1:46 pm    Post subject: Reply with quote

i tried to enable dma now: hdparm -d1 -m16 /dev/hda
the m16 stuff worked but not enableing dma:
Quote:
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
(x)
n00b
n00b


Joined: 04 Nov 2003
Posts: 11
Location: Poland

PostPosted: Fri Nov 14, 2003 1:46 pm    Post subject: Reply with quote

You can do it using hdparm's option -X (details -> man hdparm).

Try this:
hdparm -d 1 -X udma6 /dev/hda
_________________
Sorry for my bad english...
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Fri Nov 14, 2003 1:49 pm    Post subject: Reply with quote

Ummmmm... unless you copied that from an example or somebody else's machine, you already have udma2 enabled on that drive. See the star next to udma6? ;-)
Back to top
View user's profile Send private message
fobban
n00b
n00b


Joined: 08 Nov 2003
Posts: 13

PostPosted: Fri Nov 14, 2003 1:56 pm    Post subject: Reply with quote

the info is from my computer :)

i tried: hdparm -d 1 -X udma 6 /dev/hda and got
Quote:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
setting xfermode to 70 (UltraDMA mode6)
using_dma = 0 (off)


Im also using ASUS A7V600 (VIA KT600 chipset). im not using sata, but udma. well want too :D
have used the gentoo-sources and genkernel (didnt compile the kernel my own).

ps. of course i do everything as root, but in X (gnome). could that be the prob?
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Fri Nov 14, 2003 10:49 pm    Post subject: Reply with quote

I don't think X is the problem... I didn't notice that your "hdparm /dev/hda" had using_dma=0. That seems odd, because "hdparm -i" looks like it's telling you that you're using udma6. You should have a /proc/ide/via if kernel support for the VIA controller is set up correctly (I do on 2.6, at least). Is there anything helpful in there? It may be that KT600 DMA isn't recognized by current gentoo-sources, or that genkernel didn't enable the option for it correctly.
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Fri Nov 14, 2003 11:00 pm    Post subject: Re: enableing udma mode 6 (133) Reply with quote

fobban wrote:
Hello. I've been searching the forum for solutions but not found any that tells me how to enable udma mode 6, only how to enable dma. is that the same?

hdparm /dev/hda
Quote:
multcount = 0 (off)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 24792/255/63, sectors = 398297088, start = 0


hdparm -i /dev/hda
Quote:
Model=Maxtor 6Y200P0, FwRev=YAR41BW0, SerialNo=Y6165WPE
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
BuffType=DualPortCache, BuffSize=7936kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
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 *udma6
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: (null):

* signifies the current active mode


since the drive supports udma mode 6 i would like it to use it too :) and since i'm completely new on this i have no clue on how to... i have read the manual for hdparm but that doesn't mek me much smarter :|

so if anyone could help me out i would be more than pleased.


according to your output of hdparm -i /dev/hda you are already using UDMA6

Quote:
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
* signifies the current active mode

_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Fri Nov 14, 2003 11:02 pm    Post subject: Reply with quote

and you can't use dma atm probably because you the kernel doesn't have the proper driver for your ide controller.

make sure you have VIA IDE built in directly into your kernel, as well as generic dma support, and make sure you have "DMA for hdd" turned on.
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
fobban
n00b
n00b


Joined: 08 Nov 2003
Posts: 13

PostPosted: Sat Nov 15, 2003 9:17 am    Post subject: Reply with quote

thanks for all the replies. i had a long night last night building kernels :)
after X builds with the gentoo-kernel with no luck i tried the vanilla-sources , and wohoo. works like a charm now :)

so diskwriting changed from ~4,5 MB/s to ~55 MB/s :)

the weird thing is that when i booted from the livecd everything worked just fine, and gentoo-sources is nearly identical to the livecd-kernel?

anyhow, problem fixed. and tnx for all support
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Sat Nov 15, 2003 11:12 am    Post subject: Reply with quote

no - gentoo kernel and livecd are totally different ;)

but well done on getting it working :)
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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