drm/i915: Assert that we always complete a submission to guc/execlists
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 15 Feb 2018 16:25:53 +0000 (16:25 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Feb 2018 14:14:14 +0000 (14:14 +0000)
commit339ccd35b42cb679b1a218fdbac4c029058c671c
tree35707a8635c86fa1d93356107fa8483e556b50ff
parentc0a51fd07b1dd50f31a413f0e7bb5e4499de2042
drm/i915: Assert that we always complete a submission to guc/execlists

The continual resubmission model for execlists (and emulated over guc)
requires that we keep feeding requests into the HW in order to generate
more CS interrupts to drain the rest of the queue. Add a couple of
asserts to ensure that we don't skip a cycle and come to a grinding
halt.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: MichaƂ Winiarski <michal.winiarski@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180215162553.23348-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_guc_submission.c
drivers/gpu/drm/i915/intel_lrc.c