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:
9d1d02f
)
drm/amdgpu: fix VM clearing for the root PD
author
Christian König
<
[email protected]
>
Thu, 16 Aug 2018 10:01:03 +0000
(12:01 +0200)
committer
Alex Deucher
<
[email protected]
>
Wed, 22 Aug 2018 21:04:14 +0000
(16:04 -0500)
We need to figure out the address after validating the BO, not before.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Felix Kuehling <
[email protected]
>
Reviewed-by: Junwei Zhang <
[email protected]
>
Reviewed-by: Huang Rui <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index ece0ac703e277282992422865f9945ce06ca5f0c..e40ca86764182567d4a24f3a76e70b2793eb993a 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@
-369,7
+369,6
@@
static int amdgpu_vm_clear_bo(struct amdgpu_device *adev,
uint64_t addr;
int r;
- addr = amdgpu_bo_gpu_offset(bo);
entries = amdgpu_bo_size(bo) / 8;
if (pte_support_ats) {
@@
-401,6
+400,7
@@
static int amdgpu_vm_clear_bo(struct amdgpu_device *adev,
if (r)
goto error;
+ addr = amdgpu_bo_gpu_offset(bo);
if (ats_entries) {
uint64_t ats_value;