drm/i915: Disable Render power gating
authorSagar Kamble <sagar.a.kamble@intel.com>
Sun, 12 Apr 2015 05:58:14 +0000 (11:28 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 13 Apr 2015 09:24:25 +0000 (11:24 +0200)
When RC6 along with Render power gating is enabled, GPU hang
happens due to lack of synchronization between GTI and Render
power gating.

v2: Updated commit message and WA name (Damien)

Change-Id: If1614206341eb52a21eadae8c5ebb2655029b50c
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Sagar Kamble <sagar.a.kamble@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c

index e04ef19673a90a19c69eee62acd70ff668ba2327..fc7e0c7545fdad990ec621e826ce19ee4bc9ddb4 100644 (file)
@@ -4346,9 +4346,12 @@ static void gen9_enable_rc6(struct drm_device *dev)
                                   GEN6_RC_CTL_EI_MODE(1) |
                                   rc6_mask);
 
-       /* 3b: Enable Coarse Power Gating only when RC6 is enabled */
+       /*
+        * 3b: Enable Coarse Power Gating only when RC6 is enabled.
+        * WaDisableRenderPowerGating:skl,bxt - Render PG need to be disabled with RC6.
+        */
        I915_WRITE(GEN9_PG_ENABLE, (rc6_mask & GEN6_RC_CTL_RC6_ENABLE) ?
-                       (GEN9_RENDER_PG_ENABLE | GEN9_MEDIA_PG_ENABLE) : 0);
+                       GEN9_MEDIA_PG_ENABLE : 0);
 
 
        intel_uncore_forcewake_put(dev_priv, FORCEWAKE_ALL);