Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can/How do I get my DMA working?
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
andygodwin
n00b
n00b


Joined: 28 Nov 2003
Posts: 27
Location: Here

PostPosted: Tue Sep 07, 2004 8:24 pm    Post subject: Can/How do I get my DMA working? Reply with quote

OK; I've got really far with getting Gentoo just how I like it (it's taken a while) but one of the things bothering me is: DMA.

My hard drive is, at the moment, just plain slow. I have to forget about even a half-decent level of responsiveness while i'm emerge syncing or unzipping, or while slocate updates.

I know that DMA will improve this, and I know how to turn it on, but it won't go:

Code:

# hdparm -d1 /dev/hda

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


I'm guessing it's because I don't have support for my IDE controller (?). /proc/pci gets me:

Code:

 Bus  0, device  17, function  1:
    IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 6).
      Master Capable.  Latency=64.
      I/O at 0x1100 [0x110f].


So, my question is, how do I get it working? Or do I have to languish in the world of sloooow disks forever?
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


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

PostPosted: Tue Sep 07, 2004 8:33 pm    Post subject: Reply with quote

Since you have a relatively bog-standard VIA VT686 southbridge, this should not pose any great problems.

What does you kernel .config have in the IDE subsection ?
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
andygodwin
n00b
n00b


Joined: 28 Nov 2003
Posts: 27
Location: Here

PostPosted: Tue Sep 07, 2004 8:36 pm    Post subject: Reply with quote

OK, grepping for IDE gets me:

Code:
# cat .config | grep "IDE"
CONFIG_PARIDE=m
CONFIG_PARIDE_PARPORT=y
# Parallel IDE high-level drivers
# CONFIG_PARIDE_PD is not set
# CONFIG_PARIDE_PCD is not set
# CONFIG_PARIDE_PF is not set
# CONFIG_PARIDE_PT is not set
# CONFIG_PARIDE_PG is not set
# Parallel IDE protocol modules
# CONFIG_PARIDE_ATEN is not set
# CONFIG_PARIDE_BPCK is not set
# CONFIG_PARIDE_BPCK6 is not set
# CONFIG_PARIDE_COMM is not set
# CONFIG_PARIDE_DSTR is not set
# CONFIG_PARIDE_FIT2 is not set
# CONFIG_PARIDE_FIT3 is not set
# CONFIG_PARIDE_EPAT is not set
# CONFIG_PARIDE_EPIA is not set
# CONFIG_PARIDE_FRIQ is not set
# CONFIG_PARIDE_FRPW is not set
# CONFIG_PARIDE_KBIC is not set
# CONFIG_PARIDE_KTTI is not set
# CONFIG_PARIDE_ON20 is not set
# CONFIG_PARIDE_ON26 is not set
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
# Please see Documentation/ide.txt for help/info on IDE drives
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
CONFIG_BLK_DEV_IDEFLOPPY=m
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_IDE_TASK_IOCTL is not set
CONFIG_IDE_TASKFILE_IO=y
# IDE chipset support/bugfixes
CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_IDEPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=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_IDE_ARM is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# Old CD-ROM drivers (not SCSI, not IDE)
# CONFIG_CD_NO_IDESCSI is not set
# CONFIG_IEEE1394_VIDEO1394 is not set
CONFIG_VIDEO_DEV=m
# CONFIG_VIDEO_BT848 is not set
# CONFIG_VIDEO_PMS is not set
CONFIG_VIDEO_BWQCAM=m
CONFIG_VIDEO_CQCAM=m
# CONFIG_VIDEO_CPIA is not set
# CONFIG_VIDEO_SAA5246A is not set
# CONFIG_VIDEO_SAA5249 is not set
# CONFIG_VIDEO_STRADIS is not set
# CONFIG_VIDEO_ZORAN is not set
# CONFIG_VIDEO_MEYE is not set
# CONFIG_VIDEO_SAA7134 is not set
# CONFIG_VIDEO_MXB is not set
# CONFIG_VIDEO_DPC is not set
# CONFIG_VIDEO_HEXIUM_ORION is not set
# CONFIG_VIDEO_HEXIUM_GEMINI is not set
# CONFIG_VIDEO_CX88 is not set
# CONFIG_VIDEO_OVCAMCHIP is not set
CONFIG_VIDEO_SELECT=y
CONFIG_FB_TRIDENT=y
# CONFIG_FB_TRIDENT_ACCEL is not set
# CONFIG_SND_TRIDENT is not set
Back to top
View user's profile Send private message
Tsonn
Guru
Guru


