From: Mika Kuoppala Date: Fri, 16 May 2014 10:44:12 +0000 (+0300) Subject: drm/i915: Be careful with non-disp bit in PMINTRMSK X-Git-Tag: v5.15~17777^2~38^2~99 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=992f191f2c83f0d1184975a211070dff2a359d3b;p=mirror_ubuntu-kernels.git drm/i915: Be careful with non-disp bit in PMINTRMSK Bit 31 in GEN6_PMINTRMSK is not an interrupt disable bit with gen8. Reviewed-by: Ville Syrjälä Signed-off-by: Mika Kuoppala Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 6e6ade902d7e..15eb29cd3ee3 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -3253,7 +3253,7 @@ static void gen8_disable_rps_interrupts(struct drm_device *dev) { struct drm_i915_private *dev_priv = dev->dev_private; - I915_WRITE(GEN6_PMINTRMSK, 0xffffffff); + I915_WRITE(GEN6_PMINTRMSK, ~GEN8_PMINTR_REDIRECT_TO_NON_DISP); I915_WRITE(GEN8_GT_IER(2), I915_READ(GEN8_GT_IER(2)) & ~dev_priv->pm_rps_events); /* Complete PM interrupt masking here doesn't race with the rps work