drm/i915: Clear all residual RPS events on disabling interrupts
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Aug 2018 10:06:30 +0000 (11:06 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Aug 2018 14:47:29 +0000 (15:47 +0100)
commit4668f69544328dd04f39546274d5cd7a1cde2240
treefdfd5bc433027f438d96d975538535e5a1c6dae7
parentf4de7794de84f06dc56f0adc8ce34ab8294138a9
drm/i915: Clear all residual RPS events on disabling interrupts

Make sure that the RPS IIR is completely clear on disabling so we should
not get any more interrupts after idling. Since the IIR is shared with
the guc, we have to be careful to only clobber RPS events.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180802100631.31305-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h