Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DMA problem
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
Amorphis
n00b
n00b


Joined: 16 Jul 2002
Posts: 30

PostPosted: Wed Jul 17, 2002 11:35 am    Post subject: DMA problem Reply with quote

I have seen some ppl experiencing problems when trying to turn DMA support on using INTEL 845G boards.

When trying to set DMA using hdparm i get:

> HDIO_SET_DMA failed: Operation not permitted

and i also get this error on my dmesg:

> PCI: Device 00:1f.1 not available because of resource collisions
> PCI_IDE: (ide_setup_pci_device:) Could not enable device.

After looking around for a while i found a thread about this problem:

http://lists.insecure.org/linux-kernel/2002/Jun/0044.html

and the patch to solve it :-)

http://lists.insecure.org/linux-kernel/2002/Jun/att-0538/01-andre.patch

Didn't have the opportunity to test it yet, will do as soon as I get at home!
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Jul 17, 2002 11:42 am    Post subject: Reply with quote

Please post the results here when you find out how it works. Also, can you post what kernel flavor you patched it against? (i.e. gentoo-sources or vanilla-sources?)

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
Amorphis
n00b
n00b


Joined: 16 Jul 2002
Posts: 30

PostPosted: Wed Jul 17, 2002 11:46 am    Post subject: Reply with quote

Ok

I'm going to patch it against gentoo-sources. Probbably it will work with any 2.4.19 kernel sources as it's only a matter of adding the board model to the list of supported models. Only 5-6 lines to be added.
Back to top
View user's profile Send private message
Moon
n00b
n00b


Joined: 14 Jul 2002
Posts: 5

PostPosted: Wed Jul 17, 2002 9:01 pm    Post subject: Reply with quote

The patch mentioned by Amorphis seems to require a vanilla-kernel 2.4.18 patched up to 2.4.19-pre9 with ac3 applied. I was not able to make it run with the gentoo-sources.
So the steps required are:
1. emerge vanilla-sources
2. patch these with 2.4.19-pre9
3. apply Alan Cox's third patch for 2.4.19-pre9(=2.4.19-pre9ac3)
4. apply the custom patch posted by Amorphis

Some of these didn't work for me without modifying the Kernelconfig but that maybe caused by my limited knowledge of Kernelpatching in general :)
In the end i got a system with working DMA(Chipset is i845E, Board is ABIT-BD7II-Raid). The Problem seems to effect most of the newer i845 Chipsets(D,G,E etc.).

Summary: at least a little understanding of Kernel-compiling required, some steps are rather tricky

P.S.: Problem is NOT solved in 2.4.19-rc1(even though Changelog mentions i8xx Chipset patches)
Back to top
View user's profile Send private message
Amorphis
n00b
n00b


Joined: 16 Jul 2002
Posts: 30

PostPosted: Wed Jul 17, 2002 10:52 pm    Post subject: Reply with quote

I noticed the patch was not for the gentoo-sources but I was planning on patching the file by hand. Anyway when I got home i realized I had a different problem as my IDE controller is already identified by the kernel (the patch was for a different controller not present in the kernel sources).

Anyway i think this patch can solve some people problems with DMA.
Back to top
View user's profile Send private message
extort
n00b
n00b


Joined: 07 Oct 2002
Posts: 2

PostPosted: Mon Oct 07, 2002 8:19 am    Post subject: Any solution found? Reply with quote

I was wondering if you ever found a solution to the i845G chipset problem with DMA mode and the resource conflict? I've been looking but I can't seem to find anything.

I'd really appreciate it if you would help me! PIO mode is horrible :cry:
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Tue Oct 08, 2002 1:04 am    Post subject: Reply with quote

Maybe this applies.
Back to top
View user's profile Send private message
extort
n00b
n00b


Joined: 07 Oct 2002
Posts: 2

PostPosted: Tue Oct 08, 2002 4:26 am    Post subject: Reply with quote

Amorphis's patch on commenting out the return statement in pci-i386.c seems to fix my Intel i845G problem -- I can now set DMA mode. I modified the file in the gentoo-sources kernel with no other modifications (didnt emerge vanilla-sources or apply any other patches).

Thanks Amorphis, and I suggest anyone else with the problem first try using what he posted :wink:
Back to top
View user's profile Send private message
Darth_Daver
n00b
n00b


Joined: 22 Sep 2002
Posts: 44

PostPosted: Tue Feb 18, 2003 1:25 pm    Post subject: The 2.4.20 kernel fixes this Reply with quote

I have an ASUS P4PE, and I was also getting these errors:

Quote:
HDIO_SET_DMA failed: Operation not permitted


when using hdparm and

Quote:
PCI: Device 00:1f.1 not available because of resource collisions


on boot. I upgraded to the Gentoo Sources 2.4.20-r1 kernel last night. I still get the "resource collisions" message, but DMA now works. I went from 3.2 MB/s to 47 MB/s. No other fixes were required.
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