From: Konrad Rzeszutek Wilk Date: Thu, 25 Aug 2011 20:13:54 +0000 (-0400) Subject: xen-swiotlb: When doing coherent alloc/dealloc check before swizzling the MFNs. X-Git-Tag: v3.2-rc1~192^4~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6810df88dcfc22de267caf23eb072ffb97b3c411;p=pandora-kernel.git xen-swiotlb: When doing coherent alloc/dealloc check before swizzling the MFNs. The process to swizzle a Machine Frame Number (MFN) is not always necessary. Especially if we know that we actually do not have to do it. In this patch we check the MFN against the device's coherent DMA mask and if the requested page(s) are contingous. If it all checks out we will just return the bus addr without doing the memory swizzle. Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed