|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 06/11] x86/PCI: Enable scanning of all pci functions
From: Alex Nixon <alex.nixon@xxxxxxxxxx>
Impact: prep for pcifront
Xen may want to enable scanning of all pci functions - if for example
the device at function 0 is not passed through to the guest, but the
device at function 1 is.
Signed-off-by: Alex Nixon <alex.nixon@xxxxxxxxxx>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
Reviewed-by: "H. Peter Anvin" <hpa@xxxxxxxxx>
---
arch/x86/include/asm/pci.h | 8 +++++++-
arch/x86/pci/common.c | 1 +
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/arch/x86/include/asm/pci.h b/arch/x86/include/asm/pci.h
index b51a1e8..092706e 100644
--- a/arch/x86/include/asm/pci.h
+++ b/arch/x86/include/asm/pci.h
@@ -21,6 +21,7 @@ struct pci_sysdata {
extern int pci_routeirq;
extern int noioapicquirk;
extern int noioapicreroute;
+extern int pci_scan_all_fns;
/* scan a bus after allocating a pci_sysdata for it */
extern struct pci_bus *pci_scan_bus_on_node(int busno, struct pci_ops *ops,
@@ -48,7 +49,11 @@ extern unsigned int pcibios_assign_all_busses(void);
#else
#define pcibios_assign_all_busses() 0
#endif
-#define pcibios_scan_all_fns(a, b) 0
+
+static inline int pcibios_scan_all_fns(struct pci_bus *bus, int devfn)
+{
+ return pci_scan_all_fns;
+}
extern unsigned long pci_mem_start;
#define PCIBIOS_MIN_IO 0x1000
@@ -130,6 +135,7 @@ extern void pci_iommu_alloc(void);
/* generic pci stuff */
#include <asm-generic/pci.h>
+#undef pcibios_scan_all_fns
#ifdef CONFIG_NUMA
/* Returns the node based on pci bus */
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c
index 6e736e2..171accb 100644
--- a/arch/x86/pci/common.c
+++ b/arch/x86/pci/common.c
@@ -22,6 +22,7 @@ unsigned int pci_probe = PCI_PROBE_BIOS | PCI_PROBE_CONF1 |
PCI_PROBE_CONF2 |
unsigned int pci_early_dump_regs;
static int pci_bf_sort;
int pci_routeirq;
+int pci_scan_all_fns = 0;
int noioapicquirk;
#ifdef CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS
int noioapicreroute = 0;
--
1.6.0.6
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [GIT PULL] xen: dom0 support for PCI access, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 05/11] x86/PCI: Clean up pci_cache_line_size, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 04/11] xen: Add xen_create_contiguous_region, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 06/11] x86/PCI: Enable scanning of all pci functions,
Jeremy Fitzhardinge <=
- [Xen-devel] [PATCH 08/11] xen/swiotlb: use dma_alloc_from_coherent to get device coherent memory, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 09/11] x86/pci: make sure _PAGE_IOMAP it set on pci mappings, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 10/11] xen/pci: clean up Kconfig a bit, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 07/11] Xen/x86/PCI: Add support for the Xen PCI subsytem, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 01/11] xen: Don't disable the I/O space, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 11/11] xen: checkpatch cleanups, Jeremy Fitzhardinge
- [Xen-devel] Re: [GIT PULL] xen: dom0 support for PCI access, Ingo Molnar
|
|
|
|
|