diff mbox

drm/i915/execlists: Check active for idleness before running tasklet

Message ID 20180718135011.2435-1-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Wilson July 18, 2018, 1:50 p.m. UTC
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107274
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/intel_lrc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index db5351e6a3a5..6921406a7250 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -1074,7 +1074,7 @@  static void execlists_submission_tasklet(unsigned long data)
 
 	spin_lock_irqsave(&engine->timeline.lock, flags);
 
-	if (engine->i915->gt.awake) /* we may be delayed until after we idle! */
+	if (engine->execlists.active) /* we may be delayed until after idle! */
 		__execlists_submission_tasklet(engine);
 
 	spin_unlock_irqrestore(&engine->timeline.lock, flags);