ANDROID: dma-buf: Use is_swiotlb_buffer() direct replacement swiotlb_find_pool()
Commit7296f2301a("swiotlb: reduce swiotlb pool lookups") turned down the call to is_swiotlb_buffer() in favour of a new way to interact with swiotlb pools. Our out-of-tree use-case is trivial since we can simply use the drop-in replacement swiotlb_find_pool(). Fixes:7296f2301a("swiotlb: reduce swiotlb pool lookups") Signed-off-by: Lee Jones <joneslee@google.com> Change-Id: I85bd60ff671ec178be90907a1f2201e8121bd7fd
This commit is contained in:
committed by
Treehugger Robot
parent
878e51a94a
commit
d7f4b8843c
@@ -77,7 +77,7 @@ static bool needs_swiotlb_bounce(struct device *dev, struct sg_table *table)
|
||||
phys_addr_t paddr = domain ?
|
||||
iommu_iova_to_phys(domain, sg_dma_address(sg)) :
|
||||
dma_to_phys(dev, sg_dma_address(sg));
|
||||
if (is_swiotlb_buffer(dev, paddr))
|
||||
if (swiotlb_find_pool(dev, paddr))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user