aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/pci.c
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-08-25 16:13:54 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-08-26 12:10:42 -0400
commit6810df88dcfc22de267caf23eb072ffb97b3c411 (patch)
tree5481262624654fc570be5aa7e1a5513687df263d /drivers/xen/pci.c
parentxen/pci: make bus notifier handler return sane values (diff)
downloadlinux-dev-6810df88dcfc22de267caf23eb072ffb97b3c411.tar.xz
linux-dev-6810df88dcfc22de267caf23eb072ffb97b3c411.zip
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>
Diffstat (limited to 'drivers/xen/pci.c')
0 files changed, 0 insertions, 0 deletions