drm/i915: Clean up the irq enable/disable for ilk rps
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 21 Oct 2020 13:14:43 +0000 (16:14 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 21 Oct 2020 20:21:45 +0000 (23:21 +0300)
commitc6073d4c923b5ce39ff33a63a07c633036656ecb
tree3bfed47af4dc83e60e1422b1663c6747112042b2
parenta9922912881531f661c4402819bca8b53d01bbbd
drm/i915: Clean up the irq enable/disable for ilk rps

Let's unmask the PCU event irq _after_ we've set up the
hardware and software to deal with the fallout. We can
also drop the PCU event bit from DEIER except when we
need it for rps.

And on the disable side we replace the hand rolled (and
unlocked) DEIER/IIR/IMR frobbing with ilk_disable_display_irq().
Ocd does require me to reorder it to be symmetric with
the enable path however.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201021131443.25616-5-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/gt/intel_rps.c
drivers/gpu/drm/i915/i915_irq.c