drm/i915: Stop overwriting RING_IMR in rcs resume
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Apr 2019 13:27:19 +0000 (14:27 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Apr 2019 16:33:48 +0000 (17:33 +0100)
commitdfe2c8ed23d7524dd363e1941039da63e3982e98
treedf05671c39ee39e1c9ea16471d0ccf2dd3bd8af0
parent99534023490686ce4453c45e5cb813535b9bff95
drm/i915: Stop overwriting RING_IMR in rcs resume

We store the engine->imr mask and set up the RING_IMR register on
restarting the engine. We do not then want to overwrite it with
an incomplete mask later as we may then lose interrupts!

Reported-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190418132720.3716-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c