Re: [mm PATCH v2 03/26] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-11-05 Thread Alexander Duyck
On Sat, Nov 5, 2016 at 12:39 PM, Konrad Rzeszutek Wilk wrote: > .. snip.. >> @@ -561,6 +565,7 @@ void swiotlb_tbl_unmap_single(struct device *hwdev, >> phys_addr_t tlb_addr, >>* First, sync the memory before unmapping the entry >>*/ >> if (orig_addr != INVALID_PHYS_ADDR && >

Re: [mm PATCH v2 03/26] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-11-05 Thread Konrad Rzeszutek Wilk
.. snip.. > @@ -561,6 +565,7 @@ void swiotlb_tbl_unmap_single(struct device *hwdev, > phys_addr_t tlb_addr, >* First, sync the memory before unmapping the entry >*/ > if (orig_addr != INVALID_PHYS_ADDR && > + !(attrs & DMA_ATTR_SKIP_CPU_SYNC) && > ((dir == D

[mm PATCH v2 03/26] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-11-02 Thread Alexander Duyck
As a first step to making DMA_ATTR_SKIP_CPU_SYNC apply to architectures beyond just ARM I need to make it so that the swiotlb will respect the flag. In order to do that I also need to update the swiotlb-xen since it heavily makes use of the functionality. Cc: Konrad Rzeszutek Wilk Signed-off-by: