From: Marek S. <ma...@st...> - 2003-07-27 09:28:25
|
Hej Marek! Dnia 27.07.03, w Twoim li=B6cie znalaz=B3em nast=EApuj=B1cy fragment: > I found where is the source of this problem!!!! This is/was a very long > night ;) > There are (IMHO) 2 ways of fixing this bug: > 1. remove/comment whole code which "reparents" the resources (ugly way) > 2. add some code to apus_pci.c, which will set-up the pci-bridge proper= ly, > that it's won't cause these problems (pretty way) > Actually I don't know how to do the second. New day - new fresh mind. Today morning I found a pretty way to fix this problem.=20 In arch/ppc/platforms/apus_pci.c the resource region with P2 Mem is being allocated two times (so it fails during the second allocation): first tim= e in apus_pcibios_fixup(), second in apus_pcibios_fixup_bus() (this funtion assigns P2 Mem resource to the bus and later other PCI functions try to allocate it). I simply removed (commented out) resource allocation from apus_pcibios_fixup() and now everything work fine without touching the generic pci code. :)) Could I commit this patch, or do You have any questions/advices? I removed the second bug - which bug will be the next? ;) Regards --=20 Marek Szyprowski .. GG:2309080 .. mailto:ma...@am... .. ...... happy AmigaOS, MacOS and Debian/Linux user ........ ........... http://march.home.staszic.waw.pl/ ............ |