From: Radhakrishna Sripada Date: Sat, 30 Mar 2019 01:19:20 +0000 (-0700) Subject: drm/i915: Fix the inconsistent RMW in WA 827 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=fa9d38f65d3976d8594e84edb0edcdfc75054b17;p=openwrt%2Fstaging%2Fblogic.git drm/i915: Fix the inconsistent RMW in WA 827 RMW is used only in the disable path. Using it in enable path for consistency. Suggested-by: Ville Syrjala Cc: Anusha Srivatsa Signed-off-by: Radhakrishna Sripada Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20190330011921.10397-2-radhakrishna.sripada@intel.com --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index bf8565b98e44..c780ca6cd667 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -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),