Selaa lähdekoodia

msm: camera: smmu: Use iommu best match algo for camera

Use best fit match algo for smmu map instead of first match
algo to avoid fragmentation in smmu virtual space.

CRs-Fixed: 2580128
Change-Id: I434e6e4396bc713e6e12e3da7ae4b78cc2da6a42
Signed-off-by: Pavan Kumar Chilamkurthi <[email protected]>
Pavan Kumar Chilamkurthi 5 vuotta sitten
vanhempi
sitoutus
5b396d1411
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      drivers/cam_smmu/cam_smmu_api.c

+ 2 - 0
drivers/cam_smmu/cam_smmu_api.c

@@ -3353,6 +3353,8 @@ static int cam_smmu_setup_cb(struct cam_context_bank_info *cb,
 			goto end;
 			goto end;
 		}
 		}
 
 
+		iommu_dma_enable_best_fit_algo(dev);
+
 		if (cb->discard_iova_start)
 		if (cb->discard_iova_start)
 			iommu_dma_reserve_iova(dev, cb->discard_iova_start,
 			iommu_dma_reserve_iova(dev, cb->discard_iova_start,
 				cb->discard_iova_len);
 				cb->discard_iova_len);