]> Git Repo - linux.git/commitdiff
drm/amdgpu: fix bug of vm_bo_map (v2)
authormonk.liu <[email protected]>
Mon, 25 May 2015 06:44:05 +0000 (14:44 +0800)
committerAlex Deucher <[email protected]>
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 <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Jammy Zhou <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

index b25e533fd6e8f53050cd37721cfc449673d179f7..cc6dca2581a60c243ebb1f6a0031f3a0df4c91d7 100644 (file)
@@ -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;
This page took 0.060016 seconds and 4 git commands to generate.