powerpc/fsl: Setup PCI inbound window based on actual amount of memory
authorKumar Gala <galak@kernel.crashing.org>
Fri, 8 May 2009 20:05:23 +0000 (15:05 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 19 May 2009 05:50:44 +0000 (00:50 -0500)
commit54c181935d2a2d46a1b2f00cbb25acc35e4f5ee2
treebc2dfbf4f9199d8735fcca96c5d3cb2c6aea56cb
parent01af9507ff36578dad89b1cc88ff37ac18e719cb
powerpc/fsl: Setup PCI inbound window based on actual amount of memory

Previouslly we just always set the inbound window to 2G.  This was
broken for systems with >2G.  If a system has >=4G we will need
SWIOTLB support to handle that case.

We now allocate PCICSRBAR/PEXCSRBAR right below the lowest PCI outbound
address for MMIO or the 4G boundary (if the lowest PCI address is above
4G).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_pci.c
arch/powerpc/sysdev/fsl_pci.h