projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26d4d12
)
drm/radeon: reset BOs address after clearing it.
author
Christian König
<
[email protected]
>
Mon, 27 Apr 2015 15:04:35 +0000
(17:04 +0200)
committer
Alex Deucher
<
[email protected]
>
Mon, 27 Apr 2015 15:29:14 +0000
(11:29 -0400)
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 <
[email protected]
>
CC:
[email protected]
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/radeon/radeon_vm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_vm.c
b/drivers/gpu/drm/radeon/radeon_vm.c
index 16d8e95abd9413cb2529e25d6dc2d0d1b9726337..cabcb0aafe0384bc9f3d74f43531d3397241dce0 100644
(file)
--- 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);