drm/i915/execlists: Clear context-switch interrupt earlier in the reset
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Jan 2018 15:12:32 +0000 (15:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Jan 2018 11:01:05 +0000 (11:01 +0000)
commit42232213614ddbef854ef368092e39c4e8347877
tree88a1ebcaaa2ab69beeae17551d3f3e021b5aebc6
parent27ec1843169973fbdf224d831e2a40f441407ab0
drm/i915/execlists: Clear context-switch interrupt earlier in the reset

Move the clearing of the CS-interrupt into the engine reset phase,
before the current init-hw phase. This helps clarify that we clear the
pending interrupts prior to any restarting of the execlists.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180102151235.3949-16-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c