drm/i915: Undo rmw damage to gen3 error interrupt handler
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 25 Jan 2023 18:52:31 +0000 (20:52 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 23 Feb 2023 14:28:03 +0000 (16:28 +0200)
commit839259b8afbb78bcd6d0b698e82cd4578a505ba4
tree1f6a1adb981fddbf2d7d4bd512189f3e47e5f9ca
parent66560f33059ebe606cad7aef9c298a19d4f9e998
drm/i915: Undo rmw damage to gen3 error interrupt handler

The gen2/gen3 irq code is supposed to be identical apart
from the 32bit vs. 16bit access width. The recent change
to intel_de_rmw() ruined that symmetry. Restore it to avoid
needless mental gymnastics when comparing the two codepaths.

And while at it remove the extra eir!=0 check that somehow
ended up in the gen2 codepath only.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230125185234.21599-3-ville.syrjala@linux.intel.com
Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
drivers/gpu/drm/i915/i915_irq.c