drm/ttm: flush the fence on the bo after we individualize the reservation object
Subsystems (3)
PATCH 1/1 drm/ttm: flush the fence on the bo after we individualize the reservation object
From: xinhui pan <[email protected]>
As we move the ttm_bo_individualize_resv() upwards, we need flush the copied fence too. Otherwise the driver keeps waiting for fence.
run&Kill kfdtest, then perf top.
25.53% [ttm] [k] ttm_bo_delayed_delete 24.29% [kernel] [k] dma_resv_test_signaled_rcu 19.72% [kernel] [k] ww_mutex_lock
Fix: 378e2d5b("drm/ttm: fix ttm_bo_cleanup_refs_or_queue once more")
Signed-off-by xinhui pan <[email protected]>
Reviewed-by Christian König <[email protected]>
--- drivers/gpu/drm/ttm/ttm_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_bo.c +3 -1
@@ -491,8 +491,10 @@ static void ttm_bo_cleanup_refs_or_queue(struct ttm_buffer_object *bo)dma_resv_unlock (bo->base.resv); } -if (bo->base.resv != &bo->base._resv) +if (bo->base.resv != &bo->base._resv) { +ttm_bo_flush_all_fences (bo);dma_resv_unlock (&bo->base._resv); + } error:kref_get (&bo->list_kref);
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel