82xx PCI setup ioremapping twice
kalle.pokki at iki.fi
Wed Aug 2 17:10:46 EST 2006
In pq2_find_bridges(), there is a call to setup_m8260_indirect_pci(),
which ioremaps the configuration address and data registers. The call
uses the cpm2_immr pointer, which however is already ioremapped by
cpm2_reset(). ioremapping these addresses twice seems to always crash
my board, and I need to e.g.
--- linux-184.108.40.206.orig/arch/ppc/syslib/m82xx_pci.c 2006-08-02
+++ linux-220.127.116.11/arch/ppc/syslib/m82xx_pci.c 2006-08-02
@@ -324,7 +324,7 @@
hose->set_cfg_type = 1;
or use the physical addresses in the original function call.
Should ioremap() code check for these double mappings? There seems to
be some attempts to do that. I remember the PCI initialisation wasn't
a problem some time before with an earlier kernel version, a different
8248 board, and internal memory at 0xf0000000.
My internal memory is at physical address 0xff000000.
Linux kernel version is 18.104.22.168.
The board is a custom 8247.
More information about the Linuxppc-embedded