Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dma
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
ponzio
n00b
n00b


Joined: 09 Mar 2005
Posts: 41

PostPosted: Wed Jun 08, 2005 1:52 pm    Post subject: dma Reply with quote

i'm trying to activate dma for my disk but
Code:
ponzio # hdparm -d1 /dev/hdb


/dev/hdb:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)

the module for my chipset
Code:
0000:00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)

is already loaded
Code:
ponzio # lsmod
Module                  Size  Used by
tun                     7424  0
via82cxxx              11804  0 [permanent]
snd_via82xx            23300  3
fglrx                 229596  9
sk98lin               165096  1

where' the trick?
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Jun 08, 2005 1:57 pm    Post subject: Reply with quote

Does the disk support DMA ?
Code:
hdparm -i /dev/hdb

Have you enabled all the relevant DMA settings in the kernel config ?
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
ponzio
n00b
n00b


Joined: 09 Mar 2005
Posts: 41

PostPosted: Wed Jun 08, 2005 6:41 pm    Post subject: Reply with quote

adaptr wrote:
Does the disk support DMA ?

Code:
ponzio # hdparm -i /dev/hdb

/dev/hdb:

 Model=Maxtor 6Y120L0, FwRev=YAR41BW0, SerialNo=Y3NKD7VE
 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=240121728
 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


adaptr wrote:
Have you enabled all the relevant DMA settings in the kernel config ?


Code:
ponzio root # grep DMA /usr/src/linux/.config
CONFIG_GENERIC_ISA_DMA=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y


I think it's ok, or not?
thanks for your attention.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Jun 09, 2005 12:31 pm    Post subject: Reply with quote

That's Multiword DMA, not UltraDMA.
Check your BIOS settings.

Or else read the output of dmesg from the LiveCD very closely for any clues.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
jvlik
n00b
n00b


Joined: 22 Dec 2004
Posts: 35

PostPosted: Fri Jun 17, 2005 9:03 am    Post subject: Reply with quote

I've the same disk.
It works fine until UDMA5 not if Bios is set to Auto or the UDMA6 option is chosen manually.
Code:
/dev/hdb:

 Model=Maxtor 6Y120L0, FwRev=YAR41BW0, SerialNo=Y36G1ZWE
 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=240121728
 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

If I put UDMA6 the bootloader isn't able to start and the ide0 is reset when the disck is mounted.
Code:
# grep DMA /usr/src/linux/.config
CONFIG_GENERIC_ISA_DMA=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_IDEDMA_PCI_WIP is not set
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_DMA_NONPCI is not set
CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
# CONFIG_IEEE1394_SBP2_PHYS_DMA is not set

Bye
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