[PATCH 6/6] sz-align

Chris Wilson chris at chris-wilson.co.uk
Sat Jan 16 11:35:48 UTC 2021


---
 drivers/iommu/iova.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/iommu/iova.c b/drivers/iommu/iova.c
index 6914ba481845..f15b780d3482 100644
--- a/drivers/iommu/iova.c
+++ b/drivers/iommu/iova.c
@@ -459,7 +459,8 @@ alloc_iova_fast(struct iova_domain *iovad, unsigned long size,
 		return iova_pfn;
 
 retry:
-	new_iova = alloc_iova(iovad, size, limit_pfn, true);
+	new_iova = alloc_iova(iovad, size, limit_pfn,
+			      size < BIT(IOVA_RANGE_CACHE_MAX_SIZE));
 	if (!new_iova) {
 		unsigned int cpu;
 
-- 
2.20.1



More information about the Intel-gfx-trybot mailing list