Port-powerpc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
range of resource of PCI memory for PowerPC
Hi! all,
I know, bebox and prep (and ibmnws?) has resource problem of PCI memory.
We extent memory region at start 0x00000000. However
xf86PciBusAccWindowsFromOS() add to resource-list at 0x80000000.
sys/arch/bebox/bebox/mainbus.c:mainbus_attach() -->
#ifdef PCI_NETBSD_CONFIGURE
ioext = extent_create("pciio", 0x00008000, 0x0000ffff, M_DEVBUF,
NULL, 0, EX_NOWAIT);
memext = extent_create("pcimem", 0x00000000, 0x0fffffff, M_DEVBUF,
NULL, 0, EX_NOWAIT);
pci_configure_bus(genppc_pct, ioext, memext, NULL, 0, CACHELINESIZE);
<-- sys/arch/bebox/bebox/mainbus.c:mainbus_attach()
Then, I have changed like this now.
Index: bsdResource.c
===================================================================
RCS file:
/cvsroot/xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsdResource.c,v
retrieving revision 1.5
diff -u -r1.5 bsdResource.c
--- bsdResource.c 6 Nov 2008 22:07:38 -0000 1.5
+++ bsdResource.c 14 Dec 2008 17:46:52 -0000
@@ -51,7 +51,7 @@
* region 0x40000000-0xbfffffff for DMA but this only matters if
* the bios screws up the pci region mappings.
*/
- RANGE(range, 0x80000000, 0xffffffff, ResExcMemBlock);
+ RANGE(range, 0x00000000, 0xffffffff, ResExcMemBlock);
ret = xf86AddResToList(ret, &range, -1);
RANGE(range, 0x00000000, 0xffffffff, ResExcIoBlock);
We(PReP machines?) set a range different from macppc.
As for '#if defined(bebox) || defined(prep)', it did not effect though
I tried the processing for bebox and prep. Is not macro 'bebox' defined?
Shall we define PCI_MAGIC_MEM_RANGE_{START,END} in param.h, just like
PCI_MAGIC_IO_RANGE?
Have you better idea?
# My bebox works with s3 and mga (and cirrus_alpine). ;-)
# BeBox and BeOS supports those cards.
Thanks,
--
kiyohara
Home |
Main Index |
Thread Index |
Old Index