summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/nvgpu_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/nvgpu_mem.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/nvgpu_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/nvgpu_mem.c b/drivers/gpu/nvgpu/common/mm/nvgpu_mem.c
index 2b6e6e6a..9f677058 100644
--- a/drivers/gpu/nvgpu/common/mm/nvgpu_mem.c
+++ b/drivers/gpu/nvgpu/common/mm/nvgpu_mem.c
@@ -62,7 +62,7 @@ void nvgpu_sgt_free(struct nvgpu_sgt *sgt, struct gk20a *g)
62u64 nvgpu_mem_iommu_translate(struct gk20a *g, u64 phys) 62u64 nvgpu_mem_iommu_translate(struct gk20a *g, u64 phys)
63{ 63{
64 /* ensure it is not vidmem allocation */ 64 /* ensure it is not vidmem allocation */
65 WARN_ON(is_vidmem_page_alloc(phys)); 65 WARN_ON(nvgpu_addr_is_vidmem_page_alloc(phys));
66 66
67 if (nvgpu_iommuable(g) && g->ops.mm.get_iommu_bit) 67 if (nvgpu_iommuable(g) && g->ops.mm.get_iommu_bit)
68 return phys | 1ULL << g->ops.mm.get_iommu_bit(g); 68 return phys | 1ULL << g->ops.mm.get_iommu_bit(g);