Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
activate 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
zaggo
n00b
n00b


Joined: 02 Sep 2002
Posts: 51
Location: Austria

PostPosted: Sat Oct 19, 2002 1:41 pm    Post subject: activate DMA Reply with quote

Hi!

When i do a hdparm -d1 /dev/bla i get an error. I searched the forum and the google.groups but only found the problems with older kernels. I don't know what the problem could be. I've activated DMA in the kernel and the VIA chipset support. It also worked some time ago but I've tried to patch the kernel with v4l2, which failed and had to recompile the kernel and since then it isn't working.

The error msg:
Code:

b-28 root # hdparm -d1 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)
b-28 root # hdparm -d1 /dev/dvd

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

my Kernel .config:
Code:

b-28 root # less /usr/src/linux/.config | grep DMA
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_PCI_WIP is not set
# CONFIG_BLK_DEV_IDEDMA_TIMEOUT is not set
# CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
CONFIG_BLK_DEV_ADMA=y
# CONFIG_HPT34X_AUTODMA is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_DMA_NONPCI is not set
# CONFIG_SCSI_EATA_DMA is not set
b-28 root # less /usr/src/linux/.config | grep VIA
# CONFIG_VIA_NORTHBRIDGE_FIXUP is not set
CONFIG_BLK_DEV_VIA82CXXX=y
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_RHINE_MMIO is not set
CONFIG_AGP_VIA=y
# CONFIG_SOUND_VIA82CXXX is not set
# CONFIG_MIDI_VIA82CXXX is not set


I hope that someone can help me because without activating dma on my dvd drive i can't watch dvds :cry: .

greetings
Manuel
Back to top
View user's profile Send private message
gabberist
n00b
n00b


Joined: 19 Oct 2002
Posts: 8

PostPosted: Sat Oct 19, 2002 5:32 pm    Post subject: Reply with quote

I had the exact same problem with my laptop.

