drm/i915: Remove gen check before calling intel_rps_boost
Subsystems (2)
PATCH 1/12 drm/i915: Remove gen check before calling intel_rps_boost
It's been a while since gen6_rps_boost() [that only worked on gen6+] was replaced by intel_rps_boost() that understood itself when rps was active. Since the intel_rps_boost() is gen-agnostic, just call it.
--- drivers/gpu/drm/i915/i915_request.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/i915_request.c +2 -5
@@ -1823,11 +1823,8 @@ long i915_request_wait(struct i915_request *rq,* but at a cost of spending more power processing the workload * (bad for battery). */ -if (flags &I915_WAIT_PRIORITY ) { -if (!i915_request_started (rq) && -INTEL_GEN (rq->engine->i915) >=6 ) -intel_rps_boost (rq); - } +if (flags &I915_WAIT_PRIORITY && !i915_request_started (rq)) +intel_rps_boost (rq); wait.tsk = current;if (dma_fence_add_callback (&rq->fence, &wait.cb, request_wait_wake))
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/12 drm/i915: Remove requirement for holding i915_request.lock for breadcrumbs
Since the breadcrumb enabling/cancelling itself is serialised by the breadcrumbs.irq_lock, with a bit of care we can remove the outer serialisation with i915_request.lock for concurrent dma_fence_enable_signaling(). This has the important side-effect of eliminating the nested i915_request.lock within request submission.
The challenge in serialisation is around the unsubmission where we take an active request that wants a breadcrumb on the signaling engine and put it to sleep. We do not want a concurrent dma_fence_enable_signaling() to attach a breadcrumb as we unsubmit, so we must mark the request as no longer active before serialising with the concurrent enable-signaling.
On retire, we serialise with the concurrent enable-signaling, but instead of clearing ACTIVE, we mark it as SIGNALED.
--- drivers/gpu/drm/i915/gt/intel_breadcrumbs.c | 130 +++++++++++++------- drivers/gpu/drm/i915/gt/intel_lrc.c | 14 --- drivers/gpu/drm/i915/i915_request.c | 39 +++--- 3 files changed, 100 insertions(+), 83 deletions(-)
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c +84 -46
@@ -220,17 +220,17 @@ static void signal_irq_work(struct irq_work *work) } } -static bool __intel_breadcrumbs_arm_irq (struct intel_breadcrumbs *b) +static void __intel_breadcrumbs_arm_irq (struct intel_breadcrumbs *b) {struct intel_engine_cs *engine = container_of(b, struct intel_engine_cs, breadcrumbs);lockdep_assert_held (&b->irq_lock);if (b->irq_armed) -return true; +return ;if (!intel_gt_pm_get_if_awake (engine->gt)) -return false; +return ;/* * The breadcrumb irq will be disarmed on the interrupt after the
@@ -250,8 +250,6 @@ static bool __intel_breadcrumbs_arm_irq(struct intel_breadcrumbs *b)if (!b->irq_enabled++)irq_enable (engine); - -return true; }void intel_engine_init_breadcrumbs (struct intel_engine_cs *engine)
@@ -310,57 +308,99 @@ void intel_engine_fini_breadcrumbs(struct intel_engine_cs *engine) { } -bool i915_request_enable_breadcrumb (struct i915_request *rq) +static void insert_breadcrumb (struct i915_request *rq, +struct intel_breadcrumbs *b) { -lockdep_assert_held (&rq->lock); +struct intel_context *ce = rq->context; +struct list_head *pos; -if (test_bit (DMA_FENCE_FLAG_SIGNALED_BIT , &rq->fence.flags)) -return true; +if (test_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags)) +return ; -if (test_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags)) { -struct intel_breadcrumbs *b = &rq->engine->breadcrumbs; -struct intel_context *ce = rq->context; -struct list_head *pos; +__intel_breadcrumbs_arm_irq (b); -spin_lock (&b->irq_lock); +/* +* We keep the seqno in retirement order, so we can break +* inside intel_engine_signal_breadcrumbs as soon as we've +* passed the last completed request (or seen a request that +* hasn't event started). We could walk the timeline->requests, +* but keeping a separate signalers_list has the advantage of +* hopefully being much smaller than the full list and so +* provides faster iteration and detection when there are no +* more interrupts required for this context. +* +* We typically expect to add new signalers in order, so we +* start looking for our insertion point from the tail of +* the list. +*/ +list_for_each_prev (pos, &ce->signals) { +struct i915_request *it = +list_entry (pos,typeof (*it), signal_link); -if (test_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags)) - goto unlock; +if (i915_seqno_passed (rq->fence.seqno, it->fence.seqno)) +break ; + } +list_add (&rq->signal_link, pos); +if (pos == &ce->signals)/* catch transitions from empty list */ +list_move_tail (&ce->signal_link, &b->signalers); +GEM_BUG_ON (!check_signal_order (ce, rq)); -if (!__intel_breadcrumbs_arm_irq (b)) - goto unlock; +set_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags); +} -/* -* We keep the seqno in retirement order, so we can break -* inside intel_engine_signal_breadcrumbs as soon as we've -* passed the last completed request (or seen a request that -* hasn't event started). We could walk the timeline->requests, -* but keeping a separate signalers_list has the advantage of -* hopefully being much smaller than the full list and so -* provides faster iteration and detection when there are no -* more interrupts required for this context. -* -* We typically expect to add new signalers in order, so we -* start looking for our insertion point from the tail of -* the list. -*/ -list_for_each_prev (pos, &ce->signals) { -struct i915_request *it = -list_entry (pos,typeof (*it), signal_link); +bool i915_request_enable_breadcrumb (struct i915_request *rq) +{ +struct intel_breadcrumbs *b; -if (i915_seqno_passed (rq->fence.seqno, it->fence.seqno)) -break ; - } -list_add (&rq->signal_link, pos); -if (pos == &ce->signals)/* catch transitions from empty list */ -list_move_tail (&ce->signal_link, &b->signalers); -GEM_BUG_ON (!check_signal_order (ce, rq)); +/* Serialises with i915_request_retire() using rq->lock */ +if (test_bit (DMA_FENCE_FLAG_SIGNALED_BIT , &rq->fence.flags)) +return true; -set_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags); -unlock: +/* +* Peek at i915_request_submit()/i915_request_unsubmit() status. +* +* If the request is not yet active (and not signaled), we will +* attach the breadcrumb later. +*/ +if (!test_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags)) +return true; + +/* +* rq->engine is locked by rq->engine->active.lock. That however +* is not known until after rq->engine has been dereferenced and +* the lock acquired. Hence we acquire the lock and then validate +* that rq->engine still matches the lock we hold for it. +* +* Here, we are using the breadcrumb lock as a proxy for the +* rq->engine->active.lock, and we know that since the breadcrumb +* will be serialised within i915_request_submit/i915_request_unsubmit, +* the engine cannot change while active as long as we hold the +* breadcrumb lock on that engine. +* +* From the dma_fence_enable_signaling() path, we are outside of the +* request submit/unsubmit path, and so we must be more careful to +* acquire the right lock. +*/ + b = &READ_ONCE (rq->engine)->breadcrumbs; +spin_lock (&b->irq_lock); +while (unlikely (b != &READ_ONCE (rq->engine)->breadcrumbs)) {spin_unlock (&b->irq_lock); + b = &READ_ONCE (rq->engine)->breadcrumbs; +spin_lock (&b->irq_lock); } +/* +* Now that we are finally serialised with request submit/unsubmit, +* [with b->irq_lock] and with i915_request_retire() [via checking +* SIGNALED with rq->lock] confirm the request is indeed active. If +* it is no longer active, the breadcrumb will be attached upon +* i915_request_submit(). +*/ +if (test_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags)) +insert_breadcrumb (rq, b); + +spin_unlock (&b->irq_lock); +return !__request_completed (rq); }
@@ -368,8 +408,6 @@ void i915_request_cancel_breadcrumb(struct i915_request *rq) {struct intel_breadcrumbs *b = &rq->engine->breadcrumbs; -lockdep_assert_held (&rq->lock); -/* * We must wait for b->irq_lock so that we know the interrupt handler * has released its reference to the intel_context and has completed
drivers/gpu/drm/i915/gt/intel_lrc.c +0 -14
@@ -1148,20 +1148,6 @@ __unwind_incomplete_requests(struct intel_engine_cs *engine) }else {struct intel_engine_cs *owner = rq->context->engine; -/* -* Decouple the virtual breadcrumb before moving it -* back to the virtual engine -- we don't want the -* request to complete in the background and try -* and cancel the breadcrumb on the virtual engine -* (instead of the old engine where it is linked)! -*/ -if (test_bit (DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT , - &rq->fence.flags)) { -spin_lock_nested (&rq->lock, -SINGLE_DEPTH_NESTING ); -i915_request_cancel_breadcrumb (rq); -spin_unlock (&rq->lock); - }WRITE_ONCE (rq->engine, owner); owner->submit_request (rq); active =NULL ;
drivers/gpu/drm/i915/i915_request.c +16 -23
@@ -322,11 +322,12 @@ bool i915_request_retire(struct i915_request *rq)dma_fence_signal_locked (&rq->fence);if (test_bit (DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT , &rq->fence.flags))i915_request_cancel_breadcrumb (rq); +spin_unlock_irq (&rq->lock); +if (i915_request_has_waitboost (rq)) {GEM_BUG_ON (!atomic_read (&rq->engine->gt->rps.num_waiters));atomic_dec (&rq->engine->gt->rps.num_waiters); } -spin_unlock_irq (&rq->lock);/* * We only loosely track inflight requests across preemption,
@@ -610,17 +611,9 @@ bool __i915_request_submit(struct i915_request *request)*/ __notify_execute_cb_irq (request); -/* We may be recursing from the signal callback of another i915 fence */ -if (!i915_request_signaled (request)) { -spin_lock_nested (&request->lock,SINGLE_DEPTH_NESTING ); - -if (test_bit (DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT , - &request->fence.flags) && - !i915_request_enable_breadcrumb (request)) -intel_engine_signal_breadcrumbs (engine); - -spin_unlock (&request->lock); - } +if (test_bit (DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT , &request->fence.flags) && + !i915_request_enable_breadcrumb (request)) +intel_engine_signal_breadcrumbs (engine);return result; }
@@ -642,27 +635,27 @@ void __i915_request_unsubmit(struct i915_request *request) {struct intel_engine_cs *engine = request->engine; +/* +* Only unwind in reverse order, required so that the per-context list +* is kept in seqno/ring order. +*/ RQ_TRACE (request,"\n" );GEM_BUG_ON (!irqs_disabled ());lockdep_assert_held (&engine->active.lock);/* -* Only unwind in reverse order, required so that the per-context list -* is kept in seqno/ring order. +* Before we remove this breadcrumb from the signal list, we have +* to ensure that a concurrent dma_fence_enable_signaling() does not +* attach itself. We first mark the request as no longer active and +* make sure that is visible to other cores, and then remove the +* breadcrumb if attached. */ - -/* We may be recursing from the signal callback of another i915 fence */ -spin_lock_nested (&request->lock,SINGLE_DEPTH_NESTING ); - +GEM_BUG_ON (!test_bit (I915_FENCE_FLAG_ACTIVE , &request->fence.flags)); +clear_bit_unlock (I915_FENCE_FLAG_ACTIVE , &request->fence.flags);if (test_bit (DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT , &request->fence.flags))i915_request_cancel_breadcrumb (request); -GEM_BUG_ON (!test_bit (I915_FENCE_FLAG_ACTIVE , &request->fence.flags)); -clear_bit (I915_FENCE_FLAG_ACTIVE , &request->fence.flags); - -spin_unlock (&request->lock); -/* We've already spun, don't charge on resubmitting. */ if (request->sched.semaphores &&i915_request_started (request)) request->sched.semaphores =0 ;
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/12 drm/i915/gt: Replace intel_engine_transfer_stale_breadcrumbs
In reply to Chris WilsonAfter staring at the breadcrumb enabling/cancellation and coming to the conclusion that the cause of the mysterious stale breadcrumbs must the act of submitting a completed requests, we can then redirect those completed requests onto a dedicated signaled_list at the time of construction and so eliminate intel_engine_transfer_stale_breadcrumbs().
--- drivers/gpu/drm/i915/gt/intel_breadcrumbs.c | 50 ++++++++------------- drivers/gpu/drm/i915/gt/intel_engine.h | 3 -- drivers/gpu/drm/i915/gt/intel_lrc.c | 15 ------- drivers/gpu/drm/i915/i915_request.c | 5 +-- 4 files changed, 21 insertions(+), 52 deletions(-)
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c +19 -31
@@ -142,16 +142,16 @@ static void add_retire(struct intel_breadcrumbs *b, struct intel_timeline *tl)intel_engine_add_retire (engine, tl); } -static void __signal_request (struct i915_request *rq,struct list_head *signals) +static bool __signal_request (struct i915_request *rq,struct list_head *signals) { -GEM_BUG_ON (!test_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags));clear_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags);if (!__dma_fence_signal (&rq->fence)) -return ; +return false;i915_request_get (rq);list_add_tail (&rq->signal_link, signals); +return true; }static void signal_irq_work (struct irq_work *work)
@@ -278,32 +278,6 @@ void intel_engine_reset_breadcrumbs(struct intel_engine_cs *engine)spin_unlock_irqrestore (&b->irq_lock, flags); } -void intel_engine_transfer_stale_breadcrumbs (struct intel_engine_cs *engine, -struct intel_context *ce) -{ -struct intel_breadcrumbs *b = &engine->breadcrumbs; -unsigned long flags; - -spin_lock_irqsave (&b->irq_lock, flags); -if (!list_empty (&ce->signals)) { -struct i915_request *rq, *next; - -/* Queue for executing the signal callbacks in the irq_work */ -list_for_each_entry_safe (rq, next, &ce->signals, signal_link) { -GEM_BUG_ON (rq->engine != engine); -GEM_BUG_ON (!__request_completed (rq)); - -__signal_request (rq, &b->signaled_requests); - } - -INIT_LIST_HEAD (&ce->signals); -list_del_init (&ce->signal_link); - -irq_work_queue (&b->irq_work); - } -spin_unlock_irqrestore (&b->irq_lock, flags); -} -void intel_engine_fini_breadcrumbs (struct intel_engine_cs *engine) { }
@@ -317,6 +291,17 @@ static void insert_breadcrumb(struct i915_request *rq,if (test_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags))return ; +/* +* If the request is already completed, we can transfer it +* straight onto a signaled list, and queue the irq worker for +* its signal completion. +*/ +if (__request_completed (rq)) { +if (__signal_request (rq, &b->signaled_requests)) +irq_work_queue (&b->irq_work); +return ; + } +__intel_breadcrumbs_arm_irq (b);/*
@@ -344,8 +329,11 @@ static void insert_breadcrumb(struct i915_request *rq,if (pos == &ce->signals)/* catch transitions from empty list */ list_move_tail (&ce->signal_link, &b->signalers);GEM_BUG_ON (!check_signal_order (ce, rq)); -set_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags); + +/* Check after attaching to irq, interrupt may have already fired. */ +if (__request_completed (rq)) +irq_work_queue (&b->irq_work); }bool i915_request_enable_breadcrumb (struct i915_request *rq)
@@ -401,7 +389,7 @@ bool i915_request_enable_breadcrumb(struct i915_request *rq)spin_unlock (&b->irq_lock); -return !__request_completed (rq); +return true; }void i915_request_cancel_breadcrumb (struct i915_request *rq)
drivers/gpu/drm/i915/gt/intel_engine.h +0 -3
@@ -237,9 +237,6 @@ intel_engine_signal_breadcrumbs(struct intel_engine_cs *engine)void intel_engine_reset_breadcrumbs (struct intel_engine_cs *engine);void intel_engine_fini_breadcrumbs (struct intel_engine_cs *engine); -void intel_engine_transfer_stale_breadcrumbs (struct intel_engine_cs *engine, -struct intel_context *ce); -void intel_engine_print_breadcrumbs (struct intel_engine_cs *engine,struct drm_printer *p);
drivers/gpu/drm/i915/gt/intel_lrc.c +0 -15
@@ -1805,18 +1805,6 @@ static bool virtual_matches(const struct virtual_engine *ve,return true; } -static void virtual_xfer_breadcrumbs (struct virtual_engine *ve) -{ -/* -* All the outstanding signals on ve->siblings[0] must have -* been completed, just pending the interrupt handler. As those -* signals still refer to the old sibling (via rq->engine), we must -* transfer those to the old irq_worker to keep our locking -* consistent. -*/ -intel_engine_transfer_stale_breadcrumbs (ve->siblings[0 ], &ve->context); -} -#define for_each_waiter (p__, rq__) \ list_for_each_entry_lockless(p__, \ &(rq__)->sched.waiters_list, \
@@ -2275,9 +2263,6 @@ static void execlists_dequeue(struct intel_engine_cs *engine)virtual_update_register_offsets (regs, engine); -if (!list_empty (&ve->context.signals)) -virtual_xfer_breadcrumbs (ve); -/* * Move the bound engine to the top of the list * for future execution. We then kick this
drivers/gpu/drm/i915/i915_request.c +2 -3
@@ -611,9 +611,8 @@ bool __i915_request_submit(struct i915_request *request)*/ __notify_execute_cb_irq (request); -if (test_bit (DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT , &request->fence.flags) && - !i915_request_enable_breadcrumb (request)) -intel_engine_signal_breadcrumbs (engine); +if (test_bit (DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT , &request->fence.flags)) +i915_request_enable_breadcrumb (request);return result; }
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/12 drm/i915/gt: Only transfer the virtual context to the new engine if active
In reply to Chris WilsonOne more complication of preempt-to-busy with respect to the virtual engine is that we may have retired the last request along the virtual engine at the same time as preparing to submit the completed request to a new engine. That submit will be shortcircuited, but not before we have updated the context with the new register offsets and marked the virtual engine as bound to the new engine (by calling swap on ve->siblings[]). As we may have just retired the completed request, we may also be in the middle of calling virtual_context_exit() to turn off the power management associated with the virtual engine, and that in turn walks the ve->siblings[]. If we happen to call swap() on the array as we walk, we will call intel_engine_pm_put() twice on the same engine.
In this patch, we prevent this by only updating the bound engine after a successful submission which weeds out the already completed requests.
Alternatively, we could walk a non-volatile array for the pm, such as using the engine->mask. The small advantage to performing the update after the submit is that we then only have to do a swap for active requests.
References: 6d06779e8672 ("drm/i915: Load balancing across a virtual engine"
--- drivers/gpu/drm/i915/gt/intel_lrc.c | 65 ++++++++++++++++++----------- 1 file changed, 40 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/gt/intel_lrc.c +40 -25
@@ -1805,6 +1805,33 @@ static bool virtual_matches(const struct virtual_engine *ve,return true; } +static void virtual_xfer_context (struct virtual_engine *ve, +struct intel_engine_cs *engine) +{ +unsigned int n; + +if (likely (engine == ve->siblings[0 ])) +return ; + +GEM_BUG_ON (READ_ONCE (ve->context.inflight)); +if (!intel_engine_has_relative_mmio (engine)) +virtual_update_register_offsets (ve->context.lrc_reg_state, + engine); + +/* +* Move the bound engine to the top of the list for +* future execution. We then kick this tasklet first +* before checking others, so that we preferentially +* reuse this set of bound registers. +*/ +for (n =1 ; n < ve->num_siblings; n++) { +if (ve->siblings[n] == engine) { +swap (ve->siblings[n], ve->siblings[0 ]); +break ; + } + } +} +#define for_each_waiter (p__, rq__) \ list_for_each_entry_lockless(p__, \ &(rq__)->sched.waiters_list, \
@@ -2253,35 +2280,23 @@ static void execlists_dequeue(struct intel_engine_cs *engine)GEM_BUG_ON (!(rq->execution_mask & engine->mask));WRITE_ONCE (rq->engine, engine); -if (engine != ve->siblings[0 ]) { -u32 *regs = ve->context.lrc_reg_state; -unsigned int n; - -GEM_BUG_ON (READ_ONCE (ve->context.inflight)); - -if (!intel_engine_has_relative_mmio (engine)) -virtual_update_register_offsets (regs, - engine); - +if (__i915_request_submit (rq)) {/* -* Move the bound engine to the top of the list -* for future execution. We then kick this -* tasklet first before checking others, so that -* we preferentially reuse this set of bound -* registers. +* Only after we confirm that we will submit +* this request (i.e. it has not already +* completed), do we want to update the context. +* +* This serves two purposes. It avoids +* unnecessary work if we are resubmitting an +* already completed request after timeslicing. +* But more importantly, it prevents us altering +* ve->siblings[] on an idle context, where +* we may be using ve->siblings[] in +* virtual_context_enter / virtual_context_exit. */ -for (n =1 ; n < ve->num_siblings; n++) { -if (ve->siblings[n] == engine) { -swap (ve->siblings[n], - ve->siblings[0 ]); -break ; - } - } - +virtual_xfer_context (ve, engine);GEM_BUG_ON (ve->siblings[0 ] != engine); - } -if (__i915_request_submit (rq)) { submit = true; last = rq; }
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/12 drm/i915/gt: Distinguish the virtual breadcrumbs from the irq breadcrumbs
In reply to Chris WilsonOn the virtual engines, we only use the intel_breadcrumbs for tracking signaling of stale breadcrumbs from the irq_workers. They do not have any associated interrupt handling, active requests are passed to a physical engine and associated breadcrumb interrupt handler. This causes issues for us as we need to ensure that we do not actually try and enable interrupts and the powermanagement required for them on the virtual engine, as they will never be disabled. Instead, let's specify the physical engine used for interrupt handler on a particular breadcrumb.
v2: Drop b->irq_armed = true mocking for no interrupt HW
--- drivers/gpu/drm/i915/gt/intel_breadcrumbs.c | 76 ++++++++++--------- drivers/gpu/drm/i915/gt/intel_breadcrumbs.h | 36 +++++++++ .../gpu/drm/i915/gt/intel_breadcrumbs_types.h | 47 ++++++++++++ drivers/gpu/drm/i915/gt/intel_engine.h | 17 ----- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 14 +++- drivers/gpu/drm/i915/gt/intel_engine_pm.c | 3 +- drivers/gpu/drm/i915/gt/intel_engine_types.h | 31 +------- drivers/gpu/drm/i915/gt/intel_gt_irq.c | 1 + drivers/gpu/drm/i915/gt/intel_lrc.c | 11 ++- drivers/gpu/drm/i915/gt/intel_reset.c | 1 + .../gpu/drm/i915/gt/intel_ring_submission.c | 3 +- drivers/gpu/drm/i915/gt/intel_rps.c | 1 + drivers/gpu/drm/i915/gt/mock_engine.c | 10 ++- drivers/gpu/drm/i915/i915_irq.c | 1 + drivers/gpu/drm/i915/i915_request.c | 1 + drivers/gpu/drm/i915/i915_request.h | 4 - 16 files changed, 162 insertions(+), 95 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/intel_breadcrumbs.h create mode 100644 drivers/gpu/drm/i915/gt/intel_breadcrumbs_types.h
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c +40 -36
@@ -28,6 +28,7 @@#include "i915_drv.h" #include "i915_trace.h" +#include "intel_breadcrumbs.h" #include "intel_gt_pm.h" #include "intel_gt_requests.h"
@@ -55,30 +56,28 @@ static void irq_disable(struct intel_engine_cs *engine)static void __intel_breadcrumbs_disarm_irq (struct intel_breadcrumbs *b) { -struct intel_engine_cs *engine = - container_of(b, struct intel_engine_cs, breadcrumbs); -lockdep_assert_held (&b->irq_lock); +if (!b->irq_engine || !b->irq_armed) +return ; +GEM_BUG_ON (!b->irq_enabled);if (!--b->irq_enabled) -irq_disable (engine); +irq_disable (b->irq_engine);WRITE_ONCE (b->irq_armed, false); -intel_gt_pm_put_async (engine->gt); +intel_gt_pm_put_async (b->irq_engine->gt); } -void intel_engine_disarm_breadcrumbs (struct intel_engine_cs *engine) +void intel_breadcrumbs_park (struct intel_breadcrumbs *b) { -struct intel_breadcrumbs *b = &engine->breadcrumbs;unsigned long flags;if (!READ_ONCE (b->irq_armed))return ;spin_lock_irqsave (&b->irq_lock, flags); -if (b->irq_armed) -__intel_breadcrumbs_disarm_irq (b); +__intel_breadcrumbs_disarm_irq (b);spin_unlock_irqrestore (&b->irq_lock, flags); }
@@ -133,13 +132,8 @@ __dma_fence_signal__notify(struct dma_fence *fence,static void add_retire (struct intel_breadcrumbs *b,struct intel_timeline *tl) { -struct intel_engine_cs *engine = - container_of(b, struct intel_engine_cs, breadcrumbs); - -if (unlikely (intel_engine_is_virtual (engine))) - engine =intel_virtual_engine_get_sibling (engine,0 ); - -intel_engine_add_retire (engine, tl); +if (b->irq_engine) +intel_engine_add_retire (b->irq_engine, tl); }static bool __signal_request (struct i915_request *rq,struct list_head *signals)
@@ -164,7 +158,7 @@ static void signal_irq_work(struct irq_work *work)spin_lock (&b->irq_lock); -if (b->irq_armed &&list_empty (&b->signalers)) +if (list_empty (&b->signalers))__intel_breadcrumbs_disarm_irq (b);list_splice_init (&b->signaled_requests, &signal);
@@ -222,14 +216,12 @@ static void signal_irq_work(struct irq_work *work)static void __intel_breadcrumbs_arm_irq (struct intel_breadcrumbs *b) { -struct intel_engine_cs *engine = - container_of(b, struct intel_engine_cs, breadcrumbs); -lockdep_assert_held (&b->irq_lock); -if (b->irq_armed) + +if (!b->irq_engine || b->irq_armed)return ; -if (!intel_gt_pm_get_if_awake (engine->gt)) +if (!intel_gt_pm_get_if_awake (b->irq_engine->gt))return ;/*
@@ -249,37 +241,49 @@ static void __intel_breadcrumbs_arm_irq(struct intel_breadcrumbs *b)*/ if (!b->irq_enabled++) -irq_enable (engine); +irq_enable (b->irq_engine); } -void intel_engine_init_breadcrumbs (struct intel_engine_cs *engine) +struct intel_breadcrumbs * +intel_breadcrumbs_create (struct intel_engine_cs *irq_engine) { -struct intel_breadcrumbs *b = &engine->breadcrumbs; +struct intel_breadcrumbs *b; + + b =kzalloc (sizeof (*b),GFP_KERNEL ); +if (!b) +return NULL ;spin_lock_init (&b->irq_lock);INIT_LIST_HEAD (&b->signalers);INIT_LIST_HEAD (&b->signaled_requests);init_irq_work (&b->irq_work, signal_irq_work); + + b->irq_engine = irq_engine; + +return b; } -void intel_engine_reset_breadcrumbs (struct intel_engine_cs *engine) +void intel_breadcrumbs_reset (struct intel_breadcrumbs *b) { -struct intel_breadcrumbs *b = &engine->breadcrumbs;unsigned long flags; +if (!b->irq_engine) +return ; +spin_lock_irqsave (&b->irq_lock, flags);if (b->irq_enabled) -irq_enable (engine); +irq_enable (b->irq_engine);else -irq_disable (engine); +irq_disable (b->irq_engine);spin_unlock_irqrestore (&b->irq_lock, flags); } -void intel_engine_fini_breadcrumbs (struct intel_engine_cs *engine) +void intel_breadcrumbs_free (struct intel_breadcrumbs *b) { +kfree (b); } static void insert_breadcrumb(struct i915_request *rq,
@@ -369,11 +373,11 @@ bool i915_request_enable_breadcrumb(struct i915_request *rq)* request submit/unsubmit path, and so we must be more careful to * acquire the right lock. */ - b = &READ_ONCE (rq->engine)->breadcrumbs; + b =READ_ONCE (rq->engine)->breadcrumbs;spin_lock (&b->irq_lock); -while (unlikely (b != &READ_ONCE (rq->engine)->breadcrumbs)) { +while (unlikely (b !=READ_ONCE (rq->engine)->breadcrumbs)) {spin_unlock (&b->irq_lock); - b = &READ_ONCE (rq->engine)->breadcrumbs; + b =READ_ONCE (rq->engine)->breadcrumbs;spin_lock (&b->irq_lock); }
@@ -394,7 +398,7 @@ bool i915_request_enable_breadcrumb(struct i915_request *rq)void i915_request_cancel_breadcrumb (struct i915_request *rq) { -struct intel_breadcrumbs *b = &rq->engine->breadcrumbs; +struct intel_breadcrumbs *b = rq->engine->breadcrumbs;/* * We must wait for b->irq_lock so that we know the interrupt handler
@@ -418,11 +422,11 @@ void i915_request_cancel_breadcrumb(struct i915_request *rq)void intel_engine_print_breadcrumbs (struct intel_engine_cs *engine,struct drm_printer *p) { -struct intel_breadcrumbs *b = &engine->breadcrumbs; +struct intel_breadcrumbs *b = engine->breadcrumbs;struct intel_context *ce;struct i915_request *rq; -if (list_empty (&b->signalers)) +if (!b ||list_empty (&b->signalers))return ;drm_printf (p,"Signals:\n" );
drivers/gpu/drm/i915/gt/intel_breadcrumbs.h new file +36 -0
@@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef __INTEL_BREADCRUMBS__ +#define __INTEL_BREADCRUMBS__ + +#include <linux/irq_work.h> + +#include "intel_engine_types.h" + +struct drm_printer ; +struct i915_request ; +struct intel_breadcrumbs ; + +struct intel_breadcrumbs * +intel_breadcrumbs_create (struct intel_engine_cs *irq_engine); +void intel_breadcrumbs_free (struct intel_breadcrumbs *b); + +void intel_breadcrumbs_reset (struct intel_breadcrumbs *b); +void intel_breadcrumbs_park (struct intel_breadcrumbs *b); + +static inline void +intel_engine_signal_breadcrumbs (struct intel_engine_cs *engine) +{ +irq_work_queue (&engine->breadcrumbs->irq_work); +} + +void intel_engine_print_breadcrumbs (struct intel_engine_cs *engine, +struct drm_printer *p); + +bool i915_request_enable_breadcrumb (struct i915_request *request); +void i915_request_cancel_breadcrumb (struct i915_request *request); + +#endif /* __INTEL_BREADCRUMBS__ */
drivers/gpu/drm/i915/gt/intel_breadcrumbs_types.h new file +47 -0
47 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_engine.h +0 -17
@@ -223,23 +223,6 @@ void intel_engine_get_instdone(const struct intel_engine_cs *engine,void intel_engine_init_execlists (struct intel_engine_cs *engine); -void intel_engine_init_breadcrumbs (struct intel_engine_cs *engine); -void intel_engine_fini_breadcrumbs (struct intel_engine_cs *engine); - -void intel_engine_disarm_breadcrumbs (struct intel_engine_cs *engine); - -static inline void -intel_engine_signal_breadcrumbs (struct intel_engine_cs *engine) -{ -irq_work_queue (&engine->breadcrumbs.irq_work); -} - -void intel_engine_reset_breadcrumbs (struct intel_engine_cs *engine); -void intel_engine_fini_breadcrumbs (struct intel_engine_cs *engine); - -void intel_engine_print_breadcrumbs (struct intel_engine_cs *engine, -struct drm_printer *p); -static inline u32 *__gen8_emit_pipe_control (u32 *batch,u32 flags0,u32 flags1,u32 offset) {memset (batch,0 ,6 *sizeof (u32));
drivers/gpu/drm/i915/gt/intel_engine_cs.c +12 -2
@@ -28,6 +28,7 @@#include "i915_drv.h" +#include "intel_breadcrumbs.h" #include "intel_context.h" #include "intel_engine.h" #include "intel_engine_pm.h"
@@ -700,8 +701,13 @@ static int engine_setup_common(struct intel_engine_cs *engine)if (err)return err; + engine->breadcrumbs =intel_breadcrumbs_create (engine); +if (!engine->breadcrumbs) { + err = -ENOMEM ; + goto err_status; + } +intel_engine_init_active (engine,ENGINE_PHYSICAL ); -intel_engine_init_breadcrumbs (engine);intel_engine_init_execlists (engine);intel_engine_init_cmd_parser (engine);intel_engine_init__pm (engine);
@@ -716,6 +722,10 @@ static int engine_setup_common(struct intel_engine_cs *engine)intel_engine_init_ctx_wa (engine);return 0 ; + +err_status: +cleanup_status_page (engine); +return err; }struct measure_breadcrumb {
@@ -902,9 +912,9 @@ void intel_engine_cleanup_common(struct intel_engine_cs *engine)tasklet_kill (&engine->execlists.tasklet);/* flush the callback */ cleanup_status_page (engine); +intel_breadcrumbs_free (engine->breadcrumbs);intel_engine_fini_retire (engine); -intel_engine_fini_breadcrumbs (engine);intel_engine_cleanup_cmd_parser (engine);if (engine->default_state)
drivers/gpu/drm/i915/gt/intel_engine_pm.c +2 -1
@@ -6,6 +6,7 @@#include "i915_drv.h" +#include "intel_breadcrumbs.h" #include "intel_context.h" #include "intel_engine.h" #include "intel_engine_heartbeat.h"
@@ -247,7 +248,7 @@ static int __engine_park(struct intel_wakeref *wf)call_idle_barriers (engine);/* cleanup after wedging */ intel_engine_park_heartbeat (engine); -intel_engine_disarm_breadcrumbs (engine); +intel_breadcrumbs_park (engine->breadcrumbs);/* Must be reset upon idling, or we may miss the busy wakeup. */ GEM_BUG_ON (engine->execlists.queue_priority_hint !=INT_MIN );
drivers/gpu/drm/i915/gt/intel_engine_types.h +3 -28
@@ -22,6 +22,7 @@#include "i915_pmu.h" #include "i915_priolist_types.h" #include "i915_selftest.h" +#include "intel_breadcrumbs_types.h" #include "intel_sseu.h" #include "intel_timeline_types.h" #include "intel_uncore.h"
@@ -373,34 +374,8 @@ struct intel_engine_cs {*/ struct ewma__engine_latency latency; -/* Rather than have every client wait upon all user interrupts, -* with the herd waking after every interrupt and each doing the -* heavyweight seqno dance, we delegate the task (of being the -* bottom-half of the user interrupt) to the first client. After -* every interrupt, we wake up one client, who does the heavyweight -* coherent seqno read and either goes back to sleep (if incomplete), -* or wakes up all the completed clients in parallel, before then -* transferring the bottom-half status to the next client in the queue. -* -* Compared to walking the entire list of waiters in a single dedicated -* bottom-half, we reduce the latency of the first waiter by avoiding -* a context switch, but incur additional coherent seqno reads when -* following the chain of request breadcrumbs. Since it is most likely -* that we have a single client waiting on each seqno, then reducing -* the overhead of waking that client is much preferred. -*/ -struct intel_breadcrumbs { -spinlock_t irq_lock; -struct list_head signalers; - -struct list_head signaled_requests; - -struct irq_work irq_work;/* for use from inside irq_lock */ - -unsigned int irq_enabled; - -bool irq_armed; - } breadcrumbs; +/* Keep track of all the seqno used, a trail of breadcrumbs */ +struct intel_breadcrumbs *breadcrumbs;struct intel_engine_pmu {/**
drivers/gpu/drm/i915/gt/intel_gt_irq.c +1 -0
@@ -8,6 +8,7 @@#include "i915_drv.h" #include "i915_irq.h" +#include "intel_breadcrumbs.h" #include "intel_gt.h" #include "intel_gt_irq.h" #include "intel_uncore.h"
drivers/gpu/drm/i915/gt/intel_lrc.c +8 -3
@@ -137,6 +137,7 @@#include "i915_perf.h" #include "i915_trace.h" #include "i915_vgpu.h" +#include "intel_breadcrumbs.h" #include "intel_context.h" #include "intel_engine_pm.h" #include "intel_gt.h"
@@ -4119,7 +4120,7 @@ static int execlists_resume(struct intel_engine_cs *engine) {intel_mocs_init_engine (engine); -intel_engine_reset_breadcrumbs (engine); +intel_breadcrumbs_reset (engine->breadcrumbs);if (GEM_SHOW_DEBUG () &&unexpected_starting_state (engine)) {struct drm_printer p =drm_debug_printer (__func__);
@@ -5704,9 +5705,7 @@ intel_execlists_create_virtual(struct intel_engine_cs **siblings,snprintf (ve->base.name,sizeof (ve->base.name),"virtual" );intel_engine_init_active (&ve->base,ENGINE_VIRTUAL ); -intel_engine_init_breadcrumbs (&ve->base);intel_engine_init_execlists (&ve->base); - ve->base.breadcrumbs.irq_armed = true;/* fake HW, used for irq_work */ ve->base.cops = &virtual_context_ops; ve->base.request_alloc = execlists_request_alloc;
@@ -5723,6 +5722,12 @@ intel_execlists_create_virtual(struct intel_engine_cs **siblings,intel_context_init (&ve->context, &ve->base); + ve->base.breadcrumbs =intel_breadcrumbs_create (NULL ); +if (!ve->base.breadcrumbs) { + err = -ENOMEM ; + goto err_put; + } +for (n =0 ; n < count; n++) {struct intel_engine_cs *sibling = siblings[n];
drivers/gpu/drm/i915/gt/intel_reset.c +1 -0
@@ -15,6 +15,7 @@#include "i915_drv.h" #include "i915_gpu_error.h" #include "i915_irq.h" +#include "intel_breadcrumbs.h" #include "intel_engine_pm.h" #include "intel_gt.h" #include "intel_gt_pm.h"
drivers/gpu/drm/i915/gt/intel_ring_submission.c +2 -1
@@ -32,6 +32,7 @@#include "gen6_ppgtt.h" #include "gen7_renderclear.h" #include "i915_drv.h" +#include "intel_breadcrumbs.h" #include "intel_context.h" #include "intel_gt.h" #include "intel_reset.h"
@@ -255,7 +256,7 @@ static int xcs_resume(struct intel_engine_cs *engine)else ring_setup_status_page (engine); -intel_engine_reset_breadcrumbs (engine); +intel_breadcrumbs_reset (engine->breadcrumbs);/* Enforce ordering by reading HEAD register back */ ENGINE_POSTING_READ (engine,RING_HEAD );
drivers/gpu/drm/i915/gt/intel_rps.c +1 -0
@@ -7,6 +7,7 @@#include <drm/i915_drm.h> #include "i915_drv.h" +#include "intel_breadcrumbs.h" #include "intel_gt.h" #include "intel_gt_clock_utils.h" #include "intel_gt_irq.h"
drivers/gpu/drm/i915/gt/mock_engine.c +7 -3
@@ -261,11 +261,12 @@ static void mock_engine_release(struct intel_engine_cs *engine)GEM_BUG_ON (timer_pending (&mock->hw_delay)); +intel_breadcrumbs_free (engine->breadcrumbs); +intel_context_unpin (engine->kernel_context);intel_context_put (engine->kernel_context);intel_engine_fini_retire (engine); -intel_engine_fini_breadcrumbs (engine); } struct intel_engine_cs *mock_engine(struct drm_i915_private *i915,
@@ -323,11 +324,14 @@ int mock_engine_init(struct intel_engine_cs *engine)struct intel_context *ce;intel_engine_init_active (engine,ENGINE_MOCK ); -intel_engine_init_breadcrumbs (engine);intel_engine_init_execlists (engine);intel_engine_init__pm (engine);intel_engine_init_retire (engine); + engine->breadcrumbs =intel_breadcrumbs_create (NULL ); +if (!engine->breadcrumbs) +return -ENOMEM ; + ce =create_kernel_context (engine);if (IS_ERR (ce)) goto err_breadcrumbs;
@@ -339,7 +343,7 @@ int mock_engine_init(struct intel_engine_cs *engine)return 0 ; err_breadcrumbs: -intel_engine_fini_breadcrumbs (engine); +intel_breadcrumbs_free (engine->breadcrumbs);return -ENOMEM ; }
drivers/gpu/drm/i915/i915_irq.c +1 -0
@@ -41,6 +41,7 @@#include "display/intel_lpe_audio.h" #include "display/intel_psr.h" +#include "gt/intel_breadcrumbs.h" #include "gt/intel_gt.h" #include "gt/intel_gt_irq.h" #include "gt/intel_gt_pm_irq.h"
drivers/gpu/drm/i915/i915_request.c +1 -0
@@ -31,6 +31,7 @@#include <linux/sched/signal.h> #include "gem/i915_gem_context.h" +#include "gt/intel_breadcrumbs.h" #include "gt/intel_context.h" #include "gt/intel_ring.h" #include "gt/intel_rps.h"
drivers/gpu/drm/i915/i915_request.h +0 -4
@@ -365,10 +365,6 @@ void i915_request_submit(struct i915_request *request);void __i915_request_unsubmit (struct i915_request *request);void i915_request_unsubmit (struct i915_request *request); -/* Note: part of the intel_breadcrumbs family */ -bool i915_request_enable_breadcrumb (struct i915_request *request); -void i915_request_cancel_breadcrumb (struct i915_request *request); -long i915_request_wait (struct i915_request *rq,unsigned int flags,long timeout)
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 6/12 drm/i915/gt: Move intel_breadcrumbs_arm_irq earlier
In reply to Chris WilsonMove the __intel_breadcrumbs_arm_irq earlier, next to the disarm_irq, so that we can make use of it in the following patch.
--- drivers/gpu/drm/i915/gt/intel_breadcrumbs.c | 84 ++++++++++----------- 1 file changed, 42 insertions(+), 42 deletions(-)
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c +42 -42
@@ -54,6 +54,36 @@ static void irq_disable(struct intel_engine_cs *engine)spin_unlock (&engine->gt->irq_lock); } +static void __intel_breadcrumbs_arm_irq (struct intel_breadcrumbs *b) +{ +lockdep_assert_held (&b->irq_lock); + +if (!b->irq_engine || b->irq_armed) +return ; + +if (!intel_gt_pm_get_if_awake (b->irq_engine->gt)) +return ; + +/* +* The breadcrumb irq will be disarmed on the interrupt after the +* waiters are signaled. This gives us a single interrupt window in +* which we can add a new waiter and avoid the cost of re-enabling +* the irq. +*/ +WRITE_ONCE (b->irq_armed, true); + +/* +* Since we are waiting on a request, the GPU should be busy +* and should have its own rpm reference. This is tracked +* by i915->gt.awake, we can forgo holding our own wakref +* for the interrupt as before i915->gt.awake is released (when +* the driver is idle) we disarm the breadcrumbs. +*/ + +if (!b->irq_enabled++) +irq_enable (b->irq_engine); +} +static void __intel_breadcrumbs_disarm_irq (struct intel_breadcrumbs *b) {lockdep_assert_held (&b->irq_lock);
@@ -69,18 +99,6 @@ static void __intel_breadcrumbs_disarm_irq(struct intel_breadcrumbs *b)intel_gt_pm_put_async (b->irq_engine->gt); } -void intel_breadcrumbs_park (struct intel_breadcrumbs *b) -{ -unsigned long flags; - -if (!READ_ONCE (b->irq_armed)) -return ; - -spin_lock_irqsave (&b->irq_lock, flags); -__intel_breadcrumbs_disarm_irq (b); -spin_unlock_irqrestore (&b->irq_lock, flags); -} -static inline bool __request_completed (const struct i915_request *rq) {return i915_seqno_passed (__hwsp_seqno (rq), rq->fence.seqno);
@@ -214,36 +232,6 @@ static void signal_irq_work(struct irq_work *work) } } -static void __intel_breadcrumbs_arm_irq (struct intel_breadcrumbs *b) -{ -lockdep_assert_held (&b->irq_lock); - -if (!b->irq_engine || b->irq_armed) -return ; - -if (!intel_gt_pm_get_if_awake (b->irq_engine->gt)) -return ; - -/* -* The breadcrumb irq will be disarmed on the interrupt after the -* waiters are signaled. This gives us a single interrupt window in -* which we can add a new waiter and avoid the cost of re-enabling -* the irq. -*/ -WRITE_ONCE (b->irq_armed, true); - -/* -* Since we are waiting on a request, the GPU should be busy -* and should have its own rpm reference. This is tracked -* by i915->gt.awake, we can forgo holding our own wakref -* for the interrupt as before i915->gt.awake is released (when -* the driver is idle) we disarm the breadcrumbs. -*/ - -if (!b->irq_enabled++) -irq_enable (b->irq_engine); -} -struct intel_breadcrumbs *intel_breadcrumbs_create (struct intel_engine_cs *irq_engine) {
@@ -281,6 +269,18 @@ void intel_breadcrumbs_reset(struct intel_breadcrumbs *b)spin_unlock_irqrestore (&b->irq_lock, flags); } +void intel_breadcrumbs_park (struct intel_breadcrumbs *b) +{ +unsigned long flags; + +if (!READ_ONCE (b->irq_armed)) +return ; + +spin_lock_irqsave (&b->irq_lock, flags); +__intel_breadcrumbs_disarm_irq (b); +spin_unlock_irqrestore (&b->irq_lock, flags); +} +void intel_breadcrumbs_free (struct intel_breadcrumbs *b) {kfree (b);
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 7/12 drm/i915/gt: Hold context/request reference while breadcrumbs are active
In reply to Chris WilsonCurrently we hold no actual reference to the request nor context while they are attached to a breadcrumb. To avoid freeing the request/context too early, we serialise with cancel-breadcrumbs by taking the irq spinlock in i915_request_retire(). The alternative is to take a reference for a new breadcrumb and release it upon signaling; removing the more frequently hit contention point in i915_request_retire().
--- drivers/gpu/drm/i915/gt/intel_breadcrumbs.c | 57 ++++++++++++++++----- drivers/gpu/drm/i915/i915_request.c | 9 ++-- 2 files changed, 47 insertions(+), 19 deletions(-)
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c +43 -14
@@ -29,6 +29,7 @@#include "i915_drv.h" #include "i915_trace.h" #include "intel_breadcrumbs.h" +#include "intel_context.h" #include "intel_gt_pm.h" #include "intel_gt_requests.h"
@@ -99,6 +100,22 @@ static void __intel_breadcrumbs_disarm_irq(struct intel_breadcrumbs *b)intel_gt_pm_put_async (b->irq_engine->gt); } +static void add_signaling_context (struct intel_breadcrumbs *b, +struct intel_context *ce) +{ +intel_context_get (ce); +list_add_tail (&ce->signal_link, &b->signalers); +if (list_is_first (&ce->signal_link, &b->signalers)) +__intel_breadcrumbs_arm_irq (b); +} + +static void remove_signaling_context (struct intel_breadcrumbs *b, +struct intel_context *ce) +{ +list_del (&ce->signal_link); +intel_context_put (ce); +} +static inline bool __request_completed (const struct i915_request *rq) {return i915_seqno_passed (__hwsp_seqno (rq), rq->fence.seqno);
@@ -107,6 +124,9 @@ static inline bool __request_completed(const struct i915_request *rq)__maybe_unused static bool check_signal_order (struct intel_context *ce,struct i915_request *rq) { +if (rq->context != ce) +return false; +if (!list_is_last (&rq->signal_link, &ce->signals) &&i915_seqno_passed (rq->fence.seqno,list_next_entry (rq, signal_link)->fence.seqno))
@@ -158,10 +178,11 @@ static bool __signal_request(struct i915_request *rq, struct list_head *signals) {clear_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags); -if (!__dma_fence_signal (&rq->fence)) +if (!__dma_fence_signal (&rq->fence)) { +i915_request_put (rq);return false; + } -i915_request_get (rq);list_add_tail (&rq->signal_link, signals);return true; }
@@ -209,8 +230,8 @@ static void signal_irq_work(struct irq_work *work)/* Advance the list to the first incomplete request */ __list_del_many (&ce->signals, pos);if (&ce->signals == pos) {/* now empty */ -list_del_init (&ce->signal_link);add_retire (b, ce->timeline); +remove_signaling_context (b, ce); } } }
@@ -279,6 +300,9 @@ void intel_breadcrumbs_park(struct intel_breadcrumbs *b)spin_lock_irqsave (&b->irq_lock, flags);__intel_breadcrumbs_disarm_irq (b);spin_unlock_irqrestore (&b->irq_lock, flags); + +if (!list_empty (&b->signalers)) +irq_work_queue (&b->irq_work); }void intel_breadcrumbs_free (struct intel_breadcrumbs *b)
@@ -295,6 +319,8 @@ static void insert_breadcrumb(struct i915_request *rq,if (test_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags))return ; +i915_request_get (rq); +/* * If the request is already completed, we can transfer it * straight onto a signaled list, and queue the irq worker for
@@ -306,8 +332,6 @@ static void insert_breadcrumb(struct i915_request *rq,return ; } -__intel_breadcrumbs_arm_irq (b); -/* * We keep the seqno in retirement order, so we can break * inside intel_engine_signal_breadcrumbs as soon as we've
@@ -322,16 +346,19 @@ static void insert_breadcrumb(struct i915_request *rq,* start looking for our insertion point from the tail of * the list. */ -list_for_each_prev (pos, &ce->signals) { -struct i915_request *it = -list_entry (pos,typeof (*it), signal_link); - -if (i915_seqno_passed (rq->fence.seqno, it->fence.seqno)) -break ; +if (list_empty (&ce->signals)) { +add_signaling_context (b, ce); + pos = &ce->signals; + }else { +list_for_each_prev (pos, &ce->signals) { +struct i915_request *it = +list_entry (pos,typeof (*it), signal_link); + +if (i915_seqno_passed (rq->fence.seqno, it->fence.seqno)) +break ; + } }list_add (&rq->signal_link, pos); -if (pos == &ce->signals)/* catch transitions from empty list */ -list_move_tail (&ce->signal_link, &b->signalers);GEM_BUG_ON (!check_signal_order (ce, rq));set_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags);
@@ -412,9 +439,10 @@ void i915_request_cancel_breadcrumb(struct i915_request *rq)list_del (&rq->signal_link);if (list_empty (&ce->signals)) -list_del_init (&ce->signal_link); +remove_signaling_context (b, ce);clear_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags); +i915_request_put (rq); }spin_unlock (&b->irq_lock); }
@@ -429,6 +457,7 @@ void intel_engine_print_breadcrumbs(struct intel_engine_cs *engine,if (!b ||list_empty (&b->signalers))return ; +drm_printf (p,"IRQ: %s\n" ,enableddisabled (b->irq_armed));drm_printf (p,"Signals:\n" );spin_lock_irq (&b->irq_lock);
drivers/gpu/drm/i915/i915_request.c +4 -5
@@ -318,12 +318,11 @@ bool i915_request_retire(struct i915_request *rq)__i915_request_fill (rq,POISON_FREE ); rq->ring->head = rq->postfix; -spin_lock_irq (&rq->lock); -if (!i915_request_signaled (rq)) +if (!i915_request_signaled (rq)) { +spin_lock_irq (&rq->lock);dma_fence_signal_locked (&rq->fence); -if (test_bit (DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT , &rq->fence.flags)) -i915_request_cancel_breadcrumb (rq); -spin_unlock_irq (&rq->lock); +spin_unlock_irq (&rq->lock); + }if (i915_request_has_waitboost (rq)) {GEM_BUG_ON (!atomic_read (&rq->engine->gt->rps.num_waiters));
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 8/12 drm/i915/gt: Track signaled breadcrumbs outside of the breadcrumb spinlock
In reply to Chris WilsonMake b->signaled_requests a lockless-list so that we can manipulate it outside of the b->irq_lock.
--- drivers/gpu/drm/i915/gt/intel_breadcrumbs.c | 30 +++++++++++-------- .../gpu/drm/i915/gt/intel_breadcrumbs_types.h | 2 +- drivers/gpu/drm/i915/i915_request.h | 6 +++- 3 files changed, 23 insertions(+), 15 deletions(-)
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c +17 -13
@@ -174,16 +174,13 @@ static void add_retire(struct intel_breadcrumbs *b, struct intel_timeline *tl)intel_engine_add_retire (b->irq_engine, tl); } -static bool __signal_request (struct i915_request *rq,struct list_head *signals) +static bool __signal_request (struct i915_request *rq) { -clear_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags); -if (!__dma_fence_signal (&rq->fence)) {i915_request_put (rq);return false; } -list_add_tail (&rq->signal_link, signals);return true; }
@@ -191,17 +188,19 @@ static void signal_irq_work(struct irq_work *work) {struct intel_breadcrumbs *b =container_of (work,typeof (*b), irq_work);const ktime_t timestamp =ktime_get (); +struct llist_node *signal, *sn;struct intel_context *ce, *cn;struct list_head *pos, *next; -LIST_HEAD (signal); + + signal =NULL ; +if (unlikely (!llist_empty (&b->signaled_requests))) + signal =llist_del_all (&b->signaled_requests);spin_lock (&b->irq_lock); -if (list_empty (&b->signalers)) +if (!signal &&list_empty (&b->signalers))__intel_breadcrumbs_disarm_irq (b); -list_splice_init (&b->signaled_requests, &signal); -list_for_each_entry_safe (ce, cn, &b->signalers, signal_link) {GEM_BUG_ON (list_empty (&ce->signals));
@@ -218,7 +217,11 @@ static void signal_irq_work(struct irq_work *work)* spinlock as the callback chain may end up adding * more signalers to the same context or engine. */ -__signal_request (rq, &signal); +clear_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags); +if (__signal_request (rq)) { + rq->signal_node.next = signal; + signal = &rq->signal_node; + } }/*
@@ -238,9 +241,9 @@ static void signal_irq_work(struct irq_work *work)spin_unlock (&b->irq_lock); -list_for_each_safe (pos, next, &signal) { +llist_for_each_safe (signal, sn, signal) {struct i915_request *rq = -list_entry (pos,typeof (*rq), signal_link); +llist_entry (signal,typeof (*rq), signal_node);struct list_head cb_list;spin_lock (&rq->lock);
@@ -264,7 +267,7 @@ intel_breadcrumbs_create(struct intel_engine_cs *irq_engine)spin_lock_init (&b->irq_lock);INIT_LIST_HEAD (&b->signalers); -INIT_LIST_HEAD (&b->signaled_requests); +init_llist_head (&b->signaled_requests);init_irq_work (&b->irq_work, signal_irq_work);
@@ -327,7 +330,8 @@ static void insert_breadcrumb(struct i915_request *rq,* its signal completion. */ if (__request_completed (rq)) { -if (__signal_request (rq, &b->signaled_requests)) +if (__signal_request (rq) && +llist_add (&rq->signal_node, &b->signaled_requests))irq_work_queue (&b->irq_work);return ; }
drivers/gpu/drm/i915/gt/intel_breadcrumbs_types.h +1 -1
@@ -35,7 +35,7 @@ struct intel_breadcrumbs {struct intel_engine_cs *irq_engine;struct list_head signalers; -struct list_head signaled_requests; +struct llist_head signaled_requests;struct irq_work irq_work;/* for use from inside irq_lock */
drivers/gpu/drm/i915/i915_request.h +5 -1
@@ -176,7 +176,11 @@ struct i915_request {struct intel_context *context;struct intel_ring *ring;struct intel_timeline __rcu *timeline; -struct list_head signal_link; + +union { +struct list_head signal_link; +struct llist_node signal_node; + };/* * The rcu epoch of when this request was allocated. Used to judiciously
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 9/12 drm/i915/gt: Protect context lifetime with RCU
In reply to Chris WilsonAllow a brief period for continued access to a dead intel_context by deferring the release of the struct until after an RCU grace period. As we are using a dedicated slab cache for the contexts, we can defer the release of the slab pages via RCU, with the caveat that individual structs may be reused from the freelist within an RCU grace period. To handle that, we have to avoid clearing members of the zombie struct.
--- drivers/gpu/drm/i915/gt/intel_context.c | 330 +++++++++++++----------- drivers/gpu/drm/i915/i915_active.c | 10 + drivers/gpu/drm/i915/i915_active.h | 2 + drivers/gpu/drm/i915/i915_utils.h | 7 + 4 files changed, 202 insertions(+), 147 deletions(-)
drivers/gpu/drm/i915/gt/intel_context.c +183 -147
@@ -22,7 +22,7 @@ static struct i915_global_context {static struct intel_context *intel_context_alloc (void ) { -return kmem_cache_zalloc (global.slab_ce,GFP_KERNEL ); +return kmem_cache_alloc (global.slab_ce,GFP_KERNEL ); }void intel_context_free (struct intel_context *ce)
@@ -30,6 +30,177 @@ void intel_context_free(struct intel_context *ce)kmem_cache_free (global.slab_ce, ce); } +static int __context_pin_state (struct i915_vma *vma) +{ +unsigned int bias =i915_ggtt_pin_bias (vma) |PIN_OFFSET_BIAS ; +int err; + + err =i915_ggtt_pin (vma,0 , bias |PIN_HIGH ); +if (err) +return err; + + err =i915_active_acquire (&vma->active); +if (err) + goto err_unpin; + +/* +* And mark it as a globally pinned object to let the shrinker know +* it cannot reclaim the object until we release it. +*/ +i915_vma_make_unshrinkable (vma); + vma->obj->mm.dirty = true; + +return 0 ; + +err_unpin: +i915_vma_unpin (vma); +return err; +} + +static void __context_unpin_state (struct i915_vma *vma) +{ +i915_vma_make_shrinkable (vma); +i915_active_release (&vma->active); +__i915_vma_unpin (vma); +} + +static int __ring_active (struct intel_ring *ring) +{ +int err; + + err =intel_ring_pin (ring); +if (err) +return err; + + err =i915_active_acquire (&ring->vma->active); +if (err) + goto err_pin; + +return 0 ; + +err_pin: +intel_ring_unpin (ring); +return err; +} + +static void __ring_retire (struct intel_ring *ring) +{ +i915_active_release (&ring->vma->active); +intel_ring_unpin (ring); +} + +__i915_active_call +static void __intel_context_retire(struct i915_active *active) +{ +struct intel_context *ce =container_of (active,typeof (*ce), active); + +CE_TRACE (ce,"retire runtime: { total:%lluns, avg:%lluns }\n" , +intel_context_get_total_runtime_ns (ce), +intel_context_get_avg_runtime_ns (ce)); + +set_bit (CONTEXT_VALID_BIT , &ce->flags); +if (ce->state) +__context_unpin_state (ce->state); + +intel_timeline_unpin (ce->timeline); +__ring_retire (ce->ring); + +intel_context_put (ce); +} + +static int __intel_context_active (struct i915_active *active) +{ +struct intel_context *ce =container_of (active,typeof (*ce), active); +int err; + +CE_TRACE (ce,"active\n" ); + +intel_context_get (ce); + + err =__ring_active (ce->ring); +if (err) + goto err_put; + + err =intel_timeline_pin (ce->timeline); +if (err) + goto err_ring; + +if (!ce->state) +return 0 ; + + err =__context_pin_state (ce->state); +if (err) + goto err_timeline; + +return 0 ; + +err_timeline: +intel_timeline_unpin (ce->timeline); +err_ring: +__ring_retire (ce->ring); +err_put: +intel_context_put (ce); +return err; +} + +static void __intel_context_ctor (void *arg) +{ +struct intel_context *ce = arg; + +INIT_LIST_HEAD (&ce->signal_link); +INIT_LIST_HEAD (&ce->signals); + +atomic_set (&ce->pin_count,0 ); +mutex_init (&ce->pin_mutex); + + ce->active_count =0 ; +i915_active_init (&ce->active, + __intel_context_active, __intel_context_retire); + + ce->inflight =NULL ; + ce->lrc_reg_state =NULL ; + ce->lrc.desc =0 ; +} + +static void +__intel_context_init (struct intel_context *ce,struct intel_engine_cs *engine) +{ +GEM_BUG_ON (!engine->cops); +GEM_BUG_ON (!engine->gt->vm); + +kref_init (&ce->ref); +i915_active_reinit (&ce->active); +mutex_reinit (&ce->pin_mutex); + + ce->engine = engine; + ce->ops = engine->cops; + ce->sseu = engine->sseu; + + ce->wa_bb_page =0 ; + ce->flags =0 ; + ce->tag =0 ; + +memset (&ce->runtime,0 ,sizeof (ce->runtime)); + + ce->vm =i915_vm_get (engine->gt->vm); + ce->gem_context =NULL ; + + ce->ring =__intel_context_ring_size (SZ_4K ); + ce->timeline =NULL ; + ce->state =NULL ; + +GEM_BUG_ON (atomic_read (&ce->pin_count)); +GEM_BUG_ON (ce->active_count); +GEM_BUG_ON (ce->inflight); +} + +void +intel_context_init (struct intel_context *ce,struct intel_engine_cs *engine) +{ +__intel_context_ctor (ce); +__intel_context_init (ce, engine); +} +struct intel_context *intel_context_create (struct intel_engine_cs *engine) {
@@ -39,7 +210,7 @@ intel_context_create(struct intel_engine_cs *engine)if (!ce)return ERR_PTR (-ENOMEM ); -intel_context_init (ce, engine); +__intel_context_init (ce, engine);return ce; }
@@ -158,154 +329,13 @@ void intel_context_unpin(struct intel_context *ce)/* * Once released, we may asynchronously drop the active reference. * As that may be the only reference keeping the context alive, -* take an extra now so that it is not freed before we finish +* hold onto RCU so that it is not freed before we finish * dereferencing it. */ -intel_context_get (ce); +rcu_read_lock ();intel_context_active_release (ce); -intel_context_put (ce); -} - -static int __context_pin_state (struct i915_vma *vma) -{ -unsigned int bias =i915_ggtt_pin_bias (vma) |PIN_OFFSET_BIAS ; -int err; - - err =i915_ggtt_pin (vma,0 , bias |PIN_HIGH ); -if (err) -return err; - - err =i915_active_acquire (&vma->active); -if (err) - goto err_unpin; - -/* -* And mark it as a globally pinned object to let the shrinker know -* it cannot reclaim the object until we release it. -*/ -i915_vma_make_unshrinkable (vma); - vma->obj->mm.dirty = true; - -return 0 ; - -err_unpin: -i915_vma_unpin (vma); -return err; -} - -static void __context_unpin_state (struct i915_vma *vma) -{ -i915_vma_make_shrinkable (vma); -i915_active_release (&vma->active); -__i915_vma_unpin (vma); -} - -static int __ring_active (struct intel_ring *ring) -{ -int err; - - err =intel_ring_pin (ring); -if (err) -return err; - - err =i915_active_acquire (&ring->vma->active); -if (err) - goto err_pin; - -return 0 ; - -err_pin: -intel_ring_unpin (ring); -return err; -} - -static void __ring_retire (struct intel_ring *ring) -{ -i915_active_release (&ring->vma->active); -intel_ring_unpin (ring); +rcu_read_unlock (); } - -__i915_active_call -static void __intel_context_retire(struct i915_active *active) -{ -struct intel_context *ce =container_of (active,typeof (*ce), active); - -CE_TRACE (ce,"retire runtime: { total:%lluns, avg:%lluns }\n" , -intel_context_get_total_runtime_ns (ce), -intel_context_get_avg_runtime_ns (ce)); - -set_bit (CONTEXT_VALID_BIT , &ce->flags); -if (ce->state) -__context_unpin_state (ce->state); - -intel_timeline_unpin (ce->timeline); -__ring_retire (ce->ring); - -intel_context_put (ce); -} - -static int __intel_context_active (struct i915_active *active) -{ -struct intel_context *ce =container_of (active,typeof (*ce), active); -int err; - -CE_TRACE (ce,"active\n" ); - -intel_context_get (ce); - - err =__ring_active (ce->ring); -if (err) - goto err_put; - - err =intel_timeline_pin (ce->timeline); -if (err) - goto err_ring; - -if (!ce->state) -return 0 ; - - err =__context_pin_state (ce->state); -if (err) - goto err_timeline; - -return 0 ; - -err_timeline: -intel_timeline_unpin (ce->timeline); -err_ring: -__ring_retire (ce->ring); -err_put: -intel_context_put (ce); -return err; -} - -void -intel_context_init (struct intel_context *ce, -struct intel_engine_cs *engine) -{ -GEM_BUG_ON (!engine->cops); -GEM_BUG_ON (!engine->gt->vm); - -kref_init (&ce->ref); - - ce->engine = engine; - ce->ops = engine->cops; - ce->sseu = engine->sseu; - ce->ring =__intel_context_ring_size (SZ_4K ); - -ewma_runtime_init (&ce->runtime.avg); - - ce->vm =i915_vm_get (engine->gt->vm); - -INIT_LIST_HEAD (&ce->signal_link); -INIT_LIST_HEAD (&ce->signals); - -mutex_init (&ce->pin_mutex); - -i915_active_init (&ce->active, - __intel_context_active, __intel_context_retire); -} -void intel_context_fini (struct intel_context *ce) {if (ce->timeline)
@@ -333,7 +363,13 @@ static struct i915_global_context global = { {int __init i915_global_context_init (void ) { - global.slab_ce =KMEM_CACHE (intel_context,SLAB_HWCACHE_ALIGN ); + global.slab_ce = +kmem_cache_create ("intel_context" , +sizeof (struct intel_context ), + __alignof__(struct intel_context ), +SLAB_HWCACHE_ALIGN | +SLAB_TYPESAFE_BY_RCU , + __intel_context_ctor);if (!global.slab_ce)return -ENOMEM ;
drivers/gpu/drm/i915/i915_active.c +10 -0
@@ -662,6 +662,16 @@ void i915_active_fini(struct i915_active *ref) }#endif +void i915_active_reinit (struct i915_active *ref) +{ +GEM_BUG_ON (!i915_active_is_idle (ref)); +debug_active_init (ref); +mutex_reinit (&ref->mutex); + + ref->cache =NULL ; + ref->tree =RB_ROOT ; +} +static inline bool is_idle_barrier (struct active_node *node,u64 idx) {return node->timeline == idx && !i915_active_fence_isset (&node->base);
drivers/gpu/drm/i915/i915_active.h +2 -0
@@ -219,6 +219,8 @@ void i915_active_fini(struct i915_active *ref);static inline void i915_active_fini (struct i915_active *ref) { }#endif +void i915_active_reinit (struct i915_active *ref); +int i915_active_acquire_preallocate_barrier (struct i915_active *ref,struct intel_engine_cs *engine);void i915_active_acquire_barrier (struct i915_active *ref);
drivers/gpu/drm/i915/i915_utils.h +7 -0
@@ -443,6 +443,13 @@ static inline bool timer_expired(const struct timer_list *t)return READ_ONCE (t->expires) && !timer_pending (t); } +static inline void mutex_reinit (struct mutex *lock) +{ +#if IS_ENABLED (CONFIG_DEBUG_MUTEXES ) + lock->magic = lock; +#endif +} +/* * This is a lookalike for IS_ENABLED() that takes a kconfig value, * e.g. CONFIG_DRM_I915_SPIN_REQUEST, and evaluates whether it is non-zero
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 10/12 drm/i915/gt: Split the breadcrumb spinlock between global and contexts
In reply to Chris WilsonAs we funnel more and more contexts into the breadcrumbs on an engine, the hold time of b->irq_lock grows. As we may then contend with the b->irq_lock during request submission, this increases the burden upon the engine->active.lock and so directly impacts both our execution latency and client latency. If we split the b->irq_lock by introducing a per-context spinlock to manage the signalers within a context, we then only need the b->irq_lock for enabling/disabling the interrupt and can avoid taking the lock for walking the list of contexts within the signal worker. Even with the current setup, this greatly reduces the number of times we have to take and fight for b->irq_lock.
--- drivers/gpu/drm/i915/gt/intel_breadcrumbs.c | 149 ++++++++++-------- drivers/gpu/drm/i915/gt/intel_context.c | 1 + drivers/gpu/drm/i915/gt/intel_context_types.h | 1 + 3 files changed, 84 insertions(+), 67 deletions(-)
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c +82 -67
@@ -103,17 +103,19 @@ static void __intel_breadcrumbs_disarm_irq(struct intel_breadcrumbs *b)static void add_signaling_context (struct intel_breadcrumbs *b,struct intel_context *ce) { -intel_context_get (ce); -list_add_tail (&ce->signal_link, &b->signalers); -if (list_is_first (&ce->signal_link, &b->signalers)) +lockdep_assert_held (&b->irq_lock); + +list_add_rcu (&ce->signal_link, &b->signalers); +if (list_is_last (&ce->signal_link, &b->signalers))__intel_breadcrumbs_arm_irq (b); }static void remove_signaling_context (struct intel_breadcrumbs *b,struct intel_context *ce) { -list_del (&ce->signal_link); -intel_context_put (ce); +spin_lock (&b->irq_lock); +list_del_rcu (&ce->signal_link); +spin_unlock (&b->irq_lock); }static inline bool __request_completed (const struct i915_request *rq)
@@ -189,20 +191,30 @@ static void signal_irq_work(struct irq_work *work)struct intel_breadcrumbs *b =container_of (work,typeof (*b), irq_work);const ktime_t timestamp =ktime_get ();struct llist_node *signal, *sn; -struct intel_context *ce, *cn; -struct list_head *pos, *next; +struct intel_context *ce; signal =NULL ;if (unlikely (!llist_empty (&b->signaled_requests))) signal =llist_del_all (&b->signaled_requests); -spin_lock (&b->irq_lock); +if (!signal &&READ_ONCE (b->irq_armed) &&list_empty (&b->signalers)) { +if (spin_trylock (&b->irq_lock)) { +if (list_empty (&b->signalers)) +__intel_breadcrumbs_disarm_irq (b); +spin_unlock (&b->irq_lock); + } + } + +rcu_read_lock (); +list_for_each_entry_rcu (ce, &b->signalers, signal_link) { +struct list_head *pos, *next; +bool release = false; -if (!signal &&list_empty (&b->signalers)) -__intel_breadcrumbs_disarm_irq (b); +if (!spin_trylock (&ce->signal_lock)) +continue ; -list_for_each_entry_safe (ce, cn, &b->signalers, signal_link) { -GEM_BUG_ON (list_empty (&ce->signals)); +if (list_empty (&ce->signals)) + goto unlock;list_for_each_safe (pos, next, &ce->signals) { struct i915_request *rq =
@@ -235,11 +247,16 @@ static void signal_irq_work(struct irq_work *work)if (&ce->signals == pos) {/* now empty */ add_retire (b, ce->timeline);remove_signaling_context (b, ce); + release = true; } } - } -spin_unlock (&b->irq_lock); +unlock: +spin_unlock (&ce->signal_lock); +if (release) +intel_context_put (ce); + } +rcu_read_unlock ();llist_for_each_safe (signal, sn, signal) { struct i915_request *rq =
@@ -313,9 +330,9 @@ void intel_breadcrumbs_free(struct intel_breadcrumbs *b)kfree (b); } -static void insert_breadcrumb (struct i915_request *rq, -struct intel_breadcrumbs *b) +static void insert_breadcrumb (struct i915_request *rq) { +struct intel_breadcrumbs *b =READ_ONCE (rq->engine)->breadcrumbs;struct intel_context *ce = rq->context;struct list_head *pos;
@@ -351,7 +368,33 @@ static void insert_breadcrumb(struct i915_request *rq,* the list. */ if (list_empty (&ce->signals)) { +/* +* rq->engine is locked by rq->engine->active.lock. That +* however is not known until after rq->engine has been +* dereferenced and the lock acquired. Hence we acquire the +* lock and then validate that rq->engine still matches the +* lock we hold for it. +* +* Here, we are using the breadcrumb lock as a proxy for the +* rq->engine->active.lock, and we know that since the +* breadcrumb will be serialised within i915_request_submit +* the engine cannot change while active as long as we hold +* the breadcrumb lock on that engine. +* +* From the dma_fence_enable_signaling() path, we are outside +* of the request submit/unsubmit path, and so we must be more +* careful to acquire the right lock. +*/ +intel_context_get (ce); +spin_lock (&b->irq_lock); +while (unlikely (b !=READ_ONCE (rq->engine)->breadcrumbs)) { +spin_unlock (&b->irq_lock); + b =READ_ONCE (rq->engine)->breadcrumbs; +spin_lock (&b->irq_lock); + }add_signaling_context (b, ce); +spin_unlock (&b->irq_lock); + pos = &ce->signals; }else {list_for_each_prev (pos, &ce->signals) {
@@ -373,7 +416,7 @@ static void insert_breadcrumb(struct i915_request *rq,bool i915_request_enable_breadcrumb (struct i915_request *rq) { -struct intel_breadcrumbs *b; +struct intel_context *ce = rq->context;/* Serialises with i915_request_retire() using rq->lock */ if (test_bit (DMA_FENCE_FLAG_SIGNALED_BIT , &rq->fence.flags))
@@ -388,67 +431,37 @@ bool i915_request_enable_breadcrumb(struct i915_request *rq)if (!test_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags))return true; -/* -* rq->engine is locked by rq->engine->active.lock. That however -* is not known until after rq->engine has been dereferenced and -* the lock acquired. Hence we acquire the lock and then validate -* that rq->engine still matches the lock we hold for it. -* -* Here, we are using the breadcrumb lock as a proxy for the -* rq->engine->active.lock, and we know that since the breadcrumb -* will be serialised within i915_request_submit/i915_request_unsubmit, -* the engine cannot change while active as long as we hold the -* breadcrumb lock on that engine. -* -* From the dma_fence_enable_signaling() path, we are outside of the -* request submit/unsubmit path, and so we must be more careful to -* acquire the right lock. -*/ - b =READ_ONCE (rq->engine)->breadcrumbs; -spin_lock (&b->irq_lock); -while (unlikely (b !=READ_ONCE (rq->engine)->breadcrumbs)) { -spin_unlock (&b->irq_lock); - b =READ_ONCE (rq->engine)->breadcrumbs; -spin_lock (&b->irq_lock); - } - -/* -* Now that we are finally serialised with request submit/unsubmit, -* [with b->irq_lock] and with i915_request_retire() [via checking -* SIGNALED with rq->lock] confirm the request is indeed active. If -* it is no longer active, the breadcrumb will be attached upon -* i915_request_submit(). -*/ +spin_lock (&ce->signal_lock);if (test_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags)) -insert_breadcrumb (rq, b); - -spin_unlock (&b->irq_lock); +insert_breadcrumb (rq); +spin_unlock (&ce->signal_lock);return true; }void i915_request_cancel_breadcrumb (struct i915_request *rq) { -struct intel_breadcrumbs *b = rq->engine->breadcrumbs; +struct intel_context *ce = rq->context; +bool release = false; -/* -* We must wait for b->irq_lock so that we know the interrupt handler -* has released its reference to the intel_context and has completed -* the DMA_FENCE_FLAG_SIGNALED_BIT/I915_FENCE_FLAG_SIGNAL dance (if -* required). -*/ -spin_lock (&b->irq_lock); +if (!test_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags)) +return ; + +spin_lock (&ce->signal_lock);if (test_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags)) { -struct intel_context *ce = rq->context; +clear_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags);list_del (&rq->signal_link); -if (list_empty (&ce->signals)) -remove_signaling_context (b, ce); +if (list_empty (&ce->signals)) { +remove_signaling_context (rq->engine->breadcrumbs, ce); + release = true; + } -clear_bit (I915_FENCE_FLAG_SIGNAL , &rq->fence.flags);i915_request_put (rq); } -spin_unlock (&b->irq_lock); +spin_unlock (&ce->signal_lock); +if (release) +intel_context_put (ce); } void intel_engine_print_breadcrumbs(struct intel_engine_cs *engine,
@@ -464,8 +477,9 @@ void intel_engine_print_breadcrumbs(struct intel_engine_cs *engine,drm_printf (p,"IRQ: %s\n" ,enableddisabled (b->irq_armed));drm_printf (p,"Signals:\n" ); -spin_lock_irq (&b->irq_lock); -list_for_each_entry (ce, &b->signalers, signal_link) { +rcu_read_lock (); +list_for_each_entry_rcu (ce, &b->signalers, signal_link) { +spin_lock_irq (&ce->signal_lock);list_for_each_entry (rq, &ce->signals, signal_link) { drm_printf(p, "\t[%llx:%llx%s] @ %dms\n", rq->fence.context, rq->fence.seqno,
@@ -474,6 +488,7 @@ void intel_engine_print_breadcrumbs(struct intel_engine_cs *engine,"" , jiffies_to_msecs(jiffies - rq->emitted_jiffies)); } +spin_unlock_irq (&ce->signal_lock); } -spin_unlock_irq (&b->irq_lock); +rcu_read_unlock (); }
drivers/gpu/drm/i915/gt/intel_context.c +1 -0
@@ -147,6 +147,7 @@ static void __intel_context_ctor(void *arg) {struct intel_context *ce = arg; +spin_lock_init (&ce->signal_lock);INIT_LIST_HEAD (&ce->signal_link);INIT_LIST_HEAD (&ce->signals);
drivers/gpu/drm/i915/gt/intel_context_types.h +1 -0
@@ -51,6 +51,7 @@ struct intel_context {struct i915_address_space *vm;struct i915_gem_context __rcu *gem_context; +spinlock_t signal_lock;struct list_head signal_link;struct list_head signals;
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 11/12 drm/i915: Drop i915_request.lock serialisation around await_start
In reply to Chris WilsonOriginally, we used the signal->lock as a means of following the previous link in its timeline and peeking at the previous fence. However, we have replaced the explicit serialisation with a series of very careful probes that anticipate the links being deleted and the fences recycled before we are able to acquire a strong reference to it. We do not need the signal->lock crutch anymore, nor want the contention.
--- drivers/gpu/drm/i915/i915_request.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_request.c +8 -2
@@ -976,9 +976,16 @@ i915_request_await_start(struct i915_request *rq, struct i915_request *signal)if (i915_request_started (signal))return 0 ; +/* +* The caller holds a reference on @signal, but we do not serialise +* against it being retired and removed from the lists. +* +* We do not hold a reference to the request before @signal, and +* so must be very careful to ensure that it is not _recycled_ as +* we follow the link backwards. +*/ fence =NULL ;rcu_read_lock (); -spin_lock_irq (&signal->lock); do { struct list_head *pos = READ_ONCE(signal->link.prev); struct i915_request *prev;
@@ -1009,7 +1016,6 @@ i915_request_await_start(struct i915_request *rq, struct i915_request *signal) fence = &prev->fence; }while (0 ); -spin_unlock_irq (&signal->lock);rcu_read_unlock ();if (!fence)return 0 ;
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 12/12 drm/i915: Drop i915_request.lock requirement for intel_rps_boost()
In reply to Chris WilsonSince we use a flag within i915_request.flags to indicate when we have boosted the request (so that we only apply the boost) once, this can be used as the serialisation with i915_request_retire() to avoid having to explicitly take the i915_request.lock which is more heavily contended.
--- drivers/gpu/drm/i915/gt/intel_rps.c | 15 ++++++--------- drivers/gpu/drm/i915/i915_request.c | 4 +--- 2 files changed, 7 insertions(+), 12 deletions(-)
drivers/gpu/drm/i915/gt/intel_rps.c +6 -9
@@ -889,17 +889,15 @@ void intel_rps_park(struct intel_rps *rps)void intel_rps_boost (struct i915_request *rq) { -struct intel_rps *rps = &READ_ONCE (rq->engine)->gt->rps; -unsigned long flags; - -if (i915_request_signaled (rq) || !intel_rps_is_active (rps)) +if (i915_request_signaled (rq) ||i915_request_has_waitboost (rq))return ;/* Serializes with i915_request_retire() */ -spin_lock_irqsave (&rq->lock, flags); -if (!i915_request_has_waitboost (rq) && - !dma_fence_is_signaled_locked (&rq->fence)) { -set_bit (I915_FENCE_FLAG_BOOST , &rq->fence.flags); +if (!test_and_set_bit (I915_FENCE_FLAG_BOOST , &rq->fence.flags)) { +struct intel_rps *rps = &READ_ONCE (rq->engine)->gt->rps; + +if (!intel_rps_is_active (rps)) +return ;GT_TRACE (rps_to_gt (rps),"boost fence:%llx:%llx\n" , rq->fence.context, rq->fence.seqno);
@@ -910,7 +908,6 @@ void intel_rps_boost(struct i915_request *rq)atomic_inc (&rps->boosts); } -spin_unlock_irqrestore (&rq->lock, flags); }int intel_rps_set (struct intel_rps *rps,u8 val)
drivers/gpu/drm/i915/i915_request.c +1 -3
@@ -324,10 +324,8 @@ bool i915_request_retire(struct i915_request *rq)spin_unlock_irq (&rq->lock); } -if (i915_request_has_waitboost (rq)) { -GEM_BUG_ON (!atomic_read (&rq->engine->gt->rps.num_waiters)); +if (test_and_set_bit (I915_FENCE_FLAG_BOOST , &rq->fence.flags))atomic_dec (&rq->engine->gt->rps.num_waiters); - }/* * We only loosely track inflight requests across preemption,
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [01/12] drm/i915: Remove gen check before calling intel_rps_boost
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [01/12] drm/i915: Remove gen check before calling intel_rps_boost
URL : https://patchwork.freedesktop.org/series/79988/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
e55a35c962bb drm/i915: Remove gen check before calling intel_rps_boost
04fbf7fabc07 drm/i915: Remove requirement for holding i915_request.lock for breadcrumbs
c12c89dac122 drm/i915/gt: Replace intel_engine_transfer_stale_breadcrumbs
712663ebd43b drm/i915/gt: Only transfer the virtual context to the new engine if active
-:28: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#28:
References: 6d06779e8672 ("drm/i915: Load balancing across a virtual engine"-:28: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 6d06779e8672 ("drm/i915: Load balancing across a virtual engine")' #28:
References: 6d06779e8672 ("drm/i915: Load balancing across a virtual engine"
total: 1 errors, 1 warnings, 0 checks, 81 lines checked7f9af8c69662 drm/i915/gt: Distinguish the virtual breadcrumbs from the irq breadcrumbs -:212: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #212:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 513 lines checked912b242b2268 drm/i915/gt: Move intel_breadcrumbs_arm_irq earlier 9ed189ae62fa drm/i915/gt: Hold context/request reference while breadcrumbs are active 5dfa302c9527 drm/i915/gt: Track signaled breadcrumbs outside of the breadcrumb spinlock cc2cd7609c9e drm/i915/gt: Protect context lifetime with RCUa91359c80fc4 drm/i915/gt: Split the breadcrumb spinlock between global and contexts -:287: CHECK:UNCOMMENTED_DEFINITION: spinlock_t definition without comment #287: FILE: drivers/gpu/drm/i915/gt/intel_context_types.h:54:
+ spinlock_t signal_lock;
total: 0 errors, 0 warnings, 1 checks, 248 lines checked 845e59d9f06b drm/i915: Drop i915_request.lock serialisation around await_start 5c5097e2fc38 drm/i915: Drop i915_request.lock requirement for intel_rps_boost()
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [01/12] drm/i915: Remove gen check before calling intel_rps_boost
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [01/12] drm/i915: Remove gen check before calling intel_rps_boost
URL : https://patchwork.freedesktop.org/series/79988/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.0 Fast mode used, each commit won't be checked separately.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [01/12] drm/i915: Remove gen check before calling intel_rps_boost
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [01/12] drm/i915: Remove gen check before calling intel_rps_boost
URL : https://patchwork.freedesktop.org/series/79988/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8807 -> Patchwork_18254
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_18254:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_selftest@live@gt_contexts:
- {fi-tgl-dsi}: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-tgl-dsi/igt@i915_selftest@live@gt_contexts.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-tgl-dsi/igt@i915_selftest@live@gt_contexts.html
Known issues
------------
Here are the changes found in Patchwork_18254 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s0:
- fi-tgl-u2: [PASS][3] -> [FAIL][4] ([i915#1888])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-tgl-u2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-tgl-u2/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-byt-j1900: [PASS][5] -> [DMESG-WARN][6] ([i915#1982])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-byt-j1900/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-byt-j1900/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-bsw-kefka: [PASS][7] -> [DMESG-WARN][8] ([i915#1982])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-bsw-kefka/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-bsw-kefka/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- fi-icl-u2: [PASS][9] -> [DMESG-WARN][10] ([i915#1982])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-icl-u2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-icl-u2/igt@[email protected]
* igt@kms_flip@basic-flip-vs-wf_vblank@c-hdmi-a2:
- fi-skl-guc: [PASS][11] -> [DMESG-WARN][12] ([i915#2203])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-skl-guc/igt@kms_flip@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-skl-guc/igt@kms_flip@[email protected]
* igt@vgem_basic@debugfs:
- fi-tgl-y: [PASS][13] -> [DMESG-WARN][14] ([i915#402]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-tgl-y/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-tgl-y/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3:
- fi-tgl-u2: [FAIL][15] ([i915#1888]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-tgl-u2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-tgl-u2/igt@[email protected]
* igt@gem_flink_basic@basic:
- fi-tgl-y: [DMESG-WARN][17] ([i915#402]) -> [PASS][18] +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-tgl-y/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-tgl-y/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-bsw-n3050: [DMESG-WARN][19] ([i915#1982]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-bsw-n3050/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-bsw-n3050/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-bsw-kefka: [DMESG-WARN][21] ([i915#1982]) -> [PASS][22] +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-bsw-kefka/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-bsw-kefka/igt@[email protected]
* igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1:
- fi-icl-u2: [DMESG-WARN][23] ([i915#1982]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-icl-u2/igt@kms_flip@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-icl-u2/igt@kms_flip@[email protected]
#### Warnings ####
* igt@gem_exec_suspend@basic-s0:
- fi-kbl-x1275: [DMESG-WARN][25] ([i915#1982] / [i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][26] ([i915#62] / [i915#92] / [i915#95]) +1 similar issue
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-kbl-x1275/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-kbl-x1275/igt@[email protected]
* igt@kms_force_connector_basic@force-edid:
- fi-kbl-x1275: [DMESG-WARN][27] ([i915#62] / [i915#92]) -> [DMESG-WARN][28] ([i915#62] / [i915#92] / [i915#95]) +6 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-kbl-x1275/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-kbl-x1275/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- fi-kbl-x1275: [DMESG-WARN][29] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][30] ([i915#62] / [i915#92]) +3 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/fi-kbl-x1275/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/fi-kbl-x1275/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2203]: https://gitlab.freedesktop.org/drm/intel/issues/2203
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (43 -> 37)
------------------------------
Missing (6): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-byt-clapper fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_8807 -> Patchwork_18254
CI-20190529: 20190529
CI_DRM_8807: 494850d613c74f24a5799710b346faa5cd12a407 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5749: 2fef871e791ceab7841b899691c443167550173d @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18254: 5c5097e2fc38c9ca124b012dfa25d67f85af47d0 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
5c5097e2fc38 drm/i915: Drop i915_request.lock requirement for intel_rps_boost() 845e59d9f06b drm/i915: Drop i915_request.lock serialisation around await_start a91359c80fc4 drm/i915/gt: Split the breadcrumb spinlock between global and contexts cc2cd7609c9e drm/i915/gt: Protect context lifetime with RCU5dfa302c9527 drm/i915/gt: Track signaled breadcrumbs outside of the breadcrumb spinlock 9ed189ae62fa drm/i915/gt: Hold context/request reference while breadcrumbs are active 912b242b2268 drm/i915/gt: Move intel_breadcrumbs_arm_irq earlier 7f9af8c69662 drm/i915/gt: Distinguish the virtual breadcrumbs from the irq breadcrumbs 712663ebd43b drm/i915/gt: Only transfer the virtual context to the new engine if active c12c89dac122 drm/i915/gt: Replace intel_engine_transfer_stale_breadcrumbs 04fbf7fabc07 drm/i915: Remove requirement for holding i915_request.lock for breadcrumbs e55a35c962bb drm/i915: Remove gen check before calling intel_rps_boost
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [01/12] drm/i915: Remove gen check before calling intel_rps_boost
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [01/12] drm/i915: Remove gen check before calling intel_rps_boost
URL : https://patchwork.freedesktop.org/series/79988/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_8807_full -> Patchwork_18254_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_18254_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_18254_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_18254_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_dp_aux_dev:
- shard-iclb: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-iclb2/igt@kms_dp_aux_dev.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-iclb7/igt@kms_dp_aux_dev.html
* igt@kms_flip@nonexisting-fb@b-dp1:
- shard-kbl: [PASS][3] -> [INCOMPLETE][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-kbl6/igt@kms_flip@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-kbl6/igt@kms_flip@[email protected]
Known issues
------------
Here are the changes found in Patchwork_18254_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_isolation@preservation-s3@bcs0:
- shard-kbl: [PASS][5] -> [DMESG-WARN][6] ([i915#180]) +4 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-kbl3/igt@gem_ctx_isolation@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-kbl2/igt@gem_ctx_isolation@[email protected]
* igt@gem_ctx_persistence@engines-mixed-process@vcs0:
- shard-skl: [PASS][7] -> [FAIL][8] ([i915#1528]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl7/igt@gem_ctx_persistence@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl6/igt@gem_ctx_persistence@[email protected]
* igt@gem_exec_whisper@basic-queues-priority:
- shard-glk: [PASS][9] -> [DMESG-WARN][10] ([i915#118] / [i915#95])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-glk9/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-glk7/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-skl: [PASS][11] -> [FAIL][12] ([i915#454])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl7/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl6/igt@[email protected]
* igt@i915_selftest@mock@contexts:
- shard-apl: [PASS][13] -> [INCOMPLETE][14] ([i915#1635] / [i915#2119])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-apl6/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-apl7/igt@i915_selftest@[email protected]
* igt@kms_atomic_transition@plane-all-transition-nonblocking-fencing@edp-1-pipe-a:
- shard-tglb: [PASS][15] -> [INCOMPLETE][16] ([i915#2242]) +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-tglb2/igt@kms_atomic_transition@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-tglb7/igt@kms_atomic_transition@[email protected]
* igt@kms_big_fb@x-tiled-64bpp-rotate-180:
- shard-glk: [PASS][17] -> [DMESG-FAIL][18] ([i915#118] / [i915#95])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-glk2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-glk8/igt@[email protected]
* igt@kms_big_fb@y-tiled-16bpp-rotate-0:
- shard-skl: [PASS][19] -> [DMESG-WARN][20] ([i915#1982]) +18 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl6/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl9/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-glk: [PASS][21] -> [FAIL][22] ([i915#72])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-glk8/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-glk9/igt@[email protected]
* igt@kms_flip@nonexisting-fb@a-edp1:
- shard-tglb: [PASS][23] -> [INCOMPLETE][24] ([i915#2240])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-tglb6/igt@kms_flip@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-tglb5/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate-interruptible@a-edp1:
- shard-skl: [PASS][25] -> [DMESG-FAIL][26] ([i915#1982])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl3/igt@kms_flip@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl5/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@b-edp1:
- shard-skl: [PASS][27] -> [FAIL][28] ([i915#2122])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl4/igt@kms_flip@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl10/igt@kms_flip@[email protected]
* igt@kms_flip_tiling@flip-yf-tiled:
- shard-kbl: [PASS][29] -> [DMESG-WARN][30] ([i915#1982])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-kbl1/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-kbl4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-badstride:
- shard-glk: [PASS][31] -> [DMESG-WARN][32] ([i915#1982])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-glk3/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-glk4/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-rte:
- shard-tglb: [PASS][33] -> [DMESG-WARN][34] ([i915#1982]) +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-tglb7/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-tglb6/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-kbl: [PASS][35] -> [INCOMPLETE][36] ([i915#155])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-kbl2/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-kbl3/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][37] -> [DMESG-FAIL][38] ([fdo#108145] / [i915#1982])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl10/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl2/igt@[email protected]
* igt@kms_psr@psr2_sprite_blt:
- shard-iclb: [PASS][39] -> [SKIP][40] ([fdo#109441]) +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-iclb2/igt@kms_psr@psr2_sprite_blt.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-iclb8/igt@kms_psr@psr2_sprite_blt.html
#### Possible fixes ####
* igt@gem_eio@kms:
- shard-kbl: [INCOMPLETE][41] -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-kbl1/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-kbl4/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-tglb: [SKIP][43] ([i915#2190]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-tglb6/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-tglb1/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- shard-skl: [DMESG-WARN][45] ([i915#1982]) -> [PASS][46] +29 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl7/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl6/igt@[email protected]
* igt@i915_pm_rpm@system-suspend-modeset:
- shard-skl: [INCOMPLETE][47] ([i915#151]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl3/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl6/igt@[email protected]
* igt@kms_atomic_transition@plane-all-transition@edp-1-pipe-a:
- shard-tglb: [INCOMPLETE][49] ([i915#2242]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-tglb6/igt@kms_atomic_transition@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-tglb8/igt@kms_atomic_transition@[email protected]
* igt@kms_big_fb@linear-64bpp-rotate-0:
- shard-glk: [DMESG-FAIL][51] ([i915#118] / [i915#95]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-glk8/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-glk3/igt@[email protected]
* igt@kms_big_fb@yf-tiled-32bpp-rotate-270:
- shard-apl: [DMESG-WARN][53] ([i915#1635] / [i915#1982]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-apl4/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-apl8/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-skl: [INCOMPLETE][55] ([i915#300]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl1/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl7/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-pwrite-xtiled:
- shard-snb: [TIMEOUT][57] ([i915#1958] / [i915#2119]) -> [PASS][58] +4 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-snb5/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-snb1/igt@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank-interruptible@ab-hdmi-a1-hdmi-a2:
- shard-glk: [FAIL][59] ([i915#79]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-glk7/igt@kms_flip@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-glk1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-kbl: [DMESG-WARN][61] ([i915#180]) -> [PASS][62] +7 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-kbl2/igt@kms_flip@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-kbl3/igt@kms_flip@[email protected]
* igt@kms_flip@nonexisting-fb-interruptible@a-edp1:
- shard-iclb: [INCOMPLETE][63] ([i915#2240]) -> [PASS][64] +1 similar issue
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-iclb1/igt@kms_flip@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-iclb1/igt@kms_flip@[email protected]
* igt@kms_flip@nonexisting-fb-interruptible@b-dp1:
- shard-kbl: [INCOMPLETE][65] ([i915#2240]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-kbl1/igt@kms_flip@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-kbl4/igt@kms_flip@[email protected]
* igt@kms_flip_tiling@flip-changes-tiling-y:
- shard-skl: [FAIL][67] ([i915#699]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl5/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-pwrite:
- shard-iclb: [DMESG-WARN][69] ([i915#1982]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-iclb8/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-pwrite.html
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-iclb6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbcpsr-stridechange:
- shard-tglb: [DMESG-WARN][71] ([i915#1982]) -> [PASS][72] +1 similar issue
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-tglb5/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-tglb5/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-pri-indfb-multidraw:
- shard-iclb: [INCOMPLETE][73] ([i915#123]) -> [PASS][74]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-iclb1/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-iclb2/igt@[email protected]
* igt@perf_pmu@semaphore-busy@rcs0:
- shard-kbl: [FAIL][75] ([i915#1820]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-kbl6/igt@perf_pmu@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-kbl6/igt@perf_pmu@[email protected]
#### Warnings ####
* igt@gem_exec_reloc@basic-concurrent16:
- shard-snb: [TIMEOUT][77] ([i915#1958] / [i915#2119]) -> [FAIL][78] ([i915#1930])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-snb5/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-snb1/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipa-atomic:
- shard-snb: [TIMEOUT][79] ([i915#1958] / [i915#2119]) -> [SKIP][80] ([fdo#109271])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-snb5/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-snb1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-skl: [FAIL][81] ([fdo#108145] / [i915#265]) -> [DMESG-FAIL][82] ([fdo#108145] / [i915#1982]) +1 similar issue
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl1/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl4/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-basic:
- shard-skl: [DMESG-FAIL][83] ([fdo#108145] / [i915#1982]) -> [FAIL][84] ([fdo#108145] / [i915#265])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8807/shard-skl8/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/shard-skl3/igt@[email protected]
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#123]: https://gitlab.freedesktop.org/drm/intel/issues/123
[i915#151]: https://gitlab.freedesktop.org/drm/intel/issues/151
[i915#1528]: https://gitlab.freedesktop.org/drm/intel/issues/1528
[i915#155]: https://gitlab.freedesktop.org/drm/intel/issues/155
[i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1820]: https://gitlab.freedesktop.org/drm/intel/issues/1820
[i915#1930]: https://gitlab.freedesktop.org/drm/intel/issues/1930
[i915#1958]: https://gitlab.freedesktop.org/drm/intel/issues/1958
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2119]: https://gitlab.freedesktop.org/drm/intel/issues/2119
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2240]: https://gitlab.freedesktop.org/drm/intel/issues/2240
[i915#2242]: https://gitlab.freedesktop.org/drm/intel/issues/2242
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#300]: https://gitlab.freedesktop.org/drm/intel/issues/300
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#699]: https://gitlab.freedesktop.org/drm/intel/issues/699
[i915#72]: https://gitlab.freedesktop.org/drm/intel/issues/72
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (10 -> 11)
------------------------------
Additional (1): pig-icl-1065g7
Build changes
-------------
* Linux: CI_DRM_8807 -> Patchwork_18254
CI-20190529: 20190529
CI_DRM_8807: 494850d613c74f24a5799710b346faa5cd12a407 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5749: 2fef871e791ceab7841b899691c443167550173d @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18254: 5c5097e2fc38c9ca124b012dfa25d67f85af47d0 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18254/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx