Reduce interrupts-off time for execlists submission
Subsystems (2)
Since we started doing direct submission to reduce the initial submission stall, we split the submit tasklet into two: one part that was wholly undercontrol of the tasklet, and the rest called from mixed contexts. For the latter, we required additional extra spinlocks and atomic handling to ensure concurrent operations, and worse, required those sequences to use irq-off.
Instead of calling individual components of the submission process, we can just call the whole tasklet and so replace the individual locking with a known serialised calling context. That turns out to be far simpler, and reduces the irqoff time required for the tasklet, improving the parallelism of the hw. Slightly better latency, slightly higher throughput, and slightly lower impact on system latency. -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/12 drm/i915/gt: Decouple completed requests on unwind
Since the introduction of preempt-to-busy, requests can complete in the background, even while they are not on the engine->active.requests list. As such, the engine->active.request list itself is not in strict retirement order, and we have to scan the entire list while unwinding to not miss any. However, if the request is completed we currently leave it on the list [until retirement], but we could just as simply remove it and stop treating it as active. We would only have to then traverse it once while unwinding in quick succession.
--- drivers/gpu/drm/i915/gt/intel_lrc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/gt/intel_lrc.c +4 -2
@@ -1114,8 +1114,10 @@ __unwind_incomplete_requests(struct intel_engine_cs *engine)list_for_each_entry_safe_reverse (rq, rn, &engine->active.requests, sched.link) { -if (i915_request_completed (rq)) -continue ;/* XXX */ +if (i915_request_completed (rq)) { +list_del_init (&rq->sched.link); +continue ; + }__i915_request_unsubmit (rq);
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/gt: Check for a completed last request once
In reply to Chris WilsonPull the repeated check for the last active request being completed to a single spot, when deciding whether or not execlist preemption is required.
--- drivers/gpu/drm/i915/gt/intel_lrc.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/gt/intel_lrc.c +4 -10
@@ -2137,12 +2137,11 @@ static void execlists_dequeue(struct intel_engine_cs *engine)*/ if ((last = *active)) { -if (need_preempt (engine, last, rb)) { -if (i915_request_completed (last)) { -tasklet_hi_schedule (&execlists->tasklet); -return ; - } +if (i915_request_completed (last) && + !list_is_last (&last->sched.link, &engine->active.requests)) +return ; +if (need_preempt (engine, last, rb)) { ENGINE_TRACE(engine, "preempting last=%llx:%lld, prio=%d, hint=%d\n", last->fence.context,
@@ -2170,11 +2169,6 @@ static void execlists_dequeue(struct intel_engine_cs *engine) last =NULL ; }else if (need_timeslice (engine, last, rb) &×lice_expired (execlists, last)) { -if (i915_request_completed (last)) { -tasklet_hi_schedule (&execlists->tasklet); -return ; - } - ENGINE_TRACE(engine, "expired last=%llx:%lld, prio=%d, hint=%d, yield?=%s\n", last->fence.context,
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 direct submit with direct call to tasklet
In reply to Chris WilsonRather than having special case code for opportunistically calling process_csb() and performing a direct submit while holding the engine spinlock for submitting the request, simply call the tasklet directly. This allows us to retain the direct submission path, including the CS draining to allow fast/immediate submissions, without requiring any duplicated code paths.
The trickiest part here is to ensure that paired operations (such as schedule_in/schedule_out) remain under consistent locking domains, e.g. when pulled outside of the engine->active.lock
v2: Use bh kicking, see commit 3c53776e29f8 ("Mark HI and TASKLET softirq synchronous").
v3: Update engine-reset to be tasklet aware
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 4 +- .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 + drivers/gpu/drm/i915/gt/intel_engine_cs.c | 35 +++--- .../gpu/drm/i915/gt/intel_engine_heartbeat.c | 20 +-- drivers/gpu/drm/i915/gt/intel_lrc.c | 119 ++++++------------ drivers/gpu/drm/i915/gt/intel_reset.c | 60 +++++---- drivers/gpu/drm/i915/gt/intel_reset.h | 2 + drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 7 +- drivers/gpu/drm/i915/gt/selftest_lrc.c | 27 ++-- drivers/gpu/drm/i915/gt/selftest_reset.c | 8 +- drivers/gpu/drm/i915/i915_request.c | 2 + drivers/gpu/drm/i915/selftests/i915_request.c | 6 +- 12 files changed, 149 insertions(+), 143 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +3 -1
@@ -398,12 +398,14 @@ static bool __reset_engine(struct intel_engine_cs *engine)if (!intel_has_reset_engine (gt))return false; +local_bh_disable ();if (!test_and_set_bit (I915_RESET_ENGINE + engine->id, >->reset.flags)) { - success =intel_engine_reset (engine,NULL ) ==0 ; + success =__intel_engine_reset_bh (engine,NULL ) ==0 ;clear_and_wake_up_bit (I915_RESET_ENGINE + engine->id, >->reset.flags); } +local_bh_enable ();return success; }
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +2 -0
@@ -2362,7 +2362,9 @@ static void eb_request_add(struct i915_execbuffer *eb)__i915_request_skip (rq); } +local_bh_disable ();__i915_request_queue (rq, &attr); +local_bh_enable ();/* Try to clean up the client's timeline after submitting the request */ if (prev)
drivers/gpu/drm/i915/gt/intel_engine_cs.c +21 -14
@@ -903,32 +903,39 @@ static unsigned long stop_timeout(const struct intel_engine_cs *engine)return READ_ONCE (engine->props.stop_timeout_ms); } -int intel_engine_stop_cs (struct intel_engine_cs *engine) +static int __intel_engine_stop_cs (struct intel_engine_cs *engine, +int fast_timeout_us, +int slow_timeout_ms) {struct intel_uncore *uncore = engine->uncore; -const u32 base = engine->mmio_base; -const i915_reg_t mode =RING_MI_MODE (base); +const i915_reg_t mode =RING_MI_MODE (engine->mmio_base);int err; +intel_uncore_write_fw (uncore, mode,_MASKED_BIT_ENABLE (STOP_RING )); + err =__intel_wait_for_register_fw (engine->uncore, mode, +MODE_IDLE ,MODE_IDLE , + fast_timeout_us, + slow_timeout_ms, +NULL ); + +/* A final mmio read to let GPU writes be hopefully flushed to memory */ +intel_uncore_posting_read_fw (uncore, mode); +return err; +} + +int intel_engine_stop_cs (struct intel_engine_cs *engine) +{ +int err =0 ; +if (INTEL_GEN (engine->i915) <3 )return -ENODEV ;ENGINE_TRACE (engine,"\n" ); - -intel_uncore_write_fw (uncore, mode,_MASKED_BIT_ENABLE (STOP_RING )); - - err =0 ; -if (__intel_wait_for_register_fw (uncore, - mode,MODE_IDLE ,MODE_IDLE , -1000 ,stop_timeout (engine), -NULL )) { +if (__intel_engine_stop_cs (engine,1000 ,stop_timeout (engine))) {ENGINE_TRACE (engine,"timed out on STOP_RING -> IDLE\n" ); err = -ETIMEDOUT ; } -/* A final mmio read to let GPU writes be hopefully flushed to memory */ -intel_uncore_posting_read_fw (uncore, mode); -return err; }
drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c +13 -7
@@ -43,6 +43,17 @@ static void idle_pulse(struct intel_engine_cs *engine, struct i915_request *rq)i915_request_add_active_barriers (rq); } +static void heartbeat_commit (struct i915_request *rq, +const struct i915_sched_attr *attr) +{ +idle_pulse (rq->engine, rq); +__i915_request_commit (rq); + +local_bh_disable (); +__i915_request_queue (rq, attr); +local_bh_enable (); +} +static void show_heartbeat (const struct i915_request *rq,struct intel_engine_cs *engine) {
@@ -143,12 +154,10 @@ static void heartbeat(struct work_struct *wrk)if (IS_ERR (rq)) goto unlock; -idle_pulse (engine, rq);if (engine->i915->params.enable_hangcheck) engine->heartbeat.systole =i915_request_get (rq); -__i915_request_commit (rq); -__i915_request_queue (rq, &attr); +heartbeat_commit (rq, &attr); unlock:mutex_unlock (&ce->timeline->mutex);
@@ -229,10 +238,7 @@ int intel_engine_pulse(struct intel_engine_cs *engine) }__set_bit (I915_FENCE_FLAG_SENTINEL , &rq->fence.flags); -idle_pulse (engine, rq); - -__i915_request_commit (rq); -__i915_request_queue (rq, &attr); +heartbeat_commit (rq, &attr);GEM_BUG_ON (rq->sched.attr.priority <I915_PRIORITY_BARRIER ); err =0 ;
drivers/gpu/drm/i915/gt/intel_lrc.c +37 -82
277 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_reset.c +38 -22
126 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_reset.h +2 -0
@@ -34,6 +34,8 @@ void intel_gt_reset(struct intel_gt *gt, const char *reason);int intel_engine_reset (struct intel_engine_cs *engine,const char *reason); +int __intel_engine_reset_bh (struct intel_engine_cs *engine, +const char *reason);void __i915_request_reset (struct i915_request *rq,bool guilty);
drivers/gpu/drm/i915/gt/selftest_hangcheck.c +6 -1
@@ -1576,12 +1576,17 @@ static int __igt_atomic_reset_engine(struct intel_engine_cs *engine, engine->name, mode, p->name);tasklet_disable (t); +if (strcmp (p->name,"softirq" )) +local_bh_disable (); p->critical_section_begin (); - err =intel_engine_reset (engine,NULL ); + err =__intel_engine_reset_bh (engine,NULL ); p->critical_section_end (); +if (strcmp (p->name,"softirq" )) +local_bh_enable ();tasklet_enable (t); +tasklet_hi_schedule (t);if (err) pr_err("i915_reset_engine(%s:%s) failed under %s\n",
drivers/gpu/drm/i915/gt/selftest_lrc.c +17 -10
@@ -623,8 +623,10 @@ static int live_hold_reset(void *arg)/* We have our request executing, now remove it and reset */ +local_bh_disable ();if (test_and_set_bit (I915_RESET_ENGINE + id, >->reset.flags)) { +local_bh_enable ();intel_gt_set_wedged (gt); err = -EBUSY ; goto out;
@@ -638,12 +640,13 @@ static int live_hold_reset(void *arg)execlists_hold (engine, rq);GEM_BUG_ON (!i915_request_on_hold (rq)); -intel_engine_reset (engine,NULL ); +__intel_engine_reset_bh (engine,NULL );GEM_BUG_ON (rq->fence.error != -EIO );tasklet_enable (&engine->execlists.tasklet);clear_and_wake_up_bit (I915_RESET_ENGINE + id, >->reset.flags); +local_bh_enable ();/* Check that we do not resubmit the held request */ if (!i915_request_wait (rq,0 ,HZ /5 )) {
@@ -4572,8 +4575,10 @@ static int reset_virtual_engine(struct intel_gt *gt,GEM_BUG_ON (engine == ve->engine);/* Take ownership of the reset and tasklet */ +local_bh_disable ();if (test_and_set_bit (I915_RESET_ENGINE + engine->id, >->reset.flags)) { +local_bh_enable ();intel_gt_set_wedged (gt); err = -EBUSY ; goto out_heartbeat;
@@ -4593,12 +4598,13 @@ static int reset_virtual_engine(struct intel_gt *gt,execlists_hold (engine, rq);GEM_BUG_ON (!i915_request_on_hold (rq)); -intel_engine_reset (engine,NULL ); +__intel_engine_reset_bh (engine,NULL );GEM_BUG_ON (rq->fence.error != -EIO );/* Release our grasp on the engine, letting CS flow again */ tasklet_enable (&engine->execlists.tasklet);clear_and_wake_up_bit (I915_RESET_ENGINE + engine->id, >->reset.flags); +local_bh_enable ();/* Check that we do not resubmit the held request */ i915_request_get (rq);
@@ -6236,16 +6242,17 @@ static void garbage_reset(struct intel_engine_cs *engine,const unsigned int bit =I915_RESET_ENGINE + engine->id;unsigned long *lock = &engine->gt->reset.flags; -if (test_and_set_bit (bit, lock)) -return ; - -tasklet_disable (&engine->execlists.tasklet); +local_bh_disable (); +if (!test_and_set_bit (bit, lock)) { +tasklet_disable (&engine->execlists.tasklet); -if (!rq->fence.error) -intel_engine_reset (engine,NULL ); +if (!rq->fence.error) +__intel_engine_reset_bh (engine,NULL ); -tasklet_enable (&engine->execlists.tasklet); -clear_and_wake_up_bit (bit, lock); +tasklet_enable (&engine->execlists.tasklet); +clear_and_wake_up_bit (bit, lock); + } +local_bh_enable (); } static struct i915_request *garbage(struct intel_context *ce,
drivers/gpu/drm/i915/gt/selftest_reset.c +7 -1
@@ -132,11 +132,16 @@ static int igt_atomic_engine_reset(void *arg)for (p = igt_atomic_phases; p->name; p++) {GEM_TRACE ("intel_engine_reset(%s) under %s\n" , engine->name, p->name); +if (strcmp (p->name,"softirq" )) +local_bh_disable (); p->critical_section_begin (); - err =intel_engine_reset (engine,NULL ); + err =__intel_engine_reset_bh (engine,NULL ); p->critical_section_end (); +if (strcmp (p->name,"softirq" )) +local_bh_enable (); +if (err) {pr_err ("intel_engine_reset(%s) failed under %s\n" , engine->name, p->name);
@@ -146,6 +151,7 @@ static int igt_atomic_engine_reset(void *arg)intel_engine_pm_put (engine);tasklet_enable (&engine->execlists.tasklet); +tasklet_hi_schedule (&engine->execlists.tasklet);if (err)break ; }
drivers/gpu/drm/i915/i915_request.c +2 -0
@@ -1599,7 +1599,9 @@ void i915_request_add(struct i915_request *rq) attr = ctx->sched;rcu_read_unlock (); +local_bh_disable ();__i915_request_queue (rq, &attr); +local_bh_enable ();mutex_unlock (&tl->mutex); }
drivers/gpu/drm/i915/selftests/i915_request.c +1 -5
@@ -1926,9 +1926,7 @@ static int measure_inter_request(struct intel_context *ce)intel_ring_advance (rq, cs);i915_request_add (rq); } -local_bh_disable ();i915_sw_fence_commit (submit); -local_bh_enable ();intel_engine_flush_submission (ce->engine);heap_fence_put (submit);
@@ -2214,11 +2212,9 @@ static int measure_completion(struct intel_context *ce)intel_ring_advance (rq, cs);dma_fence_add_callback (&rq->fence, &cb.base, signal_cb); - -local_bh_disable ();i915_request_add (rq); -local_bh_enable (); +intel_engine_flush_submission (ce->engine);if (wait_for (READ_ONCE (sema[i]) ==-1 ,50 )) { err = -EIO ; goto err;
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: Use virtual_engine during execlists_dequeue
In reply to Chris WilsonRather than going back and forth between the rb_node entry and the virtual_engine type, store the ve local and reuse it. As the container_of conversion from rb_node to virtual_engine requires a variable offset, performing that conversion just once shaves off a bit of code.
v2: Keep a single virtual engine lookup, for typical use.
--- drivers/gpu/drm/i915/gt/intel_lrc.c | 209 ++++++++++++++-------------- 1 file changed, 101 insertions(+), 108 deletions(-)
drivers/gpu/drm/i915/gt/intel_lrc.c +101 -108
@@ -454,7 +454,7 @@ static int queue_prio(const struct intel_engine_execlists *execlists)static inline bool need_preempt (const struct intel_engine_cs *engine,const struct i915_request *rq, -struct rb_node *rb) +const struct virtual_engine *ve) {int last_prio;
@@ -491,9 +491,7 @@ static inline bool need_preempt(const struct intel_engine_cs *engine, rq_prio(list_next_entry(rq, sched.link)) > last_prio)return true; -if (rb) { -struct virtual_engine *ve = -rb_entry (rb,typeof (*ve), nodes[engine->id].rb); +if (ve) {bool preempt = false;if (engine == ve->siblings[0 ]) {/* only preempt one sibling */
@@ -1819,6 +1817,35 @@ static bool virtual_matches(const struct virtual_engine *ve,return true; } +static struct virtual_engine * +first_virtual_engine (struct intel_engine_cs *engine) +{ +struct intel_engine_execlists *el = &engine->execlists; +struct rb_node *rb =rb_first_cached (&el->virtual); + +while (rb) { +struct virtual_engine *ve = +rb_entry (rb,typeof (*ve), nodes[engine->id].rb); +struct i915_request *rq =READ_ONCE (ve->request); + +if (!rq) {/* lazily cleanup after another engine handled rq */ +rb_erase_cached (rb, &el->virtual); +RB_CLEAR_NODE (rb); + rb =rb_first_cached (&el->virtual); +continue ; + } + +if (!virtual_matches (ve, rq, engine)) { + rb =rb_next (rb); +continue ; + } + +return ve; + } + +return NULL ; +} +static void virtual_xfer_breadcrumbs (struct virtual_engine *ve) {/*
@@ -1903,7 +1930,7 @@ static void defer_active(struct intel_engine_cs *engine)static bool need_timeslice (const struct intel_engine_cs *engine,const struct i915_request *rq, -const struct rb_node *rb) +const struct virtual_engine *ve) {int hint;
@@ -1912,9 +1939,7 @@ need_timeslice(const struct intel_engine_cs *engine, hint = engine->execlists.queue_priority_hint; -if (rb) { -const struct virtual_engine *ve = -rb_entry (rb,typeof (*ve), nodes[engine->id].rb); +if (ve) {const struct intel_engine_cs *inflight =intel_context_inflight (&ve->context);
@@ -2066,6 +2091,7 @@ static void execlists_dequeue(struct intel_engine_cs *engine)struct i915_request **port = execlists->pending;struct i915_request **const last_port = port + execlists->port_mask;struct i915_request *const *active = execlists->active; +struct virtual_engine *ve;struct i915_request *last;unsigned long flags;struct rb_node *rb;
@@ -2093,26 +2119,7 @@ static void execlists_dequeue(struct intel_engine_cs *engine)* and context switches) submission. */ spin_lock_irqsave (&engine->active.lock, flags); - -for (rb =rb_first_cached (&execlists->virtual); rb; ) { -struct virtual_engine *ve = -rb_entry (rb,typeof (*ve), nodes[engine->id].rb); -struct i915_request *rq =READ_ONCE (ve->request); - -if (!rq) {/* lazily cleanup after another engine handled rq */ -rb_erase_cached (rb, &execlists->virtual); -RB_CLEAR_NODE (rb); - rb =rb_first_cached (&execlists->virtual); -continue ; - } - -if (!virtual_matches (ve, rq, engine)) { - rb =rb_next (rb); -continue ; - } - -break ; - } + ve =first_virtual_engine (engine);/* * If the queue is higher priority than the last
@@ -2140,7 +2147,7 @@ static void execlists_dequeue(struct intel_engine_cs *engine)return ; } -if (need_preempt (engine, last, rb)) { +if (need_preempt (engine, last, ve)) { ENGINE_TRACE(engine, "preempting last=%llx:%lld, prio=%d, hint=%d\n", last->fence.context,
@@ -2166,7 +2173,7 @@ static void execlists_dequeue(struct intel_engine_cs *engine)__unwind_incomplete_requests (engine); last =NULL ; - }else if (need_timeslice (engine, last, rb) && + }else if (need_timeslice (engine, last, ve) &×lice_expired (execlists, last)) { ENGINE_TRACE(engine, "expired last=%llx:%lld, prio=%d, hint=%d, yield?=%s\n",
@@ -2216,111 +2223,97 @@ static void execlists_dequeue(struct intel_engine_cs *engine) } } -while (rb) {/* XXX virtual is always taking precedence */ -struct virtual_engine *ve = -rb_entry (rb,typeof (*ve), nodes[engine->id].rb); +while (ve) {/* XXX virtual is always taking precedence */ struct i915_request *rq;spin_lock (&ve->base.active.lock); rq = ve->request; -if (unlikely (!rq)) {/* lost the race to a sibling */ -spin_unlock (&ve->base.active.lock); -rb_erase_cached (rb, &execlists->virtual); -RB_CLEAR_NODE (rb); - rb =rb_first_cached (&execlists->virtual); -continue ; - } +if (unlikely (!rq))/* lost the race to a sibling */ + goto unlock;GEM_BUG_ON (rq != ve->request);GEM_BUG_ON (rq->engine != &ve->base);GEM_BUG_ON (rq->context != &ve->context); -if (rq_prio (rq) >=queue_prio (execlists)) { -if (!virtual_matches (ve, rq, engine)) { -spin_unlock (&ve->base.active.lock); - rb =rb_next (rb); -continue ; - } +if (unlikely (rq_prio (rq) <queue_prio (execlists))) { +spin_unlock (&ve->base.active.lock); +break ; + } -if (last && !can_merge_rq (last, rq)) { -spin_unlock (&ve->base.active.lock); -spin_unlock_irqrestore (&engine->active.lock, flags); -start_timeslice (engine,rq_prio (rq)); -return ;/* leave this for another sibling */ - } +GEM_BUG_ON (!virtual_matches (ve, rq, engine)); -ENGINE_TRACE (engine, -"virtual rq=%llx:%lld%s, new engine? %s\n" , - rq->fence.context, - rq->fence.seqno, -i915_request_completed (rq) ?"!" : -i915_request_started (rq) ?"*" : -"" , -yesno (engine != ve->siblings[0 ])); - -WRITE_ONCE (ve->request,NULL ); -WRITE_ONCE (ve->base.execlists.queue_priority_hint, -INT_MIN ); -rb_erase_cached (rb, &execlists->virtual); -RB_CLEAR_NODE (rb); +if (last && !can_merge_rq (last, rq)) { +spin_unlock (&ve->base.active.lock); +spin_unlock_irqrestore (&engine->active.lock, flags); +start_timeslice (engine,rq_prio (rq)); +return ;/* leave this for another sibling */ + } -GEM_BUG_ON (!(rq->execution_mask & engine->mask)); -WRITE_ONCE (rq->engine, engine); +ENGINE_TRACE (engine, +"virtual rq=%llx:%lld%s, new engine? %s\n" , + rq->fence.context, + rq->fence.seqno, +i915_request_completed (rq) ?"!" : +i915_request_started (rq) ?"*" : +"" , +yesno (engine != ve->siblings[0 ])); -if (engine != ve->siblings[0 ]) { -u32 *regs = ve->context.lrc_reg_state; -unsigned int n; +WRITE_ONCE (ve->request,NULL ); +WRITE_ONCE (ve->base.execlists.queue_priority_hint,INT_MIN ); -GEM_BUG_ON (READ_ONCE (ve->context.inflight)); + rb = &ve->nodes[engine->id].rb; +rb_erase_cached (rb, &execlists->virtual); +RB_CLEAR_NODE (rb); -if (!intel_engine_has_relative_mmio (engine)) -virtual_update_register_offsets (regs, - engine); +GEM_BUG_ON (!(rq->execution_mask & engine->mask)); +WRITE_ONCE (rq->engine, engine); -if (!list_empty (&ve->context.signals)) -virtual_xfer_breadcrumbs (ve); +if (engine != ve->siblings[0 ]) { +u32 *regs = ve->context.lrc_reg_state; +unsigned int n; -/* -* 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 ; - } - } +GEM_BUG_ON (READ_ONCE (ve->context.inflight)); -GEM_BUG_ON (ve->siblings[0 ] != engine); - } +if (!intel_engine_has_relative_mmio (engine)) +virtual_update_register_offsets (regs, engine); -if (__i915_request_submit (rq)) { - submit = true; - last = rq; - } -i915_request_put (rq); +if (!list_empty (&ve->context.signals)) +virtual_xfer_breadcrumbs (ve);/* -* Hmm, we have a bunch of virtual engine requests, -* but the first one was already completed (thanks -* preempt-to-busy!). Keep looking at the veng queue -* until we have no more relevant requests (i.e. -* the normal submit queue has higher priority). +* 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. */ -if (!submit) { -spin_unlock (&ve->base.active.lock); - rb =rb_first_cached (&execlists->virtual); -continue ; +for (n =1 ; n < ve->num_siblings; n++) { +if (ve->siblings[n] == engine) { +swap (ve->siblings[n], ve->siblings[0 ]); +break ; + } } + +GEM_BUG_ON (ve->siblings[0 ] != engine); } +if (__i915_request_submit (rq)) { + submit = true; + last = rq; + } + +i915_request_put (rq); +unlock:spin_unlock (&ve->base.active.lock); -break ; + +/* +* Hmm, we have a bunch of virtual engine requests, +* but the first one was already completed (thanks +* preempt-to-busy!). Keep looking at the veng queue +* until we have no more relevant requests (i.e. +* the normal submit queue has higher priority). +*/ + ve = submit ?NULL :first_virtual_engine (engine); }while ((rb =rb_first_cached (&execlists->queue))) {
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: Decouple inflight virtual engines
In reply to Chris WilsonOnce a virtual engine has been bound to a sibling, it will remain bound until we finally schedule out the last active request. We can not rebind the context to a new sibling while it is inflight as the context save will conflict, hence we wait. As we cannot then use any other sibliing while the context is inflight, only kick the bound sibling while it inflight and upon scheduling out the kick the rest (so that we can swap engines on timeslicing if the previously bound engine becomes oversubscribed).
--- drivers/gpu/drm/i915/gt/intel_lrc.c | 30 +++++++++++++---------------- 1 file changed, 13 insertions(+), 17 deletions(-)
drivers/gpu/drm/i915/gt/intel_lrc.c +13 -17
@@ -1410,9 +1410,8 @@ static inline void execlists_schedule_in(struct i915_request *rq, int idx)static void kick_siblings (struct i915_request *rq,struct intel_context *ce) {struct virtual_engine *ve =container_of (ce,typeof (*ve), context); -struct i915_request *next =READ_ONCE (ve->request); -if (next == rq || (next && next->execution_mask & ~rq->execution_mask)) +if (READ_ONCE (ve->request))tasklet_hi_schedule (&ve->base.execlists.tasklet); }
@@ -1828,18 +1827,14 @@ first_virtual_engine(struct intel_engine_cs *engine)rb_entry (rb,typeof (*ve), nodes[engine->id].rb);struct i915_request *rq =READ_ONCE (ve->request); -if (!rq) {/* lazily cleanup after another engine handled rq */ +/* lazily cleanup after another engine handled rq */ +if (!rq || !virtual_matches (ve, rq, engine)) {rb_erase_cached (rb, &el->virtual);RB_CLEAR_NODE (rb); rb =rb_first_cached (&el->virtual);continue ; } -if (!virtual_matches (ve, rq, engine)) { - rb =rb_next (rb); -continue ; - } -return ve; }
@@ -5448,7 +5443,6 @@ static void virtual_submission_tasklet(unsigned long data)if (unlikely (!mask))return ; -local_irq_disable ();for (n =0 ; n < ve->num_siblings; n++) {struct intel_engine_cs *sibling =READ_ONCE (ve->siblings[n]);struct ve_node *const node = &ve->nodes[sibling->id];
@@ -5458,20 +5452,19 @@ static void virtual_submission_tasklet(unsigned long data)if (!READ_ONCE (ve->request))break ;/* already handled by a sibling's tasklet */ +spin_lock_irq (&sibling->active.lock); +if (unlikely (!(mask & sibling->mask))) {if (!RB_EMPTY_NODE (&node->rb)) { -spin_lock (&sibling->active.lock);rb_erase_cached (&node->rb, &sibling->execlists.virtual);RB_CLEAR_NODE (&node->rb); -spin_unlock (&sibling->active.lock); } -continue ; - } -spin_lock (&sibling->active.lock); + goto unlock_engine; + } -if (!RB_EMPTY_NODE (&node->rb)) { +if (unlikely (!RB_EMPTY_NODE (&node->rb))) {/* * Cheat and avoid rebalancing the tree if we can * reuse this node in situ.
@@ -5511,9 +5504,12 @@ static void virtual_submission_tasklet(unsigned long data)if (first && prio > sibling->execlists.queue_priority_hint)tasklet_hi_schedule (&sibling->execlists.tasklet); -spin_unlock (&sibling->active.lock); +unlock_engine: +spin_unlock_irq (&sibling->active.lock); + +if (intel_context_inflight (&ve->context)) +break ; } -local_irq_enable (); }static void virtual_submit_request (struct i915_request *rq)
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: Defer schedule_out until after the dequeue
In reply to Chris WilsonInside schedule_out, we do extra work upon idling the context, such as updating the runtime, kicking off retires, kicking virtual engines. However, if we are in a series of processing single requests per contexts, we may find ourselves scheduling out the context, only to immediately schedule it back in during dequeue. This is just extra work that we can avoid if we keep the context marked as inflight across the dequeue. This becomes more significant later on for minimising virtual engine misses.
--- drivers/gpu/drm/i915/gt/intel_context_types.h | 4 +- drivers/gpu/drm/i915/gt/intel_lrc.c | 111 ++++++++++++------ 2 files changed, 78 insertions(+), 37 deletions(-)
drivers/gpu/drm/i915/gt/intel_context_types.h +2 -2
@@ -45,8 +45,8 @@ struct intel_context {struct intel_engine_cs *engine;struct intel_engine_cs *inflight; -#define intel_context_inflight (ce) ptr_mask_bits(READ_ONCE((ce)->inflight), 2) -#define intel_context_inflight_count (ce) ptr_unmask_bits(READ_ONCE((ce)->inflight), 2) +#define intel_context_inflight (ce) ptr_mask_bits(READ_ONCE((ce)->inflight), 3) +#define intel_context_inflight_count (ce) ptr_unmask_bits(READ_ONCE((ce)->inflight), 3)struct i915_address_space *vm;struct i915_gem_context __rcu *gem_context;
drivers/gpu/drm/i915/gt/intel_lrc.c +76 -35
262 lines not on this page · raw message
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: Resubmit the virtual engine on schedule-out
In reply to Chris WilsonHaving recognised that we do not change the sibling until we schedule out, we can then defer the decision to resubmit the virtual engine from the unwind of the active queue to scheduling out of the virtual context.
By keeping the unwind order intact on the local engine, we can preserve data dependency ordering while doing a preempt-to-busy pass until we have determined the new ELSP. This means that if we try to timeslice between a virtual engine and a data-dependent ordinary request, the pair will maintain their relative ordering and we will avoid the resubmission, cancelling the timeslicing until further change.
The dilemma though is that we then may end up in a situation where the 'demotion' of the virtual request to an ordinary request in the engine queue results in filling the ELSP[] with virtual requests instead of spreading the load across the engines. To compensate for this, we mark each virtual request and refuse to resubmit a virtual request in the secondary ELSP slots, thus forcing subsequent virtual requests to be scheduled out after timeslicing. By delaying the decision until we schedule out, we will avoid unnecessary resubmission.
--- drivers/gpu/drm/i915/gt/intel_lrc.c | 118 ++++++++++++++++--------- drivers/gpu/drm/i915/gt/selftest_lrc.c | 2 +- 2 files changed, 75 insertions(+), 45 deletions(-)
drivers/gpu/drm/i915/gt/intel_lrc.c +74 -44
@@ -1119,53 +1119,23 @@ __unwind_incomplete_requests(struct intel_engine_cs *engine)__i915_request_unsubmit (rq); -/* -* Push the request back into the queue for later resubmission. -* If this request is not native to this physical engine (i.e. -* it came from a virtual source), push it back onto the virtual -* engine so that it can be moved across onto another physical -* engine as load dictates. -*/ -if (likely (rq->execution_mask == engine->mask)) { -GEM_BUG_ON (rq_prio (rq) ==I915_PRIORITY_INVALID ); -if (rq_prio (rq) != prio) { - prio =rq_prio (rq); - pl =i915_sched_lookup_priolist (engine, prio); - } -GEM_BUG_ON (RB_EMPTY_ROOT (&engine->execlists.queue.rb_root)); - -list_move (&rq->sched.link, pl); -set_bit (I915_FENCE_FLAG_PQUEUE , &rq->fence.flags); +GEM_BUG_ON (rq_prio (rq) ==I915_PRIORITY_INVALID ); +if (rq_prio (rq) != prio) { + prio =rq_prio (rq); + pl =i915_sched_lookup_priolist (engine, prio); + } +GEM_BUG_ON (RB_EMPTY_ROOT (&engine->execlists.queue.rb_root)); -/* Check in case we rollback so far we wrap [size/2] */ -if (intel_ring_direction (rq->ring, -intel_ring_wrap (rq->ring, - rq->tail), - rq->ring->tail) >0 ) - rq->context->lrc.desc |=CTX_DESC_FORCE_RESTORE ; +list_move (&rq->sched.link, pl); +set_bit (I915_FENCE_FLAG_PQUEUE , &rq->fence.flags); - active = rq; - }else { -struct intel_engine_cs *owner = rq->context->engine; +/* Check in case we rollback so far we wrap [size/2] */ +if (intel_ring_direction (rq->ring, +intel_ring_wrap (rq->ring, rq->tail), + rq->ring->tail) >0 ) + rq->context->lrc.desc |=CTX_DESC_FORCE_RESTORE ; -/* -* 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 ; - } + active = rq; }return active;
@@ -1409,12 +1379,49 @@ static inline void execlists_schedule_in(struct i915_request *rq, int idx)GEM_BUG_ON (intel_context_inflight (ce) != rq->engine); } +static void +resubmit_virtual_request (struct i915_request *rq,struct virtual_engine *ve) +{ +struct intel_engine_cs *engine = rq->engine; +unsigned long flags; + +spin_lock_irqsave (&engine->active.lock, flags); + +/* +* Decouple the virtual breadcrumb before moving it back to the virtual +* engine -- we don't want the request to complete in the background +* and then 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); + } + +clear_bit (I915_FENCE_FLAG_PQUEUE , &rq->fence.flags); +WRITE_ONCE (rq->engine, &ve->base); + ve->base.submit_request (rq); + +spin_unlock_irqrestore (&engine->active.lock, flags); +} +static void kick_siblings (struct i915_request *rq,struct intel_context *ce) {struct virtual_engine *ve =container_of (ce,typeof (*ve), context);if (READ_ONCE (ve->request))tasklet_hi_schedule (&ve->base.execlists.tasklet); + +/* +* This engine is now too busy to run this virtual request, so +* see if we can find an alternative engine for it to execute on. +* Once a request has become bonded to this engine, we treat it the +* same as other native requests. +*/ +if (i915_request_in_priority_queue (rq) && + rq->execution_mask != rq->engine->mask) +resubmit_virtual_request (rq, ve); } static inline void
@@ -1657,6 +1664,20 @@ assert_pending_valid(const struct intel_engine_execlists *execlists, } sentinel =i915_request_has_sentinel (rq); +/* +* We want virtual requests to only be in the first slot so +* that they are never stuck behind a hog and can be immediately +* transferred onto the next idle engine. +*/ +if (rq->execution_mask != engine->mask && + port != execlists->pending) { +GEM_TRACE_ERR ("%s: virtual engine:%llx not in prime position[%zd]\n" , + engine->name, + ce->timeline->fence_context, + port - execlists->pending); +return false; + } +/* Hold tightly onto the lock to prevent concurrent retires! */ if (!spin_trylock_irqsave (&rq->lock, flags))continue ;
@@ -2349,6 +2370,15 @@ static void execlists_dequeue(struct intel_engine_cs *engine)if (i915_request_has_sentinel (last)) goto done; +/* +* We avoid submitting virtual requests into +* the secondary ports so that we can migrate +* the request immediately to another engine +* rather than wait for the primary request. +*/ +if (rq->execution_mask != engine->mask) + goto done; +/* * If GVT overrides us we only ever submit * port[0], leaving port[1] empty. Note that we
drivers/gpu/drm/i915/gt/selftest_lrc.c +1 -1
@@ -4592,7 +4592,7 @@ static int reset_virtual_engine(struct intel_gt *gt,spin_lock_irq (&engine->active.lock);__unwind_incomplete_requests (engine);spin_unlock_irq (&engine->active.lock); -GEM_BUG_ON (rq->engine != ve->engine); +GEM_BUG_ON (rq->engine != engine);/* Reset the engine while keeping our active request on hold */ execlists_hold (engine, rq);
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: Simplify virtual engine handling for execlists_hold()
In reply to Chris WilsonNow that the tasklet completely controls scheduling of the requests, and we postpone scheduling out the old requests, we can keep a hanging virtual request bound to the engine on which it hung, and remove it from te queue. On release, it will be returned to the same engine and remain in its queue until it is scheduled; after which point it will become eligible for transfer to a sibling. Instead, we could opt to resubmit the request along the virtual engine on unhold, making it eligible for load balancing immediately -- but that seems like a pointless optimisation for a hanging context.
--- drivers/gpu/drm/i915/gt/intel_lrc.c | 29 ----------------------------- 1 file changed, 29 deletions(-)
drivers/gpu/drm/i915/gt/intel_lrc.c +0 -29
@@ -2785,35 +2785,6 @@ static bool execlists_hold(struct intel_engine_cs *engine, goto unlock; } -if (rq->engine != engine) {/* preempted virtual engine */ -struct virtual_engine *ve =to_virtual_engine (rq->engine); - -/* -* intel_context_inflight() is only protected by virtue -* of process_csb() being called only by the tasklet (or -* directly from inside reset while the tasklet is suspended). -* Assert that neither of those are allowed to run while we -* poke at the request queues. -*/ -GEM_BUG_ON (!reset_in_progress (&engine->execlists)); - -/* -* An unsubmitted request along a virtual engine will -* remain on the active (this) engine until we are able -* to process the context switch away (and so mark the -* context as no longer in flight). That cannot have happened -* yet, otherwise we would not be hanging! -*/ -spin_lock (&ve->base.active.lock); -GEM_BUG_ON (intel_context_inflight (rq->context) != engine); -GEM_BUG_ON (ve->request != rq); - ve->request =NULL ; -spin_unlock (&ve->base.active.lock); -i915_request_put (rq); - - rq->engine = engine; - } -/* * Transfer this request onto the hold queue to prevent it * being resumbitted to HW (and potentially completed) before we have
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: ce->inflight updates are now serialised
In reply to Chris WilsonSince schedule-in and schedule-out are now both always under the tasklet bitlock, we can reduce the individual atomic operations to simple instructions and worry less.
--- drivers/gpu/drm/i915/gt/intel_lrc.c | 44 +++++++++++++---------------- 1 file changed, 19 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/gt/intel_lrc.c +19 -25
@@ -1341,7 +1341,7 @@ __execlists_schedule_in(struct i915_request *rq)unsigned int tag =ffs (READ_ONCE (engine->context_tag));GEM_BUG_ON (tag ==0 || tag >=BITS_PER_LONG ); -clear_bit (tag -1 , &engine->context_tag); +__clear_bit (tag -1 , &engine->context_tag); ce->lrc.ccid = tag << (GEN11_SW_CTX_ID_SHIFT -32 );BUILD_BUG_ON (BITS_PER_LONG >GEN12_MAX_CONTEXT_HW_ID );
@@ -1368,13 +1368,10 @@ static inline void execlists_schedule_in(struct i915_request *rq, int idx)GEM_BUG_ON (!intel_engine_pm_is_awake (rq->engine));trace_i915_request_in (rq, idx); - old =READ_ONCE (ce->inflight); -do { -if (!old) { -WRITE_ONCE (ce->inflight,__execlists_schedule_in (rq)); -break ; - } - }while (!try_cmpxchg (&ce->inflight, &old,ptr_inc (old))); + old = ce->inflight; +if (!old) + old =__execlists_schedule_in (rq); +WRITE_ONCE (ce->inflight,ptr_inc (old));GEM_BUG_ON (intel_context_inflight (ce) != rq->engine); }
@@ -1424,12 +1421,11 @@ static void kick_siblings(struct i915_request *rq, struct intel_context *ce)resubmit_virtual_request (rq, ve); } -static inline void -__execlists_schedule_out (struct i915_request *rq, -struct intel_engine_cs *const engine, -unsigned int ccid) +static inline void __execlists_schedule_out (struct i915_request *rq) {struct intel_context *const ce = rq->context; +struct intel_engine_cs *const engine = rq->engine; +unsigned int ccid;/* * NB process_csb() is not under the engine->active.lock and hence
@@ -1437,7 +1433,7 @@ __execlists_schedule_out(struct i915_request *rq,* refrain from doing non-trivial work here. */ -CE_TRACE (ce,"schedule-out, ccid:%x\n" , ccid); +CE_TRACE (ce,"schedule-out, ccid:%x\n" , ce->lrc.ccid);/* * If we have just completed this context, the engine may now be
@@ -1447,12 +1443,13 @@ __execlists_schedule_out(struct i915_request *rq, i915_request_completed(rq))intel_engine_add_retire (engine, ce->timeline); + ccid = ce->lrc.ccid; ccid >>=GEN11_SW_CTX_ID_SHIFT -32 ; ccid &=GEN12_MAX_CONTEXT_HW_ID ;if (ccid <BITS_PER_LONG ) {GEM_BUG_ON (ccid ==0 );GEM_BUG_ON (test_bit (ccid -1 , &engine->context_tag)); -set_bit (ccid -1 , &engine->context_tag); +__set_bit (ccid -1 , &engine->context_tag); }intel_context_update_runtime (ce);
@@ -1473,26 +1470,23 @@ __execlists_schedule_out(struct i915_request *rq,*/ if (ce->engine != engine)kick_siblings (rq, ce); - -intel_context_put (ce); }static inline void execlists_schedule_out (struct i915_request *rq) {struct intel_context *const ce = rq->context; -struct intel_engine_cs *cur, *old; -u32 ccid;trace_i915_request_out (rq); - ccid = rq->context->lrc.ccid; - old =READ_ONCE (ce->inflight); -do - cur =ptr_unmask_bits (old,2 ) ?ptr_dec (old) :NULL ; -while (!try_cmpxchg (&ce->inflight, &old, cur)); -if (!cur) -__execlists_schedule_out (rq, old, ccid); +GEM_BUG_ON (!ce->inflight); + ce->inflight =ptr_dec (ce->inflight); +if (!intel_context_inflight_count (ce)) { +GEM_BUG_ON (ce->inflight != rq->engine); +__execlists_schedule_out (rq); +WRITE_ONCE (ce->inflight,NULL ); +intel_context_put (ce); + }i915_request_put (rq); }
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: Drop atomic for engine->fw_active tracking
In reply to Chris WilsonSince schedule-in/out is now entirely serialised by the tasklet bitlock, we do not need to worry about concurrent in/out operations and so reduce the atomic operations to plain instructions.
--- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_types.h | 2 +- drivers/gpu/drm/i915/gt/intel_lrc.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_cs.c +1 -1
@@ -1540,7 +1540,7 @@ void intel_engine_dump(struct intel_engine_cs *engine,ktime_to_ms (intel_engine_get_busy_time (engine, &dummy)));drm_printf (m,"\tForcewake: %x domains, %d active\n" , - engine->fw_domain,atomic_read (&engine->fw_active)); + engine->fw_domain,READ_ONCE (engine->fw_active));rcu_read_lock (); rq =READ_ONCE (engine->heartbeat.systole);
drivers/gpu/drm/i915/gt/intel_engine_types.h +1 -1
@@ -322,7 +322,7 @@ struct intel_engine_cs {* as possible. */ enum forcewake_domains fw_domain; -atomic_t fw_active; +unsigned int fw_active;unsigned long context_tag;
drivers/gpu/drm/i915/gt/intel_lrc.c +2 -2
@@ -1350,7 +1350,7 @@ __execlists_schedule_in(struct i915_request *rq) ce->lrc.ccid |= engine->execlists.ccid;__intel_gt_pm_get (engine->gt); -if (engine->fw_domain && !atomic_fetch_inc (&engine->fw_active)) +if (engine->fw_domain && !engine->fw_active++)intel_uncore_forcewake_get (engine->uncore, engine->fw_domain);execlists_context_status_change (rq,INTEL_CONTEXT_SCHEDULE_IN );intel_engine_context_in (engine);
@@ -1455,7 +1455,7 @@ static inline void __execlists_schedule_out(struct i915_request *rq)intel_context_update_runtime (ce);intel_engine_context_out (engine);execlists_context_status_change (rq,INTEL_CONTEXT_SCHEDULE_OUT ); -if (engine->fw_domain && !atomic_dec_return (&engine->fw_active)) +if (engine->fw_domain && !--engine->fw_active)intel_uncore_forcewake_put (engine->uncore, engine->fw_domain);intel_gt_pm_put_async (engine->gt);
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/gt: Extract busy-stats for ring-scheduler
In reply to Chris WilsonLift the busy-stats context-in/out implementation out of intel_lrc, so that we can reuse it for other scheduler implementations.
--- drivers/gpu/drm/i915/gt/intel_engine_stats.h | 49 ++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_lrc.c | 34 +------------- 2 files changed, 50 insertions(+), 33 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/intel_engine_stats.h
drivers/gpu/drm/i915/gt/intel_engine_stats.h new file +49 -0
@@ -0,0 +1,49 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2020 Intel Corporation +*/ + +#ifndef __INTEL_ENGINE_STATS_H__ +#define __INTEL_ENGINE_STATS_H__ + +#include <linux/atomic.h> +#include <linux/ktime.h> +#include <linux/seqlock.h> + +#include "i915_gem.h" /* GEM_BUG_ON */ +#include "intel_engine.h" + +static inline void intel_engine_context_in (struct intel_engine_cs *engine) +{ +unsigned long flags; + +if (atomic_add_unless (&engine->stats.active,1 ,0 )) +return ; + +write_seqlock_irqsave (&engine->stats.lock, flags); +if (!atomic_add_unless (&engine->stats.active,1 ,0 )) { + engine->stats.start =ktime_get (); +atomic_inc (&engine->stats.active); + } +write_sequnlock_irqrestore (&engine->stats.lock, flags); +} + +static inline void intel_engine_context_out (struct intel_engine_cs *engine) +{ +unsigned long flags; + +GEM_BUG_ON (!atomic_read (&engine->stats.active)); + +if (atomic_add_unless (&engine->stats.active,-1 ,1 )) +return ; + +write_seqlock_irqsave (&engine->stats.lock, flags); +if (atomic_dec_and_test (&engine->stats.active)) { + engine->stats.total = +ktime_add (engine->stats.total, +ktime_sub (ktime_get (), engine->stats.start)); + } +write_sequnlock_irqrestore (&engine->stats.lock, flags); +} + +#endif /* __INTEL_ENGINE_STATS_H__ */
drivers/gpu/drm/i915/gt/intel_lrc.c +1 -33
@@ -139,6 +139,7 @@#include "i915_vgpu.h" #include "intel_context.h" #include "intel_engine_pm.h" +#include "intel_engine_stats.h" #include "intel_gt.h" #include "intel_gt_pm.h" #include "intel_gt_requests.h"
@@ -1164,39 +1165,6 @@ execlists_context_status_change(struct i915_request *rq, unsigned long status) status, rq); } -static void intel_engine_context_in (struct intel_engine_cs *engine) -{ -unsigned long flags; - -if (atomic_add_unless (&engine->stats.active,1 ,0 )) -return ; - -write_seqlock_irqsave (&engine->stats.lock, flags); -if (!atomic_add_unless (&engine->stats.active,1 ,0 )) { - engine->stats.start =ktime_get (); -atomic_inc (&engine->stats.active); - } -write_sequnlock_irqrestore (&engine->stats.lock, flags); -} - -static void intel_engine_context_out (struct intel_engine_cs *engine) -{ -unsigned long flags; - -GEM_BUG_ON (!atomic_read (&engine->stats.active)); - -if (atomic_add_unless (&engine->stats.active,-1 ,1 )) -return ; - -write_seqlock_irqsave (&engine->stats.lock, flags); -if (atomic_dec_and_test (&engine->stats.active)) { - engine->stats.total = -ktime_add (engine->stats.total, -ktime_sub (ktime_get (), engine->stats.start)); - } -write_sequnlock_irqrestore (&engine->stats.lock, flags); -} -static void execlists_check_context (const struct intel_context *ce,const struct intel_engine_cs *engine)
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/gt: Convert stats.active to plain unsigned int
In reply to Chris WilsonAs context-in/out is now always serialised, we do not have to worry about concurrent enabling/disable of the busy-stats and can reduce the atomic_t active to a plain unsigned int, and the seqlock to a seqcount.
--- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 8 ++-- drivers/gpu/drm/i915/gt/intel_engine_stats.h | 45 ++++++++++++-------- drivers/gpu/drm/i915/gt/intel_engine_types.h | 4 +- 3 files changed, 34 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_cs.c +4 -4
@@ -338,7 +338,7 @@ static int intel_engine_setup(struct intel_gt *gt, enum intel_engine_id id) engine->schedule =NULL ;ewma__engine_latency_init (&engine->latency); -seqlock_init (&engine->stats.lock); +seqcount_init (&engine->stats.lock);ATOMIC_INIT_NOTIFIER_HEAD (&engine->context_status_notifier);
@@ -1617,7 +1617,7 @@ static ktime_t __intel_engine_get_busy_time(struct intel_engine_cs *engine,* add it to the total. */ *now =ktime_get (); -if (atomic_read (&engine->stats.active)) +if (READ_ONCE (engine->stats.active)) total =ktime_add (total,ktime_sub (*now, engine->stats.start));return total;
@@ -1636,9 +1636,9 @@ ktime_t intel_engine_get_busy_time(struct intel_engine_cs *engine, ktime_t *now)ktime_t total;do { - seq =read_seqbegin (&engine->stats.lock); + seq =read_seqcount_begin (&engine->stats.lock); total =__intel_engine_get_busy_time (engine, now); - }while (read_seqretry (&engine->stats.lock, seq)); + }while (read_seqcount_retry (&engine->stats.lock, seq));return total; }
drivers/gpu/drm/i915/gt/intel_engine_stats.h +28 -17
61 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_engine_types.h +2 -2
@@ -545,12 +545,12 @@ struct intel_engine_cs {/** * @active: Number of contexts currently scheduled in. */ -atomic_t active; +unsigned int active;/** * @lock: Lock protecting the below fields. */ -seqlock_t lock; +seqcount_t lock;/** * @total: Total time this engine was busy.
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/gt: Decouple completed requests on unwind
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [01/12] drm/i915/gt: Decouple completed requests on unwind
URL : https://patchwork.freedesktop.org/series/79183/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip fbb4ac3d3d2f drm/i915/gt: Decouple completed requests on unwind 5a59199cf602 drm/i915/gt: Check for a completed last request once f752b802f50a drm/i915/gt: Replace direct submit with direct call to tasklet 679e8bca48d4 drm/i915/gt: Use virtual_engine during execlists_dequeue 5a956e7c7bdc drm/i915/gt: Decouple inflight virtual engines b115e301df47 drm/i915/gt: Defer schedule_out until after the dequeue ee73ef387ef9 drm/i915/gt: Resubmit the virtual engine on schedule-out fde7899263f2 drm/i915/gt: Simplify virtual engine handling for execlists_hold() 20c1f787e92d drm/i915/gt: ce->inflight updates are now serialised e22f71e6b331 drm/i915/gt: Drop atomic for engine->fw_active tracking 8e9a40de0f5d drm/i915/gt: Extract busy-stats for ring-scheduler -:12: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #12: new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 95 lines checked 07df3fb1ebbe drm/i915/gt: Convert stats.active to plain unsigned int
_______________________________________________
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/gt: Decouple completed requests on unwind
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [01/12] drm/i915/gt: Decouple completed requests on unwind
URL : https://patchwork.freedesktop.org/series/79183/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.0 Fast mode used, each commit won't be checked separately. -O:drivers/gpu/drm/i915/gt/intel_lrc.c:2785:17: error: too long token expansion -O:drivers/gpu/drm/i915/gt/intel_lrc.c:2785:17: error: too long token expansion
_______________________________________________
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/gt: Decouple completed requests on unwind
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [01/12] drm/i915/gt: Decouple completed requests on unwind
URL : https://patchwork.freedesktop.org/series/79183/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8709 -> Patchwork_18093
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/index.html
Known issues
------------
Here are the changes found in Patchwork_18093 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@debugfs_test@read_all_entries:
- fi-bsw-nick: [PASS][1] -> [INCOMPLETE][2] ([i915#1250] / [i915#1436])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-bsw-nick/igt@debugfs_test@read_all_entries.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/fi-bsw-nick/igt@debugfs_test@read_all_entries.html
* igt@gem_exec_suspend@basic-s3:
- fi-tgl-u2: [PASS][3] -> [FAIL][4] ([i915#1888])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-tgl-u2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/fi-tgl-u2/igt@[email protected]
* igt@gem_flink_basic@basic:
- fi-tgl-y: [PASS][5] -> [DMESG-WARN][6] ([i915#402]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-tgl-y/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/fi-tgl-y/igt@[email protected]
* igt@i915_module_load@reload:
- fi-apl-guc: [PASS][7] -> [DMESG-WARN][8] ([i915#1982])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-apl-guc/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/fi-apl-guc/igt@[email protected]
- fi-tgl-u2: [PASS][9] -> [DMESG-WARN][10] ([i915#402])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-tgl-u2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/fi-tgl-u2/igt@[email protected]
* igt@kms_flip@basic-flip-vs-wf_vblank@b-edp1:
- fi-icl-u2: [PASS][11] -> [DMESG-WARN][12] ([i915#1982]) +1 similar issue
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-icl-u2/igt@kms_flip@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/fi-icl-u2/igt@kms_flip@[email protected]
#### Possible fixes ####
* igt@gem_flink_basic@double-flink:
- fi-tgl-y: [DMESG-WARN][13] ([i915#402]) -> [PASS][14] +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-tgl-y/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/fi-tgl-y/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- {fi-tgl-dsi}: [DMESG-WARN][15] ([i915#1982]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-tgl-dsi/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/fi-tgl-dsi/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-glk-dsi: [DMESG-WARN][17] ([i915#1982]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-glk-dsi/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/fi-glk-dsi/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- {fi-kbl-7560u}: [DMESG-WARN][19] ([i915#1982]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-kbl-7560u/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/fi-kbl-7560u/igt@[email protected]
#### Warnings ####
* igt@i915_module_load@reload:
- fi-kbl-x1275: [DMESG-WARN][21] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][22] ([i915#62] / [i915#92])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-kbl-x1275/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/fi-kbl-x1275/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- fi-kbl-x1275: [DMESG-WARN][23] ([i915#62] / [i915#92]) -> [DMESG-WARN][24] ([i915#62] / [i915#92] / [i915#95]) +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/fi-kbl-x1275/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/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#1250]: https://gitlab.freedesktop.org/drm/intel/issues/1250
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[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 (42 -> 36)
------------------------------
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_8709 -> Patchwork_18093
CI-20190529: 20190529
CI_DRM_8709: b04f40402fb90e1be9f683434a9821a656be0952 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5726: 5da80efbc7a2d5bd7b30c0f9eb4b5d001c99b558 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18093: 07df3fb1ebbe9b1d764d6a13859c88408cd344f0 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
07df3fb1ebbe drm/i915/gt: Convert stats.active to plain unsigned int 8e9a40de0f5d drm/i915/gt: Extract busy-stats for ring-scheduler e22f71e6b331 drm/i915/gt: Drop atomic for engine->fw_active tracking 20c1f787e92d drm/i915/gt: ce->inflight updates are now serialised fde7899263f2 drm/i915/gt: Simplify virtual engine handling for execlists_hold() ee73ef387ef9 drm/i915/gt: Resubmit the virtual engine on schedule-out b115e301df47 drm/i915/gt: Defer schedule_out until after the dequeue 5a956e7c7bdc drm/i915/gt: Decouple inflight virtual engines 679e8bca48d4 drm/i915/gt: Use virtual_engine during execlists_dequeue f752b802f50a drm/i915/gt: Replace direct submit with direct call to tasklet 5a59199cf602 drm/i915/gt: Check for a completed last request once fbb4ac3d3d2f drm/i915/gt: Decouple completed requests on unwind
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [01/12] drm/i915/gt: Decouple completed requests on unwind
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [01/12] drm/i915/gt: Decouple completed requests on unwind
URL : https://patchwork.freedesktop.org/series/79183/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8709_full -> Patchwork_18093_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_18093_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_reloc@basic-concurrent0:
- shard-glk: [PASS][1] -> [FAIL][2] ([i915#1930])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-glk1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-glk7/igt@[email protected]
* igt@gem_exec_whisper@basic-contexts-priority:
- shard-glk: [PASS][3] -> [DMESG-WARN][4] ([i915#118] / [i915#95])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-glk5/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-glk8/igt@[email protected]
* igt@kms_big_fb@x-tiled-8bpp-rotate-0:
- shard-apl: [PASS][5] -> [DMESG-WARN][6] ([i915#1635] / [i915#95]) +13 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-apl8/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-apl7/igt@[email protected]
* igt@kms_big_fb@y-tiled-64bpp-rotate-180:
- shard-glk: [PASS][7] -> [DMESG-FAIL][8] ([i915#118] / [i915#95]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-glk5/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-glk8/igt@[email protected]
* igt@kms_color@pipe-a-gamma:
- shard-kbl: [PASS][9] -> [DMESG-WARN][10] ([i915#93] / [i915#95]) +1 similar issue
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-kbl2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-kbl4/igt@[email protected]
* igt@kms_color@pipe-c-ctm-0-25:
- shard-skl: [PASS][11] -> [DMESG-WARN][12] ([i915#1982]) +6 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-skl7/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-skl2/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-mmap-wc:
- shard-skl: [PASS][13] -> [FAIL][14] ([i915#49])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-skl5/igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-mmap-wc.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-skl7/igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-mmap-wc.html
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-kbl: [PASS][15] -> [DMESG-WARN][16] ([i915#180]) +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-kbl7/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-kbl3/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-vs-premult-vs-constant:
- shard-kbl: [PASS][17] -> [DMESG-FAIL][18] ([fdo#108145] / [i915#95])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-kbl3/igt@kms_plane_alpha_blend@pipe-a-coverage-vs-premult-vs-constant.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-kbl6/igt@kms_plane_alpha_blend@pipe-a-coverage-vs-premult-vs-constant.html
- shard-apl: [PASS][19] -> [DMESG-FAIL][20] ([fdo#108145] / [i915#1635] / [i915#95])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-apl3/igt@kms_plane_alpha_blend@pipe-a-coverage-vs-premult-vs-constant.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-apl2/igt@kms_plane_alpha_blend@pipe-a-coverage-vs-premult-vs-constant.html
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: [PASS][21] -> [FAIL][22] ([fdo#108145] / [i915#265]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-skl5/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-skl7/igt@[email protected]
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: [PASS][23] -> [SKIP][24] ([fdo#109441]) +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-iclb3/igt@kms_psr@psr2_primary_page_flip.html
* igt@kms_vblank@pipe-b-query-forked-busy:
- shard-apl: [PASS][25] -> [DMESG-WARN][26] ([i915#1982])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-apl3/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-apl2/igt@[email protected]
* igt@perf@blocking-parameterized:
- shard-iclb: [PASS][27] -> [FAIL][28] ([i915#1542])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-iclb1/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-iclb3/igt@[email protected]
* igt@perf_pmu@semaphore-busy@rcs0:
- shard-kbl: [PASS][29] -> [FAIL][30] ([i915#1820])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-kbl6/igt@perf_pmu@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-kbl3/igt@perf_pmu@[email protected]
#### Possible fixes ####
* igt@gem_eio@in-flight-internal-10ms:
- shard-apl: [DMESG-WARN][31] ([i915#1635] / [i915#95]) -> [PASS][32] +11 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-apl4/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-apl3/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-skl: [FAIL][33] ([i915#454]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-skl9/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-skl4/igt@[email protected]
* igt@i915_selftest@mock@requests:
- shard-skl: [INCOMPLETE][35] ([i915#198] / [i915#2110]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-skl5/igt@i915_selftest@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-skl9/igt@i915_selftest@[email protected]
* igt@kms_cursor_legacy@pipe-b-torture-bo:
- shard-tglb: [DMESG-WARN][37] ([i915#128]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-tglb8/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-tglb1/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-edp1:
- shard-skl: [FAIL][39] ([i915#79]) -> [PASS][40] +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-skl3/igt@kms_flip@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-skl3/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@b-edp1:
- shard-skl: [INCOMPLETE][41] ([i915#198]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-skl6/igt@kms_flip@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-skl3/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-kbl: [DMESG-WARN][43] ([i915#180]) -> [PASS][44] +10 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-kbl6/igt@kms_flip@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-kbl7/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-rgb565-draw-mmap-wc:
- shard-tglb: [DMESG-WARN][45] ([i915#1982]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-tglb8/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-tglb7/igt@[email protected]
* igt@kms_plane@plane-position-covered-pipe-a-planes:
- shard-tglb: [DMESG-WARN][47] ([i915#402]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-tglb8/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-tglb1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-vs-premult-vs-constant:
- shard-skl: [DMESG-WARN][49] ([i915#1982]) -> [PASS][50] +4 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-skl4/igt@kms_plane_alpha_blend@pipe-a-coverage-vs-premult-vs-constant.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-skl8/igt@kms_plane_alpha_blend@pipe-a-coverage-vs-premult-vs-constant.html
* igt@kms_vblank@pipe-b-ts-continuation-suspend:
- shard-skl: [INCOMPLETE][51] ([i915#69]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-skl2/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-skl1/igt@[email protected]
#### Warnings ####
* igt@gem_exec_reloc@basic-spin-others@vcs0:
- shard-snb: [WARN][53] ([i915#2036]) -> [WARN][54] ([i915#2021])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-snb6/igt@gem_exec_reloc@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-snb1/igt@gem_exec_reloc@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-size-change:
- shard-apl: [SKIP][55] ([fdo#109271]) -> [SKIP][56] ([fdo#109271] / [i915#1635]) +6 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-apl8/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-apl7/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-pipe-d-planes:
- shard-apl: [SKIP][57] ([fdo#109271] / [i915#1635]) -> [SKIP][58] ([fdo#109271]) +3 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-apl4/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-apl8/igt@[email protected]
* igt@runner@aborted:
- shard-apl: ([FAIL][59], [FAIL][60], [FAIL][61]) ([i915#1610] / [i915#1635] / [i915#2110]) -> [FAIL][62] ([i915#1635] / [i915#2110])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-apl7/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-apl7/igt@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-apl6/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/shard-apl4/igt@[email protected]
- shard-skl: ([FAIL][63], [FAIL][64]) ([i915#2110] / [i915#69]) -> [FAIL][65] ([i915#69])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-skl10/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8709/shard-skl5/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18093/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#128]: https://gitlab.freedesktop.org/drm/intel/issues/128
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#1610]: https://gitlab.freedesktop.org/drm/intel/issues/1610
[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#198]: https://gitlab.freedesktop.org/drm/intel/issues/198
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2021]: https://gitlab.freedesktop.org/drm/intel/issues/2021
[i915#2036]: https://gitlab.freedesktop.org/drm/intel/issues/2036
[i915#2110]: https://gitlab.freedesktop.org/drm/intel/issues/2110
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#69]: https://gitlab.freedesktop.org/drm/intel/issues/69
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#93]: https://gitlab.freedesktop.org/drm/intel/issues/93
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_8709 -> Patchwork_18093
CI-20190529: 20190529
CI_DRM_8709: b04f40402fb90e1be9f683434a9821a656be0952 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5726: 5da80efbc7a2d5bd7b30c0f9eb4b5d001c99b558 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18093: 07df3fb1ebbe9b1d764d6a13859c88408cd344f0 @ 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_18093/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx