drm/i915/execlists: Check the sentinel is alone in the ELSP
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 2 Mar 2020 08:58:02 +0000 (08:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 2 Mar 2020 21:28:17 +0000 (21:28 +0000)
commit15db5fcce9c8e84ee76ddeecee164e687a41bdf9
tree7e2872433b22bb18d77ca355e1e7ee1a8c75c1b2
parent4b4e973d5eb89244b67d3223b60f752d0479f253
drm/i915/execlists: Check the sentinel is alone in the ELSP

We only use sentinel requests for "preempt-to-idle" passes, so assert
that they are the only request in a new submission.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200302085812.4172450-12-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c