]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/etnaviv: rename etnaviv_iommu_domain_restore to etnaviv_iommuv1_restore
authorLucas Stach <l.stach@pengutronix.de>
Tue, 16 Aug 2016 09:31:09 +0000 (11:31 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 15 Sep 2016 13:29:34 +0000 (15:29 +0200)
This function has external visibility and only handles the Vivant IOMMU
version 1. Rename to make this more clear and allow a clear separation
of the different IOMMU versions.

Also drop the domain parameter, as we can infer it from the GPU we are
dealing with.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c
drivers/gpu/drm/etnaviv/etnaviv_iommu.c
drivers/gpu/drm/etnaviv/etnaviv_iommu.h

index deb1d0c192dccf046ebf11052f8122f1cdb86fe7..6828fc17eec358fbbd58913288f4ace14c95e212 100644 (file)
@@ -576,7 +576,7 @@ static void etnaviv_gpu_hw_init(struct etnaviv_gpu *gpu)
        gpu_write(gpu, VIVS_MC_MEMORY_BASE_ADDR_PE, gpu->memory_base);
 
        /* setup the MMU page table pointers */
-       etnaviv_iommu_domain_restore(gpu, gpu->mmu->domain);
+       etnaviv_iommuv1_restore(gpu);
 
        /* Start command processor */
        prefetch = etnaviv_buffer_init(gpu);
index 16353ee816516ef33348832ef31a5a089a95829b..35f365f50e187a0071f073fd0d768d0a1ecccbc8 100644 (file)
@@ -196,10 +196,10 @@ static struct etnaviv_iommu_ops etnaviv_iommu_ops = {
        .dump = etnaviv_iommuv1_dump,
 };
 
-void etnaviv_iommu_domain_restore(struct etnaviv_gpu *gpu,
-       struct iommu_domain *domain)
+void etnaviv_iommuv1_restore(struct etnaviv_gpu *gpu)
 {
-       struct etnaviv_iommu_domain *etnaviv_domain = to_etnaviv_domain(domain);
+       struct etnaviv_iommu_domain *etnaviv_domain =
+                       to_etnaviv_domain(gpu->mmu->domain);
        u32 pgtable;
 
        /* set page table address in MC */
index cf45503f6b6f45e21cfb4ccaf8df0a6a6ce04f86..dfb4ba23ce08f0a72315d70805d4ff740aecaf92 100644 (file)
@@ -21,8 +21,7 @@
 struct etnaviv_gpu;
 
 struct iommu_domain *etnaviv_iommu_domain_alloc(struct etnaviv_gpu *gpu);
-void etnaviv_iommu_domain_restore(struct etnaviv_gpu *gpu,
-       struct iommu_domain *domain);
+void etnaviv_iommuv1_restore(struct etnaviv_gpu *gpu);
 struct iommu_domain *etnaviv_iommu_v2_domain_alloc(struct etnaviv_gpu *gpu);
 
 #endif /* __ETNAVIV_IOMMU_H__ */