kernel-fxtec-pro1x/arch/powerpc
Gavin Shan cf1a4cf875 powerpc/pci: Save P2P bridge resource if possible
When PCI probe flag PCI_REASSIGN_ALL_RSRC has been passed into PCI
core, it's hoped that all resources to be reassigned by PCI core.
As to particular P2P (PCI-to-PCI) bridge, the size of the corresponding
BAR (I/O, MMIO, prefetchable MMIO) is calculated by the resources
required by the PCI devices behind the P2P bridge. That means that
the information like start/end address retrieved from the hardware
registers of the P2P bridge is meainingless in the case. However,
we still count that in and the BARs might have been configured by
firmware with non-zero size. That leads to space waste.

The patch explicitly sets the size of P2P bridge BARs to zero in
case that resource reassignment is expected with PCI probe flag
PCI_REASSIGN_ALL_RSRC. In the result, it will save overall resource
required by the system without waste.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2012-09-07 10:45:30 +10:00
..
boot powerpc/p4080ds: dts - add usb controller version info and port0 2012-08-10 07:47:02 -05:00
configs Revert "powerpc: Update g5_defconfig" 2012-08-24 20:55:55 +10:00
include/asm Merge branch 'merge' into next 2012-09-07 09:48:59 +10:00
kernel powerpc/pci: Save P2P bridge resource if possible 2012-09-07 10:45:30 +10:00
kvm Merge branch 'merge' into next 2012-09-07 09:48:59 +10:00
lib powerpc: Don't use __put_user() in patch_instruction 2012-09-05 16:05:23 +10:00
math-emu powerpc/math_emu/efp: Look for errata handler when type mismatches 2011-10-06 23:36:47 -05:00
mm Merge branch 'merge' into next 2012-09-07 09:48:59 +10:00
net powerpc: Start using ___PPC_RA/B/S/T where necessary 2012-07-10 19:18:25 +10:00
oprofile powerpc: Rename 64-bit PVR constants to PVR_foo 2012-09-05 15:19:35 +10:00
perf Merge branch 'merge' into next 2012-09-07 09:48:59 +10:00
platforms Merge branch 'merge' into next 2012-09-07 09:48:59 +10:00
sysdev Merge branch 'merge' into next 2012-09-07 09:48:59 +10:00
xmon powerpc: Fixup whitespace in xmon 2012-08-24 20:26:03 +10:00
Kconfig powerpc: Uprobes port to powerpc 2012-09-05 15:35:19 +10:00
Kconfig.debug powerpc: IOMMU fault injection 2012-07-10 19:18:59 +10:00
Makefile crypto: nx - move nx build to driver/crypto Makefile 2012-06-27 14:42:00 +08:00
relocs_check.pl powerpc: Process dynamic relocations for kernel 2011-12-20 10:21:08 -05:00