diff mbox series

[2/2] drm/etnaviv: Remove the etnaviv_iommuv2_ensure_stlb()

Message ID 20241108143658.2229786-2-sui.jingfeng@linux.dev (mailing list archive)
State New
Headers show
Series [1/2] drm/etnaviv: Preallocate STLB according to CPU PAGE_SIZE | expand

Commit Message

Sui Jingfeng Nov. 8, 2024, 2:36 p.m. UTC
The etnaviv_iommuv2_ensure_stlb() function have been replaced by the
etnaviv_iommuv2_ensure_stlb_new(), remove it.

Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev>
---
 drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.c | 24 ----------------------
 1 file changed, 24 deletions(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.c b/drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.c
index fa6eed1ae1be..65b91eabb278 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.c
@@ -113,30 +113,6 @@  static void etnaviv_iommuv2_free(struct etnaviv_iommu_context *context)
 	vfree(v2_context);
 }
 
-static int
-etnaviv_iommuv2_ensure_stlb(struct etnaviv_iommuv2_context *v2_context,
-			    int stlb)
-{
-	if (v2_context->stlb_cpu[stlb])
-		return 0;
-
-	v2_context->stlb_cpu[stlb] =
-			dma_alloc_wc(v2_context->base.global->dev, SZ_4K,
-				     &v2_context->stlb_dma[stlb],
-				     GFP_KERNEL);
-
-	if (!v2_context->stlb_cpu[stlb])
-		return -ENOMEM;
-
-	memset32(v2_context->stlb_cpu[stlb], MMUv2_PTE_EXCEPTION,
-		 SZ_4K / sizeof(u32));
-
-	v2_context->mtlb_cpu[stlb] =
-			v2_context->stlb_dma[stlb] | MMUv2_PTE_PRESENT;
-
-	return 0;
-}
-
 static int etnaviv_iommuv2_map(struct etnaviv_iommu_context *context,
 			       unsigned long iova, phys_addr_t paddr,
 			       size_t size, int prot)