xen/pci: Request ACS when Xen-SWIOTLB is activated.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 19 Aug 2010 17:34:58 +0000 (13:34 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 18 Oct 2010 14:49:38 +0000 (10:49 -0400)
It used to done in the Xen startup code but that is not really
appropiate.

[v2: Update Kconfig with PCI requirement]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/pci-swiotlb-xen.c
drivers/xen/Kconfig

index a013ec9d0c5410ebd8d1dbdaeec76fb182722d86..be4d80a6fae9d3bd267a9a748771cd5f7522dc2e 100644 (file)
@@ -1,6 +1,7 @@
 /* Glue code to lib/swiotlb-xen.c */
 
 #include <linux/dma-mapping.h>
+#include <linux/pci.h>
 #include <xen/swiotlb-xen.h>
 
 #include <asm/xen/hypervisor.h>
@@ -54,5 +55,8 @@ void __init pci_xen_swiotlb_init(void)
        if (xen_swiotlb) {
                xen_swiotlb_init(1);
                dma_ops = &xen_swiotlb_dma_ops;
+
+               /* Make sure ACS will be enabled */
+               pci_request_acs();
        }
 }
index 60d71e9abe9fa369ce4a9deb99f8050ff6e855b3..f70a627080e71cf781a40188222a1101f619e7a7 100644 (file)
@@ -74,6 +74,6 @@ config XEN_PLATFORM_PCI
 
 config SWIOTLB_XEN
        def_bool y
-       depends on SWIOTLB
+       depends on PCI && SWIOTLB
 
 endmenu
This page took 0.029736 seconds and 5 git commands to generate.