From: Stefano Stabellini Date: Fri, 21 Nov 2014 11:07:39 +0000 (+0000) Subject: xen/arm/arm64: introduce xen_arch_need_swiotlb X-Git-Tag: omap-for-v3.19/fixes-rc1~121^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4dba130891271084344c12537731542ec77cb85;p=pandora-kernel.git xen/arm/arm64: introduce xen_arch_need_swiotlb Introduce an arch specific function to find out whether a particular dma mapping operation needs to bounce on the swiotlb buffer. On ARM and ARM64, if the page involved is a foreign page and the device is not coherent, we need to bounce because at unmap time we cannot execute any required cache maintenance operations (we don't know how to find the pfn from the mfn). No change of behaviour for x86. Signed-off-by: Stefano Stabellini Reviewed-by: David Vrabel Reviewed-by: Catalin Marinas Acked-by: Ian Campbell Acked-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed