summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-04-27 17:04:35 +0200
committerAlex Deucher <alexander.deucher@amd.com>2015-04-27 17:29:14 +0200
commit48afbd70ac7b6aa62e8d452091023941d8085f8a (patch)
tree5de990ba40aa4788109ebcc63ef82969c50258a3 /drivers/gpu
parentdrm/radeon: fix lockup when BOs aren't part of the VM on release (diff)
downloadlinux-48afbd70ac7b6aa62e8d452091023941d8085f8a.tar.xz
linux-48afbd70ac7b6aa62e8d452091023941d8085f8a.zip
drm/radeon: reset BOs address after clearing it.
Otherwise it is possible that we will have page table corruption if we change a BOs address multiple times. Signed-off-by: Christian König <christian.koenig@amd.com> CC: stable@vger.kernel.org Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_vm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_vm.c b/drivers/gpu/drm/radeon/radeon_vm.c
index 16d8e95abd94..cabcb0aafe03 100644
--- a/drivers/gpu/drm/radeon/radeon_vm.c
+++ b/drivers/gpu/drm/radeon/radeon_vm.c
@@ -490,6 +490,8 @@ int radeon_vm_bo_set_addr(struct radeon_device *rdev,
spin_lock(&vm->status_lock);
list_add(&tmp->vm_status, &vm->freed);
spin_unlock(&vm->status_lock);
+
+ bo_va->addr = 0;
}
interval_tree_remove(&bo_va->it, &vm->va);