xen-swiotlb: When doing coherent alloc/dealloc check before swizzling the MFNs.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 25 Aug 2011 20:13:54 +0000 (16:13 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 26 Aug 2011 16:10:42 +0000 (12:10 -0400)
commit6810df88dcfc22de267caf23eb072ffb97b3c411
tree5481262624654fc570be5aa7e1a5513687df263d
parent12e13ac84ca70e6641a4750e9317aa2d2c1f6f50
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 <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c
This page took 0.025158 seconds and 5 git commands to generate.