From: Stefano Stabellini Date: Fri, 21 Nov 2014 11:04:39 +0000 (+0000) Subject: xen: add a dma_addr_t dev_addr argument to xen_dma_map_page X-Git-Tag: omap-for-v3.20/drop-legacy-3517~118^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0f2dee0cd651efb5fac6a1d35b0a14460ebcdd4;p=pandora-kernel.git xen: add a dma_addr_t dev_addr argument to xen_dma_map_page dev_addr is the machine address of the page. The new parameter can be used by the ARM and ARM64 implementations of xen_dma_map_page to find out if the page is a local page (pfn == mfn) or a foreign page (pfn != mfn). dev_addr could be retrieved again from the physical address, using pfn_to_mfn, but it requires accessing an rbtree. Since we already have the dev_addr in our hands at the call site there is no need to get the mfn twice. Signed-off-by: Stefano Stabellini Reviewed-by: Catalin Marinas Acked-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed