Skip to content

Commit

Permalink
drm/amdgpu: fix bug of vm_bo_map (v2)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
monk.liu authored and Alex Deucher committed Jun 4, 2015
1 parent 7e5a547 commit ca95261
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca95261

Please sign in to comment.