drm/i915/icl: Reset PSR interruptions
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 6 Nov 2018 19:08:42 +0000 (11:08 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Fri, 9 Nov 2018 18:49:39 +0000 (10:49 -0800)
All other interruptions gen11 interruptions are reset in
gen11_irq_reset() also it is done for other gens that supports PSR.

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181106190843.18009-3-jose.souza@intel.com
drivers/gpu/drm/i915/i915_irq.c

index d7e47d6082de6c360e79c5404d82d5466876b41c..d447d7d508f483c62baecad23035a60702fd6a3c 100644 (file)
@@ -3679,6 +3679,9 @@ static void gen11_irq_reset(struct drm_device *dev)
 
        I915_WRITE(GEN11_DISPLAY_INT_CTL, 0);
 
+       I915_WRITE(EDP_PSR_IMR, 0xffffffff);
+       I915_WRITE(EDP_PSR_IIR, 0xffffffff);
+
        for_each_pipe(dev_priv, pipe)
                if (intel_display_power_is_enabled(dev_priv,
                                                   POWER_DOMAIN_PIPE(pipe)))