summaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/fsl_pci.h
diff options
context:
space:
mode:
authorVarun Sethi <Varun.Sethi@freescale.com>2013-05-03 20:08:50 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-05-07 21:32:51 (GMT)
commita0c1ad437f79ce8833333cbc422c884db9707bf0 (patch)
tree6a00c4c100314ad9d1acfcfa342705f331b44212 /arch/powerpc/sysdev/fsl_pci.h
parentd20686edbd934e76bab1787ca584691fbd1354c7 (diff)
downloadlinux-fsl-qoriq-a0c1ad437f79ce8833333cbc422c884db9707bf0.tar.xz
Check of qemu emulated PCI controller.
While implementing direct device assignment for linux guest using identity mapped memory (1:1 guest to host physical mapping), we hit a case where guest end of memory is not a power of two and thus is not completely mapped by the PCI controller inbound window. For a similar condition if the PCI controller supports PCI express capability the fsl_pci driver allows for over commit of inbound memory window. In this patch we introduce a check to see if the PCI controller is a qemu emulated controller. If it's an emulated controller we allow the inbound memory over commit in the fsl_pci driver. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I6dd7e5fb960a2ec068dd4f01c51906a7a1dea1f7 Reviewed-on: http://git.am.freescale.net:8181/2357 Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'arch/powerpc/sysdev/fsl_pci.h')
-rw-r--r--arch/powerpc/sysdev/fsl_pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.h b/arch/powerpc/sysdev/fsl_pci.h
index a288369..c95738b 100644
--- a/arch/powerpc/sysdev/fsl_pci.h
+++ b/arch/powerpc/sysdev/fsl_pci.h
@@ -150,6 +150,8 @@ u64 fsl_pci_immrbar_base(struct pci_controller *hose);
extern struct device_node *fsl_pci_primary;
+extern unsigned int qemu_e500_pci;
+
#ifdef CONFIG_PCI
void fsl_pci_assign_primary(void);
#else