the way i got dma to work was by using the ac series of kernels or the development(using the ac-pre102 ebuild now)
I have a feeling the gentoo sources should work but i never could get dma working with them:(
I'll post my config when i get around my laptop later today maybe that would help to
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20053

PostPosted: Sat Oct 19, 2002 6:42 pm    Post subject: Reply with quote

What kind of drive is /dev/hda? I don't think DVD/CD drives support DMA modes (or at least I've read that hdparm doesn't work on them).
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
ReBirth
n00b
n00b


Joined: 17 Oct 2002
Posts: 8
Location: Hong Kong

PostPosted: Sun Oct 20, 2002 10:18 am    Post subject: Reply with quote

I too have the same problem..

What VIA chipset you using? I am using VIA 8235 chipset. I may try the ac series kernel later and see if it will help.
Back to top
View user's profile Send private message
zaggo
n00b
n00b


Joined: 02 Sep 2002
Posts: 51
Location: Austria

PostPosted: Sun Oct 20, 2002 12:42 pm    Post subject: Reply with quote

kanuslupus wrote:
What kind of drive is /dev/hda? I don't think DVD/CD drives support DMA modes (or at least I've read that hdparm doesn't work on them).


/dev/hda is a harddisk. The strange thing is that it used to work with no problems. Also with the DVD drive.

@ReBirth:
I've got an VT8367 (VIA Apollo KT333).

Are there any others problems known with the ac kernel series (because of the development status,...)?

greetings,
Manuel
Back to top
View user's profile Send private message
TuxFriend
Apprentice
Apprentice


Joined: 14 Aug 2002
Posts: 151

PostPosted: Sun Oct 20, 2002 2:40 pm    Post subject: Reply with quote

kanuslupus wrote:
What kind of drive is /dev/hda? I don't think DVD/CD drives support DMA modes (or at least I've read that hdparm doesn't work on them).


Actually they do, but (at least for me) turning DMA on makes the drive slower.

TuxFriend
Back to top
View user's profile Send private message
zaggo
n00b
n00b


Joined: 02 Sep 2002
Posts: 51
Location: Austria

PostPosted: Mon Oct 21, 2002 6:37 am    Post subject: Reply with quote

gabberist wrote:
I had the exact same problem with my laptop.

the way i got dma to work was by using the ac series of kernels or the development(using the ac-pre102 ebuild now)
I have a feeling the gentoo sources should work but i never could get dma working with them:(
I'll post my config when i get around my laptop later today maybe that would help to


I just tried the ac-sources and it works great. DMA is working again. :)
I just have one more question: What's the difference between the different kernel-sources. Is there a good description somewhere? Would be interesting.

greetings
Manuel
Back to top
View user's profile Send private message
ReBirth
n00b
n00b


Joined: 17 Oct 2002
Posts: 8
Location: Hong Kong

PostPosted: Mon Oct 21, 2002 7:33 am    Post subject: Reply with quote

yeah. I tried the ac sources kernel and DMA is working again now.

I guess the ac sources isn't as stable as the other kernels. That's fine with me cause I only use it at home for my workstation.
Back to top
View user's profile Send private message
Fmangeant
n00b
n00b


Joined: 13 Apr 2002
Posts: 30
Location: France

PostPosted: Mon Oct 21, 2002 10:54 am    Post subject: Reply with quote

Hi

I had the same problem on a laptop (Pentium IV + ALI M15x3 chipset).
The only kernel allowing DMA on the hard disk (FUJITSU MHR2020AT, 20 Gb) is the 2.4.20-pre5-ac4 + IDE patch (available here : http://www.linuxdiskcert.org/).

I went from 3 Mb/s to ~ 20 Mb/s...

Regards,
Back to top
View user's profile Send private message
gabberist
n00b
n00b


Joined: 19 Oct 2002
Posts: 8

PostPosted: Tue Oct 22, 2002 1:38 am    Post subject: Reply with quote

good to hear it got working as far as the descriptioon of the ac series all i ever found was a long list of what the patches fixed change/added tho i hope the dma issue gets into the vanilla or gentoo sources soon.

with the dma on dvd/cdrom I'm pretty sure that they wont accept hdparm commands unless you have them listed as scsi devices(well its the only way i could figure it out)
to do that I enabled cdrom scsi support , scsi generic support and scsi emulation for atapi ias modules from the kernel.
then stick a hdx=ide-scsi line in grub/lilo and add symlinks from your cd/dvd drive to /dev/srx,/dev/scx or /dev/scsi ..i think the scsi device in /dev depend on the kernel but im not sure
Back to top
View user's profile Send private message
Bosnian[X]
n00b
n00b


Joined: 12 Jul 2002
Posts: 66
Location: Sweden, Malmö

PostPosted: Tue Oct 22, 2002 8:48 am    Post subject: Reply with quote

where did you find AC kernels that enables DMA mode. I have latest VIA8235 as well and can't get dma to work. I tried latest 2.5.x kernel and it workd but Nvidia doesen't support that kernel.

Only thing i found was the patches 2.4.20-pre-something. How do u patch existing kernel. Little guide would be a huge help.

Thanx in advance :)
Back to top
View user's profile Send private message
zaggo
n00b
n00b


Joined: 02 Sep 2002
Posts: 51
Location: Austria

PostPosted: Tue Oct 22, 2002 11:18 am    Post subject: Reply with quote

gabberist wrote:

[snip]
with the dma on dvd/cdrom I'm pretty sure that they wont accept hdparm commands unless you have them listed as scsi devices(well its the only way i could figure it out)
[snap]


That's not true becuause I haven't listed my DVD-drive as SCSI-drive (i've my CD-RW emulated as SCSI) and it accepts hdparm commands. Without DMA for example i'm not realley able to watch dvd movies because they are bucking but when I do a hdparm -d1 /dev/dvd (which is linked to my dvd drive) it works great :D .

Code:

b-28 root # hdparm -d1 /dev/dvd

/dev/dvd:
 setting using_dma to 1 (on)
 using_dma    =  1 (on)



@Bosnian[X]:
The AC-kernel is in the portage tree /sys-kernel/ac-sources. Just emerge the kernel sources and "bake" the new kernel :) . If you need some help doing that just let me know.

Greets,
Manuel
Back to top
View user's profile Send private message
Bosnian[X]
n00b
n00b


Joined: 12 Jul 2002
Posts: 66
Location: Sweden, Malmö

PostPosted: Wed Oct 23, 2002 10:30 am    Post subject: Reply with quote

can i "cd" directly to AC kernel and bake the kernel or should i: mv linux linux-2.4.19-pre9 and than mv AC kernel to linux???
Back to top
View user's profile Send private message
zaggo
n00b
n00b


Joined: 02 Sep 2002
Posts: 51
Location: Austria

PostPosted: Fri Oct 25, 2002 8:48 am    Post subject: Reply with quote

Hi!

Bosnian[X] wrote:
can i "cd" directly to AC kernel and bake the kernel or should i: mv linux linux-2.4.19-pre9 and than mv AC kernel to linux???


I've just emerged ac-sources and got a directory /usr/src/linux-2.4.20-pre10-ac2. In addition you should have a link named /usr/src/linux which is linked to your actual kernel (e.g.: linux -> linux-2.4.19-gentoo-r9). Now you have to make a new link to linux-2.4.20-pre10-ac2 with ln -s. Then change in the /usr/src/linux directory and make a make menuconfig.

Ciao,
Manuel
Back to top
View user's profile Send private message
phong
Bodhisattva
Bodhisattva


Joined: 16 Jul 2002
Posts: 778
Location: Michigan - 15 & Ryan

PostPosted: Fri Oct 25, 2002 2:48 pm    Post subject: Reply with quote

A friend of mine had this problem. Apparently it's a conflict between the 2.4.19 kernel and certain chipsets. The bug did not exist in 2.4.18 and since it's fixed in the AC kernel tree, it will likely be fixed in 2.4.20.
_________________
"An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer
Back to top
View user's profile Send private message
Bosnian[X]
n00b
n00b


Joined: 12 Jul 2002
Posts: 66
Location: Sweden, Malmö

PostPosted: Sat Oct 26, 2002 9:58 am    Post subject: Reply with quote

It's working now....i had to re-install my system because i changed my cflags to suit my AMD XP and now with the AC kernel-sources everything works perfect and faster than damn "M$ XP".
Back to top
View user's profile Send private message
Reformist
Guru
Guru


Joined: 06 Oct 2002
Posts: 323

PostPosted: Tue Jan 07, 2003 9:23 am    Post subject: Reply with quote

I had a similar problem, same error message. The problem was that I did not check the box in the kernel config for my particular chipset's ide controller support, although I had DMA enabled. Upon rebuilding that kernel (and solving a lot of othe trouble) my cache speed went from 2.5MB to 36MB.

Woohoo!! Hopefully I'll get some better loading speeds.
_________________
-Phil Crosby
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