|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 21/23] xen/pci: Request ACS when Xen-SWIOTLB is activ
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@xxxxxxxxxx>
---
arch/x86/xen/pci-swiotlb-xen.c | 4 ++++
drivers/xen/Kconfig | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/arch/x86/xen/pci-swiotlb-xen.c b/arch/x86/xen/pci-swiotlb-xen.c
index a013ec9..be4d80a 100644
--- a/arch/x86/xen/pci-swiotlb-xen.c
+++ b/arch/x86/xen/pci-swiotlb-xen.c
@@ -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();
}
}
diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig
index 60d71e9..f70a627 100644
--- a/drivers/xen/Kconfig
+++ b/drivers/xen/Kconfig
@@ -74,6 +74,6 @@ config XEN_PLATFORM_PCI
config SWIOTLB_XEN
def_bool y
- depends on SWIOTLB
+ depends on PCI && SWIOTLB
endmenu
--
1.7.0.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH v8] Xen PCI + Xen PCI frontend driver., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 13/23] x86/PCI: make sure _PAGE_IOMAP it set on pci mappings, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 07/23] xen: set pirq name to something useful., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 05/23] xen: identity map gsi->irqs, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 08/23] xen: statically initialize cpu_evtchn_mask_p, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 04/23] x86/io_apic: add get_nr_irqs_gsi(), Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 21/23] xen/pci: Request ACS when Xen-SWIOTLB is activated.,
Konrad Rzeszutek Wilk <=
- [Xen-devel] [PATCH 14/23] x86/PCI: Export pci_walk_bus function., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 19/23] xenbus: prevent warnings on unhandled enumeration values, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 01/23] xen: Don't disable the I/O space, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 12/23] x86/PCI: Clean up pci_cache_line_size, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 11/23] xen: fix shared irq device passthrough, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 17/23] xen/x86/PCI: Add support for the Xen PCI subsystem, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 06/23] xen: dynamically allocate irq & event structures, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 09/23] xen: Find an unbound irq number in reverse order (high to low)., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 03/23] xen: implement pirq type event channels, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 02/23] xen: define BIOVEC_PHYS_MERGEABLE(), Konrad Rzeszutek Wilk
|
|
|
|
|