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() -->

        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: 
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
Have you better idea?

# My bebox works with s3 and mga (and cirrus_alpine).  ;-)
# BeBox and BeOS supports those cards.

Home | Main Index | Thread Index | Old Index