drm/amdgpu: stop waiting on UVD messages before mapping them
authorChristian König <christian.koenig@amd.com>
Thu, 10 Mar 2016 15:23:29 +0000 (16:23 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Mar 2016 17:43:18 +0000 (13:43 -0400)
amdgpu_bo_kmap() now always waits for moves to finish.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c

index e5f0a5e29551228efae71e0acc253bf88c9442bf..081ee0565f877b7a6d8a00f3d1bc94a6bb416dc2 100644 (file)
@@ -539,13 +539,6 @@ static int amdgpu_uvd_cs_msg(struct amdgpu_uvd_cs_ctx *ctx,
                return -EINVAL;
        }
 
-       r = reservation_object_wait_timeout_rcu(bo->tbo.resv, true, false,
-                                               MAX_SCHEDULE_TIMEOUT);
-       if (r < 0) {
-               DRM_ERROR("Failed waiting for UVD message (%ld)!\n", r);
-               return r;
-       }
-
        r = amdgpu_bo_kmap(bo, &ptr);
        if (r) {
                DRM_ERROR("Failed mapping the UVD message (%ld)!\n", r);