Skip to content

Commit

Permalink
Revert "drm/radeon: wait for moving fence after pinning"
Browse files Browse the repository at this point in the history
This reverts commit 694bb36.
  • Loading branch information
ranjan-dutta committed Jul 6, 2021
1 parent 2587897 commit 6757366
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions drivers/gpu/drm/radeon/radeon_prime.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,9 @@ int radeon_gem_prime_pin(struct drm_gem_object *obj)

/* pin buffer into GTT */
ret = radeon_bo_pin(bo, RADEON_GEM_DOMAIN_GTT, NULL);
if (unlikely(ret))
goto error;

if (bo->tbo.moving) {
ret = dma_fence_wait(bo->tbo.moving, false);
if (unlikely(ret)) {
radeon_bo_unpin(bo);
goto error;
}
}

bo->prime_shared_count++;
error:
if (likely(ret == 0))
bo->prime_shared_count++;

radeon_bo_unreserve(bo);
return ret;
}
Expand Down

0 comments on commit 6757366

Please sign in to comment.