diff options
author | Christian König <christian.koenig@amd.com> | 2016-03-10 10:23:29 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-03-14 13:43:18 -0400 |
commit | f4247c5046cdea4e166620f41c0bd3b475e98fff (patch) | |
tree | c35d053db296120b279d6769c380a290b02aac6e /drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |
parent | 587f3c70aaf07081fb24ac035789836a3f7d9008 (diff) |
drm/amdgpu: stop waiting on UVD messages before mapping them
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index e5f0a5e29551..081ee0565f87 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |||
@@ -539,13 +539,6 @@ static int amdgpu_uvd_cs_msg(struct amdgpu_uvd_cs_ctx *ctx, | |||
539 | return -EINVAL; | 539 | return -EINVAL; |
540 | } | 540 | } |
541 | 541 | ||
542 | r = reservation_object_wait_timeout_rcu(bo->tbo.resv, true, false, | ||
543 | MAX_SCHEDULE_TIMEOUT); | ||
544 | if (r < 0) { | ||
545 | DRM_ERROR("Failed waiting for UVD message (%ld)!\n", r); | ||
546 | return r; | ||
547 | } | ||
548 | |||
549 | r = amdgpu_bo_kmap(bo, &ptr); | 542 | r = amdgpu_bo_kmap(bo, &ptr); |
550 | if (r) { | 543 | if (r) { |
551 | DRM_ERROR("Failed mapping the UVD message (%ld)!\n", r); | 544 | DRM_ERROR("Failed mapping the UVD message (%ld)!\n", r); |