diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/gmmu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/gmmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/gmmu.c b/drivers/gpu/nvgpu/common/mm/gmmu.c index 875bcc4e..4289104d 100644 --- a/drivers/gpu/nvgpu/common/mm/gmmu.c +++ b/drivers/gpu/nvgpu/common/mm/gmmu.c | |||
@@ -93,7 +93,7 @@ static u64 __nvgpu_gmmu_map(struct vm_gk20a *vm, | |||
93 | aperture); | 93 | aperture); |
94 | nvgpu_mutex_release(&vm->update_gmmu_lock); | 94 | nvgpu_mutex_release(&vm->update_gmmu_lock); |
95 | 95 | ||
96 | nvgpu_sgt_free(sgt, g); | 96 | nvgpu_sgt_free(g, sgt); |
97 | 97 | ||
98 | if (!vaddr) { | 98 | if (!vaddr) { |
99 | nvgpu_err(g, "failed to map buffer!"); | 99 | nvgpu_err(g, "failed to map buffer!"); |
@@ -500,7 +500,7 @@ static int __nvgpu_gmmu_do_update_page_table(struct vm_gk20a *vm, | |||
500 | * IO address and will be contiguous. | 500 | * IO address and will be contiguous. |
501 | */ | 501 | */ |
502 | if (attrs->aperture == APERTURE_SYSMEM && !g->mm.bypass_smmu) { | 502 | if (attrs->aperture == APERTURE_SYSMEM && !g->mm.bypass_smmu) { |
503 | u64 io_addr = nvgpu_sgt_get_gpu_addr(sgt, g, sgt->sgl, attrs); | 503 | u64 io_addr = nvgpu_sgt_get_gpu_addr(g, sgt, sgt->sgl, attrs); |
504 | 504 | ||
505 | io_addr += space_to_skip; | 505 | io_addr += space_to_skip; |
506 | 506 | ||