drm/radeon/kms: free fence IB if it wasn't emited at IB free time
Subsystems (2)
PATCH 1/1 drm/radeon/kms: free fence IB if it wasn't emited at IB free time
If at IB free time fence wasn't emited that means the IB wasn't scheduled because an error occured somewhere, thus we can free then fence and mark the IB as free.
Signed-off-by Jerome Glisse <[email protected]>
--- drivers/gpu/drm/radeon/radeon_ring.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_ring.c +2 -0
@@ -130,6 +130,8 @@ void radeon_ib_free(struct radeon_device *rdev, struct radeon_ib **ib)if (tmp ==NULL ) {return ; } +if (!tmp->fence->emited) +radeon_fence_unref (&tmp->fence);mutex_lock (&rdev->ib_pool.mutex); tmp->free = true;mutex_unlock (&rdev->ib_pool.mutex);
Signature · 10 lines
1.6.6 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --