linux/arch/powerpc/platforms/powernv
Gavin Shan db1266c852 powerpc/powernv: Skip check on PE if necessary
While the device driver or PCI core tries to enable PCI device, the
platform dependent callback "ppc_md.pcibios_enable_device_hook" will
be called to check if there has one associated PE for the PCI device.
If we don't have the associated PE for the PCI device, it's not allowed
to enable the PCI device. Unfortunately, there might have some cases
we have to enable the PCI device (e.g. P2P bridge), but the PEs have
not been created yet.

The patch handles the unfortunate cases. Each PHB (struct pnv_phb)
has one field "initialized" to trace if the PEs have been created
and configured or not. When the PEs are not available, we won't check
the associated PE for the PCI device to be enabled.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Reviewed-by: Ram Pai <linuxram@us.ibm.com>
Reviewed-by: Richard Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2012-09-17 16:35:15 +10:00
..
Kconfig powerpc/powernv: Basic support for OPAL 2011-09-20 16:09:50 +10:00
Makefile powerpc/powernv: PCI support for p7IOC under OPAL v2 2011-11-25 14:53:15 +11:00
opal-nvram.c powerpc/powernv: Add RTC and NVRAM support plus RTAS fallbacks 2011-09-20 16:09:57 +10:00
opal-rtc.c powerpc/powernv: Add RTC and NVRAM support plus RTAS fallbacks 2011-09-20 16:09:57 +10:00
opal-takeover.S powerpc: Merge STK_REG/PARAM/FRAMESIZE 2012-07-10 19:18:03 +10:00
opal-wrappers.S powerpc: Change LOAD_REG_ADDR to use real register names 2012-07-10 19:18:14 +10:00
opal.c powerpc/powernv: Machine check and other system interrupts 2011-09-20 16:10:03 +10:00
pci-ioda.c powerpc/powernv: Skip check on PE if necessary 2012-09-17 16:35:15 +10:00
pci-p5ioc2.c powerpc: Remove all includes of <asm/abs_addr.h> 2012-09-05 15:19:33 +10:00
pci.c powerpc/iommu: Add ppc_md.tce_get() callback for use by VFIO 2012-09-10 14:36:17 +10:00
pci.h powerpc/powernv: Skip check on PE if necessary 2012-09-17 16:35:15 +10:00
powernv.h powerpc/powernv: Add support for p5ioc2 PCI-X and PCIe 2011-09-20 16:10:04 +10:00
setup.c arch/powerpc/platforms/powernv/setup.c: included asm/xics.h twice 2012-02-27 11:33:59 +11:00
smp.c powerpc/powernv: Always go into nap mode when CPU is offline 2012-09-05 16:05:20 +10:00