summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-03-10 10:44:58 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-14 14:47:17 -0400
commit85cb10c3133de7d2ce4d0105db3733fbab4782da (patch)
tree79cc08a9fa1050af72f230d732d91453f8daf9f2 /drivers/gpu/nvgpu
parent503a5e68265dcb9e4e7e7efae53e6152c5d4b777 (diff)
gpu: nvgpu: Remove unused function gk20a_get_phys_from_iova
Remove unused function gk20a_get_phys_from_iova. At the same time remove the #include for iommu.h, which was only needed by this function. Change-Id: Ia858b0ad5fe7e423d650aa9f82e430f419f2a492 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1319070 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c15
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h3
2 files changed, 0 insertions, 18 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index ef20f00d..a66bf80e 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -3446,21 +3446,6 @@ void gk20a_gmmu_unmap(struct vm_gk20a *vm,
3446 nvgpu_mutex_release(&vm->update_gmmu_lock); 3446 nvgpu_mutex_release(&vm->update_gmmu_lock);
3447} 3447}
3448 3448
3449phys_addr_t gk20a_get_phys_from_iova(struct device *d,
3450 u64 dma_addr)
3451{
3452 phys_addr_t phys;
3453 u64 iova;
3454
3455 struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(d);
3456 if (!mapping)
3457 return dma_addr;
3458
3459 iova = dma_addr & PAGE_MASK;
3460 phys = iommu_iova_to_phys(mapping->domain, iova);
3461 return phys;
3462}
3463
3464/* get sg_table from already allocated buffer */ 3449/* get sg_table from already allocated buffer */
3465int gk20a_get_sgtable(struct device *d, struct sg_table **sgt, 3450int gk20a_get_sgtable(struct device *d, struct sg_table **sgt,
3466 void *cpuva, u64 iova, 3451 void *cpuva, u64 iova,
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 5b96726f..6c713e49 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -507,9 +507,6 @@ void gk20a_mm_dump_vm(struct vm_gk20a *vm,
507 507
508int gk20a_mm_suspend(struct gk20a *g); 508int gk20a_mm_suspend(struct gk20a *g);
509 509
510phys_addr_t gk20a_get_phys_from_iova(struct device *d,
511 u64 dma_addr);
512
513int gk20a_get_sgtable(struct device *d, struct sg_table **sgt, 510int gk20a_get_sgtable(struct device *d, struct sg_table **sgt,
514 void *cpuva, u64 iova, 511 void *cpuva, u64 iova,
515 size_t size); 512 size_t size);