aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-02-16 10:32:10 -0500
committerChris Wilson <chris@chris-wilson.co.uk>2018-02-16 11:18:32 -0500
commitd081e021fd62497412f8c0c16ea6644cc7d4a154 (patch)
treeba165dd00222172b1667307c7ece48fa949089b2
parent339ccd35b42cb679b1a218fdbac4c029058c671c (diff)
drm/i915/execlists: Remove too early assert
We can't assert that the execlists are active before we set the flag. So perform the assert after we are expected to have marked the execlists active. Fixes: 339ccd35b42c ("drm/i915: Assert that we always complete a submission to guc/execlists") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: MichaƂ Winiarski <michal.winiarski@intel.com> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Acked-by: Tomi Sarvela <tomi.p.sarvela@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180216153210.30551-1-chris@chris-wilson.co.uk
-rw-r--r--drivers/gpu/drm/i915/intel_lrc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 6fbe1a8a37ad..9b6d781b22ec 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -644,8 +644,6 @@ done:
644 port_assign(port, last); 644 port_assign(port, last);
645 645
646 /* We must always keep the beast fed if we have work piled up */ 646 /* We must always keep the beast fed if we have work piled up */
647 GEM_BUG_ON(port_isset(execlists->port) &&
648 !execlists_is_active(execlists, EXECLISTS_ACTIVE_USER));
649 GEM_BUG_ON(execlists->first && !port_isset(execlists->port)); 647 GEM_BUG_ON(execlists->first && !port_isset(execlists->port));
650 648
651unlock: 649unlock:
@@ -655,6 +653,9 @@ unlock:
655 execlists_set_active(execlists, EXECLISTS_ACTIVE_USER); 653 execlists_set_active(execlists, EXECLISTS_ACTIVE_USER);
656 execlists_submit_ports(engine); 654 execlists_submit_ports(engine);
657 } 655 }
656
657 GEM_BUG_ON(port_isset(execlists->port) &&
658 !execlists_is_active(execlists, EXECLISTS_ACTIVE_USER));
658} 659}
659 660
660void 661void