[CI 06/12] drm/i915: Use the fence callback transfer helper

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Tue Feb 14 09:32:33 UTC 2023


From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

...

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
 drivers/gpu/drm/i915/i915_active.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_active.c b/drivers/gpu/drm/i915/i915_active.c
index f268a598fe9f..d37f9dbd5959 100644
--- a/drivers/gpu/drm/i915/i915_active.c
+++ b/drivers/gpu/drm/i915/i915_active.c
@@ -1059,9 +1059,8 @@ __i915_active_fence_set(struct i915_active_fence *active,
 	if (prev) {
 		GEM_BUG_ON(prev == fence);
 		spin_lock_nested(prev->lock, SINGLE_DEPTH_NESTING);
-		__list_del_entry(&active->cb.node);
 	}
-	list_add_tail(&active->cb.node, &fence->cb_list);
+	__dma_fence_cb_transfer(prev, &active->cb, fence);
 	if (prev)
 		spin_unlock(prev->lock); /* serialise with prev->cb_list */
 	spin_unlock_irqrestore(fence->lock, flags);
-- 
2.34.1



More information about the Intel-gfx-trybot mailing list