Joined: 03 Jun 2004
Posts: 550

PostPosted: Tue Sep 07, 2004 8:38 pm    Post subject: Reply with quote

I think adaptr's along the right lines; you need to enable vt82cxxxx support: CONFIG_BLK_DEV_VIA82CXXX=y.

Googling for 'HDIO_SET_DMA failed: Operation not permitted VT82C586A' finds a few people who've had the same problem.
Back to top
View user's profile Send private message
andygodwin
n00b
n00b


Joined: 28 Nov 2003
Posts: 27
Location: Here

PostPosted: Tue Sep 07, 2004 8:38 pm    Post subject: Reply with quote

Oh, and this is the 2.6.8-gentoo-r3 kernel.
Back to top
View user's profile Send private message
andygodwin
n00b
n00b


Joined: 28 Nov 2003
Posts: 27
Location: Here

PostPosted: Tue Sep 07, 2004 8:39 pm    Post subject: Reply with quote

Ok, I'll try enabling it, and see what happens...

And I tried googling, but not for that... whoops.
Back to top
View user's profile Send private message
andygodwin
n00b
n00b


Joined: 28 Nov 2003
Posts: 27
Location: Here

PostPosted: Tue Sep 07, 2004 8:48 pm    Post subject: Reply with quote

OK, that's solved. Thanks for the quick response.
Back to top
View user's profile Send private message
Tsonn
Guru
Guru


Joined: 03 Jun 2004
Posts: 550

PostPosted: Tue Sep 07, 2004 8:57 pm    Post subject: Reply with quote

Good good :-)

The secret of google, as ever, is knowing what to google for ;-)
Back to top
View user's profile Send private message
curious_bob
l33t
l33t


Joined: 05 Dec 2003
Posts: 636
Location: San Francisco, CA

PostPosted: Fri Sep 10, 2004 5:10 am    Post subject: Reply with quote

What is the command to determine the IDE adapter?
_________________
Play me online, well ya know that I'll beat you. If I ever meet you, I'll CRTL-ALT-DEL you!!!

The Black Vault The Largest Online Military and Government Research Center
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


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

PostPosted: Fri Sep 10, 2004 5:17 am    Post subject: Reply with quote

Erm... lspci ?
or cat /proc/pci, or possibly dmesg | less.

All of these should yield an IDE controller with make and model attached.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
curious_bob
l33t
l33t


Joined: 05 Dec 2003
Posts: 636
Location: San Francisco, CA

PostPosted: Fri Sep 10, 2004 5:38 am    Post subject: Reply with quote

adaptr wrote:
Erm... lspci ?
or cat /proc/pci, or possibly dmesg | less.

All of these should yield an IDE controller with make and model attached.


lspci and cat /proc/pci don't work. "command not found" + "no file or dir"

I don't see a make/model for an ide controller using dmesg
_________________
Play me online, well ya know that I'll beat you. If I ever meet you, I'll CRTL-ALT-DEL you!!!

The Black Vault The Largest Online Military and Government Research Center
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


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

PostPosted: Fri Sep 10, 2004 5:47 am    Post subject: Reply with quote

Excusing your piggy-backing on another thread with nary a "hello, I'm curious" - I'm feeling magnanimous today:

To get lspci do an
Code:
emerge pciutils

and try again...
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
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