diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/vm.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/vm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/vm.c b/drivers/gpu/nvgpu/common/mm/vm.c index 354d6ce4..f8d58349 100644 --- a/drivers/gpu/nvgpu/common/mm/vm.c +++ b/drivers/gpu/nvgpu/common/mm/vm.c | |||
@@ -527,6 +527,12 @@ static void __nvgpu_vm_remove(struct vm_gk20a *vm) | |||
527 | } | 527 | } |
528 | } | 528 | } |
529 | 529 | ||
530 | #if defined(CONFIG_TEGRA_GK20A_NVHOST) && defined(CONFIG_TEGRA_19x_GPU) | ||
531 | if (nvgpu_mem_is_valid(&g->syncpt_mem) && vm->syncpt_ro_map_gpu_va) | ||
532 | nvgpu_gmmu_unmap(vm, &g->syncpt_mem, | ||
533 | vm->syncpt_ro_map_gpu_va); | ||
534 | #endif | ||
535 | |||
530 | nvgpu_mutex_acquire(&vm->update_gmmu_lock); | 536 | nvgpu_mutex_acquire(&vm->update_gmmu_lock); |
531 | 537 | ||
532 | nvgpu_rbtree_enum_start(0, &node, vm->mapped_buffers); | 538 | nvgpu_rbtree_enum_start(0, &node, vm->mapped_buffers); |