aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2015-03-11 05:10:27 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-04-14 07:55:21 -0400
commit32608ca255ef0da1a70239a731a1fcdbb212d3f2 (patch)
treebd5bf21a44dc20254420e6f8c190b2615f8392bf /drivers/gpu/drm/i915/intel_pm.c
parenta82abe43cecb26619a7ce7e2052c3e89ed0b9436 (diff)
drm/i915/bxt: add GEN8_SDEUNIT_CLOCK_GATE_DISABLE workaround
Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Nick Hoath <nicholas.hoath@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 767a3e2ffdd1..a3247e83b072 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -96,7 +96,18 @@ static void skl_init_clock_gating(struct drm_device *dev)
96 96
97static void bxt_init_clock_gating(struct drm_device *dev) 97static void bxt_init_clock_gating(struct drm_device *dev)
98{ 98{
99 struct drm_i915_private *dev_priv = dev->dev_private;
100
99 gen9_init_clock_gating(dev); 101 gen9_init_clock_gating(dev);
102
103 /*
104 * FIXME:
105 * GEN8_SDEUNIT_CLOCK_GATE_DISABLE applies on A0 only.
106 */
107 /* WaDisableSDEUnitClockGating:bxt */
108 I915_WRITE(GEN8_UCGCTL6, I915_READ(GEN8_UCGCTL6) |
109 GEN8_SDEUNIT_CLOCK_GATE_DISABLE);
110
100} 111}
101 112
102static void i915_pineview_get_mem_freq(struct drm_device *dev) 113static void i915_pineview_get_mem_freq(struct drm_device *dev)