diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_dbg.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_dbg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c b/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c index 403d9261..24bf813a 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c | |||
@@ -1142,7 +1142,7 @@ static int gk20a_perfbuf_map(struct dbg_session_gk20a *dbg_s, | |||
1142 | return 0; | 1142 | return 0; |
1143 | 1143 | ||
1144 | err_unmap: | 1144 | err_unmap: |
1145 | nvgpu_vm_unmap_buffer(mm->perfbuf.vm, args->offset, NULL); | 1145 | nvgpu_vm_unmap(mm->perfbuf.vm, args->offset, NULL); |
1146 | err_remove_vm: | 1146 | err_remove_vm: |
1147 | nvgpu_vm_put(mm->perfbuf.vm); | 1147 | nvgpu_vm_put(mm->perfbuf.vm); |
1148 | nvgpu_mutex_release(&g->dbg_sessions_lock); | 1148 | nvgpu_mutex_release(&g->dbg_sessions_lock); |
@@ -1386,7 +1386,7 @@ static int gk20a_perfbuf_release_locked(struct gk20a *g, u64 offset) | |||
1386 | 1386 | ||
1387 | err = g->ops.dbg_session_ops.perfbuffer_disable(g); | 1387 | err = g->ops.dbg_session_ops.perfbuffer_disable(g); |
1388 | 1388 | ||
1389 | nvgpu_vm_unmap_buffer(vm, offset, NULL); | 1389 | nvgpu_vm_unmap(vm, offset, NULL); |
1390 | nvgpu_free_inst_block(g, &mm->perfbuf.inst_block); | 1390 | nvgpu_free_inst_block(g, &mm->perfbuf.inst_block); |
1391 | nvgpu_vm_put(vm); | 1391 | nvgpu_vm_put(vm); |
1392 | 1392 | ||