From d7f4b8843c1c078a7ba1753eec9c1ef6653239db Mon Sep 17 00:00:00 2001 From: Lee Jones Date: Wed, 14 Aug 2024 10:04:03 +0100 Subject: [PATCH] ANDROID: dma-buf: Use is_swiotlb_buffer() direct replacement swiotlb_find_pool() Commit 7296f2301a05 ("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: 7296f2301a05 ("swiotlb: reduce swiotlb pool lookups") Signed-off-by: Lee Jones Change-Id: I85bd60ff671ec178be90907a1f2201e8121bd7fd --- drivers/dma-buf/heaps/system_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/heaps/system_heap.c b/drivers/dma-buf/heaps/system_heap.c index af03ea581596..8205bb8fcbf4 100644 --- a/drivers/dma-buf/heaps/system_heap.c +++ b/drivers/dma-buf/heaps/system_heap.c @@ -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; } }