drm/i915: Dequeue execlists on a new request if any port is available
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 11:00:08 +0000 (11:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 16:00:25 +0000 (16:00 +0000)
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
drivers/gpu/drm/i915/intel_lrc.c

index 11568ab9f248ecae21db4f25d89c399039873405..bee9d565b8f314eaa16248d9ce0a1c39ac7fe098 100644 (file)
@@ -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);
        }