diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 15 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 3 |
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 | ||
3449 | phys_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 */ |
3465 | int gk20a_get_sgtable(struct device *d, struct sg_table **sgt, | 3450 | int 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 | ||
508 | int gk20a_mm_suspend(struct gk20a *g); | 508 | int gk20a_mm_suspend(struct gk20a *g); |
509 | 509 | ||
510 | phys_addr_t gk20a_get_phys_from_iova(struct device *d, | ||
511 | u64 dma_addr); | ||
512 | |||
513 | int gk20a_get_sgtable(struct device *d, struct sg_table **sgt, | 510 | int 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); |