From: Stefano Stabellini Date: Fri, 24 Apr 2015 09:16:40 +0000 (+0100) Subject: xen: Add __GFP_DMA flag when xen_swiotlb_init gets free pages on ARM X-Git-Tag: omap-for-v4.2/omap1-v2~27^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8746515d7f04c9ea94cf43e2db1fd2cfca93276d;p=pandora-kernel.git xen: Add __GFP_DMA flag when xen_swiotlb_init gets free pages on ARM Make sure that xen_swiotlb_init allocates buffers that are DMA capable when at least one memblock is available below 4G. Otherwise we assume that all devices on the SoC can cope with >4G addresses. We do this on ARM and ARM64, where dom0 is mapped 1:1, so pfn == mfn in this case. No functional changes on x86. From: Chen Baozi Signed-off-by: Chen Baozi Signed-off-by: Stefano Stabellini Tested-by: Chen Baozi Acked-by: Konrad Rzeszutek Wilk Signed-off-by: David Vrabel --- Reading git-diff-tree failed