[CI 12/12] i915 barriers
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Mon Feb 13 17:23:37 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 | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_active.c b/drivers/gpu/drm/i915/i915_active.c
index 01d42573455a..ff7a8e984873 100644
--- a/drivers/gpu/drm/i915/i915_active.c
+++ b/drivers/gpu/drm/i915/i915_active.c
@@ -906,6 +906,7 @@ int i915_active_acquire_preallocate_barrier(struct i915_active *ref,
* for our tracking of the pending barrier.
*/
RCU_INIT_POINTER(node->base.fence, ERR_PTR(-EAGAIN));
+ __dma_fence_cb_init(&node->base.cb, NULL);
node->base.cb.node.prev = (void *)engine;
__i915_active_acquire(ref);
}
@@ -1006,8 +1007,12 @@ void i915_request_add_active_barriers(struct i915_request *rq)
*/
spin_lock_irqsave(&rq->lock, flags);
llist_for_each_safe(node, next, node) {
+ struct active_node *active_node = barrier_from_ll(node);
+
/* serialise with reuse_idle_barrier */
smp_store_mb(*ll_to_fence_slot(node), &rq->fence);
+ trace_printk(" Ab %llx:%llu @ %u [%p] (i915) (%lx)\n",
+ rq->fence.context, rq->fence.seqno, rq->fence.waitcount, &active_node->base.cb, active_node->base.cb.flags);
list_add_tail((struct list_head *)node, &rq->fence.cb_list);
}
spin_unlock_irqrestore(&rq->lock, flags);
--
2.34.1
More information about the Intel-gfx-trybot
mailing list