drm/i915: Fix the inconsistent RMW in WA 827
authorRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Sat, 30 Mar 2019 01:19:20 +0000 (18:19 -0700)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 12 Apr 2019 07:22:11 +0000 (10:22 +0300)
RMW is used only in the disable path. Using it in enable path
for consistency.

Suggested-by: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190330011921.10397-2-radhakrishna.sripada@intel.com
drivers/gpu/drm/i915/intel_display.c

index bf8565b98e44a2e3e7277891a131f7c0fde544cd..c780ca6cd667fe62ccbb9879c88c5d4701ca3479 100644 (file)
@@ -481,6 +481,7 @@ skl_wa_827(struct drm_i915_private *dev_priv, int pipe, bool enable)
 {
        if (enable)
                I915_WRITE(CLKGATE_DIS_PSL(pipe),
+                          I915_READ(CLKGATE_DIS_PSL(pipe)) |
                           DUPS1_GATING_DIS | DUPS2_GATING_DIS);
        else
                I915_WRITE(CLKGATE_DIS_PSL(pipe),