Skip to content

Commit

Permalink
drm/i915: Dequeue execlists on a new request if any port is available
Browse files Browse the repository at this point in the history
If the second ELSP port is available, schedule the execlists tasklet to
see if the new request can occupy it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170124110009.28947-7-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Jan 24, 2017
1 parent 3833281 commit 48ea255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_lrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ static void execlists_submit_request(struct drm_i915_gem_request *request)

if (insert_request(&request->priotree, &engine->execlist_queue)) {
engine->execlist_first = &request->priotree.node;
if (execlists_elsp_idle(engine))
if (execlists_elsp_ready(engine))
tasklet_hi_schedule(&engine->irq_tasklet);
}

Expand Down

0 comments on commit 48ea255

Please sign in to comment.