提交 74226b8c 编写于 作者: K Konrad Rzeszutek Wilk

xen/pci: Request ACS when Xen-SWIOTLB is activated.

It used to done in the Xen startup code but that is not really
appropiate.

[v2: Update Kconfig with PCI requirement]
Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
上级 956a9202
/* Glue code to lib/swiotlb-xen.c */ /* Glue code to lib/swiotlb-xen.c */
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/pci.h>
#include <xen/swiotlb-xen.h> #include <xen/swiotlb-xen.h>
#include <asm/xen/hypervisor.h> #include <asm/xen/hypervisor.h>
...@@ -54,5 +55,8 @@ void __init pci_xen_swiotlb_init(void) ...@@ -54,5 +55,8 @@ void __init pci_xen_swiotlb_init(void)
if (xen_swiotlb) { if (xen_swiotlb) {
xen_swiotlb_init(1); xen_swiotlb_init(1);
dma_ops = &xen_swiotlb_dma_ops; dma_ops = &xen_swiotlb_dma_ops;
/* Make sure ACS will be enabled */
pci_request_acs();
} }
} }
...@@ -74,6 +74,6 @@ config XEN_PLATFORM_PCI ...@@ -74,6 +74,6 @@ config XEN_PLATFORM_PCI
config SWIOTLB_XEN config SWIOTLB_XEN
def_bool y def_bool y
depends on SWIOTLB depends on PCI && SWIOTLB
endmenu endmenu
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册