Commit 2010b7f0 authored by Chris Wilson's avatar Chris Wilson

drm/i915/gt: Start timeslice on partial submission

We may choose to only submit ELSP[0], even though we have sufficient
requests to fill the whole ELSP. Normally, we only start timeslicing if
we fill more than one port, but in this case we need to start
timeslicing for the queue that we choose not to submit.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200528205727.20309-1-chris@chris-wilson.co.uk
parent ba03a63d
...@@ -2358,8 +2358,10 @@ static void execlists_dequeue(struct intel_engine_cs *engine) ...@@ -2358,8 +2358,10 @@ static void execlists_dequeue(struct intel_engine_cs *engine)
if (last->context == rq->context) if (last->context == rq->context)
goto done; goto done;
if (i915_request_has_sentinel(last)) if (i915_request_has_sentinel(last)) {
start_timeslice(engine, rq_prio(rq));
goto done; goto done;
}
/* /*
* If GVT overrides us we only ever submit * If GVT overrides us we only ever submit
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment