diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-09-02 06:38:11 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:08 -0400 |
commit | 59299f007a224eec81ef1b91648008669649d2c6 (patch) | |
tree | ea9b2877284c540ca987db403dd4c796f18d2af8 /drivers/gpu/nvgpu/gm20b | |
parent | f2b3ba605be987ed9cbeed0af17a687f89903854 (diff) |
gpu: nvgpu: Clear PTE ref after freeing
When clearing sparse buffers, pte->ref must be cleared once the PTE
is freed.
Bug 1549451
Change-Id: Ie7d3e438ef2c43cbcf893709ae50a67823bf0c9c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/494670
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/mm_gm20b.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c index fd0d058f..0f9749f7 100644 --- a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c | |||
@@ -308,6 +308,7 @@ void gm20b_vm_clear_sparse(struct vm_gk20a *vm, u64 vaddr, | |||
308 | free_gmmu_pages(vm, pte->ref, pte->sgt, | 308 | free_gmmu_pages(vm, pte->ref, pte->sgt, |
309 | vm->mm->page_table_sizing[pgsz_idx].order, | 309 | vm->mm->page_table_sizing[pgsz_idx].order, |
310 | pte->size); | 310 | pte->size); |
311 | pte->ref = NULL; | ||
311 | update_gmmu_pde_locked(vm, pde_i); | 312 | update_gmmu_pde_locked(vm, pde_i); |
312 | } | 313 | } |
313 | } | 314 | } |