Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No DMA on disks (Asus K8VSE Deluxe motherboard)
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
MFA
n00b
n00b


Joined: 18 Nov 2003
Posts: 29
Location: Denmark - Zealand - Lejre

PostPosted: Tue Apr 12, 2005 5:39 pm    Post subject: No DMA on disks (Asus K8VSE Deluxe motherboard) Reply with quote

Hi,

The DMA on my disk(s) aren't running. The fact that DMA isn't enabled is obvius when you look at the poor preformance, and because reiserfs.fsck warns me that DMA is disabled..

So I tried doing a `hdparm -d1 /dev/hdb` (yes, /dev/hdb _is_ my main disk), but I get a

--
hdparm -d1 /dev/hdb

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

And I'm pretty sure DMA is enabled in the kernel (Gentoo-2.6.10), because a quick grep thourgh the config file of the kernel gives::

--
cat /usr/src/linux/.config|grep -i dma
CONFIG_GENERIC_ISA_DMA=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_IDEDMA_FORCED=y
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
--

So now I'm lost... a chance me be that the chipset is unsupported, but before a kernel-upgrade DMA worked, so now I just don't know which module to load in order to regain DMA on my disk? - anyone know?

Morten Fangel
_________________
Morten Fangel - Fangel
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Apr 12, 2005 5:41 pm    Post subject: Reply with quote

Well, which chipset are you using?
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
MFA
n00b
n00b


Joined: 18 Nov 2003
Posts: 29
Location: Denmark - Zealand - Lejre

PostPosted: Tue Apr 12, 2005 5:43 pm    Post subject: Reply with quote

Hmm, not sure which one of them is for the disks, but the following two:

VIA K8T800
VIA VT8237
_________________
Morten Fangel - Fangel
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 39013
Location: 56N 3W

PostPosted: Tue Apr 12, 2005 5:52 pm    Post subject: Reply with quote

MFA,

Probably neither of them.

Can you do a lspci and post the line(s) with IDE in please?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Apr 12, 2005 5:53 pm    Post subject: Reply with quote

VT8237 is the south bridge, which includes the IDE controller. Disable the generic IDE stuff (Generic/default IDE chipset support and Generic PCI IDE Chipset Support) since it slows things down, and enable CONFIG_BLK_DEV_VIA82CXXX (VIA82CXXX chipset support ). Do not compile it as a module. Build it into the kernel.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin


Last edited by moocha on Tue Apr 12, 2005 5:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
MFA
n00b
n00b


Joined: 18 Nov 2003
Posts: 29
Location: Denmark - Zealand - Lejre

PostPosted: Tue Apr 12, 2005 5:54 pm    Post subject: Reply with quote

Well, I don't know if it actually is one of them, but i did a grep for "via" in the kernel-config, and found out that "CONFIG_BLK_DEV_VIA82CXXX" wasn't set, so I simply enabled it (with [y]) and now it works...

great
_________________
Morten Fangel - Fangel
Back to top
View user's profile Send private message
MFA
n00b
n00b


Joined: 18 Nov 2003
Posts: 29
Location: Denmark - Zealand - Lejre

PostPosted: Tue Apr 12, 2005 5:57 pm    Post subject: Reply with quote

moocha -> yep, you were right, the VIA module (well, not not as a module, but still) did the trick... I might try out the disabling of the Generic IDE one day, but for now, this is great... a rough test (can't remember the original measures)

Before:
Timing cached reads: 2316 MB in 2.00 seconds ~= 1050 MB/sec
Timing buffered disk reads: 120 MB in 3.01 seconds ~= 6.5 MB/sec

After:
Timing cached reads: 2316 MB in 2.00 seconds = 1155.86 MB/sec
Timing buffered disk reads: 120 MB in 3.01 seconds = 39.90 MB/sec

So a nice improvement.. ;)
_________________
Morten Fangel - Fangel
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