[Intel-gfx] [PATCH 3/4] drm/i915: Split pch irq handling to ack+handler
Ville Syrjälä
ville.syrjala at linux.intel.com
Mon Apr 15 16:56:34 UTC 2019
On Mon, Apr 15, 2019 at 05:48:04PM +0100, Chris Wilson wrote:
> Quoting Ville Syrjala (2019-04-15 16:49:03)
> > @@ -2563,15 +2613,20 @@ static void ilk_display_irq_handler(struct drm_i915_private *dev_priv,
> >
> > /* check event from PCH */
> > if (de_iir & DE_PCH_EVENT) {
> > - u32 pch_iir = I915_READ(SDEIIR);
> > + struct pch_irq_regs pch = {};
>
> If I am following along correctly, we don't need the memset here as we
> only ever check dependent members after a guard (such as the iir or
> hotplug trigger).
IIRC I did the zero inits to avoid false positives from the compiler
once these structs get hoisted up to the main irq handler. But I must
admit it's been a while since I wrote the basic form of this the memory
is getting hazy.
>
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
> -Chris
--
Ville Syrjälä
Intel
More information about the Intel-gfx
mailing list