OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e5a547
)
drm/amdgpu: fix bug of vm_bo_map (v2)
author
monk.liu
<monk.liu@amd.com>
Mon, 25 May 2015 06:44:05 +0000
(14:44 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:53 +0000
(21:03 -0400)
call reservation_object_reserve_shared before amdgpu_bo_fence
Signed-off-by: monk.liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <jammy.zhou@amd.com>
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
b25e533
..
cc6dca2
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@
-315,6
+315,10
@@
static int amdgpu_vm_clear_bo(struct amdgpu_device *adev,
if (r)
return r;
+ r = reservation_object_reserve_shared(bo->tbo.resv);
+ if (r)
+ return r;
+
r = ttm_bo_validate(&bo->tbo, &bo->placement, true, false);
if (r)
goto error_unreserve;