drm/i915: Assert that we don't submit to execlists whilst a preempt is pending
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 11:00:02 +0000 (11:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 15:55:05 +0000 (15:55 +0000)
commitc816e605ffb26ce1d3c06238c7de6662569ecb1e
treef3fd0c61793987bf353f35d1df9dc0388de02c62
parent5ec63bbdf527d26606c8ba9d3a841755d3887fbe
drm/i915: Assert that we don't submit to execlists whilst a preempt is pending

To complement the check in execlists_elsp_ready(), also assert that we
don't submit the same context while it has a lite restore still pending.

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