View previous topic :: View next topic |
Author |
Message |
andygodwin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Nov 2003 Posts: 27 Location: Here
|
Posted: Tue Sep 07, 2004 8:24 pm Post subject: Can/How do I get my DMA working? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Tue Sep 07, 2004 8:33 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
andygodwin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Nov 2003 Posts: 27 Location: Here
|
Posted: Tue Sep 07, 2004 8:36 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Tsonn Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/14681432184140f50140eb0.png)
Joined: 03 Jun 2004 Posts: 550
|
Posted: Tue Sep 07, 2004 8:38 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
andygodwin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Nov 2003 Posts: 27 Location: Here
|
Posted: Tue Sep 07, 2004 8:38 pm Post subject: |
|
|
Oh, and this is the 2.6.8-gentoo-r3 kernel. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
andygodwin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Nov 2003 Posts: 27 Location: Here
|
Posted: Tue Sep 07, 2004 8:39 pm Post subject: |
|
|
Ok, I'll try enabling it, and see what happens...
And I tried googling, but not for that... whoops. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
andygodwin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Nov 2003 Posts: 27 Location: Here
|
Posted: Tue Sep 07, 2004 8:48 pm Post subject: |
|
|
OK, that's solved. Thanks for the quick response. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Tsonn Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/14681432184140f50140eb0.png)
Joined: 03 Jun 2004 Posts: 550
|
Posted: Tue Sep 07, 2004 8:57 pm Post subject: |
|
|
Good good
The secret of google, as ever, is knowing what to google for ![Wink ;-)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
curious_bob l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/14879964763fd231f21aec1.gif)
Joined: 05 Dec 2003 Posts: 636 Location: San Francisco, CA
|
Posted: Fri Sep 10, 2004 5:10 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Sep 10, 2004 5:17 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
curious_bob l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/14879964763fd231f21aec1.gif)
Joined: 05 Dec 2003 Posts: 636 Location: San Francisco, CA
|
Posted: Fri Sep 10, 2004 5:38 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Sep 10, 2004 5:47 am Post subject: |
|
|
Excusing your piggy-backing on another thread with nary a "hello, I'm curious" - I'm feeling magnanimous today:
To get lspci do an
and try again... _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|