drm/i915: Only disable execlist preemption for the duration of the request
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 11:00:03 +0000 (11:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 15:55:16 +0000 (15:55 +0000)
commit816ee798ec2b46b1f92aaebb1c7b5d2e1abdc43e
tree5edd737ea900f9f2d45c17c6c7b166032ad11c3d
parentc816e605ffb26ce1d3c06238c7de6662569ecb1e
drm/i915: Only disable execlist preemption for the duration of the request

We need to prevent resubmission of the context immediately following an
initial resubmit (which does a lite-restore preemption). Currently we do
this by disabling all submission whilst the context is still active, but
we can improve this by limiting the restriction to only until we
receive notification from the context-switch interrupt that the
lite-restore preemption is complete.

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-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.h