summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2015-02-09 19:33:16 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-23 17:31:15 +0100
commitd0bbbc4faf7bc1225ffd5d159fbe2c8dfef75333 (patch)
tree766ba38860b9fce0542172e4c6c52f1d799d7618 /drivers/gpu/drm/i915/intel_ringbuffer.c
parent9505e01acd2408864ce7e60e460899f9be6ac11b (diff)
downloadlinux-d0bbbc4faf7bc1225ffd5d159fbe2c8dfef75333.tar.gz
linux-d0bbbc4faf7bc1225ffd5d159fbe2c8dfef75333.tar.bz2
linux-d0bbbc4faf7bc1225ffd5d159fbe2c8dfef75333.zip
drm/i915/skl: Implement WaDisablePowerCompilerClockGating
Signed-off-by: Damien Lespiau <damien.lespiau@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_ringbuffer.c')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index e758c0592675..4570fe172b79 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -1004,8 +1004,16 @@ static int gen9_init_workarounds(struct intel_engine_cs *ring)
static int skl_init_workarounds(struct intel_engine_cs *ring)
{
+ struct drm_device *dev = ring->dev;
+ struct drm_i915_private *dev_priv = dev->dev_private;
+
gen9_init_workarounds(ring);
+ /* WaDisablePowerCompilerClockGating:skl */
+ if (INTEL_REVID(dev) == SKL_REVID_B0)
+ WA_SET_BIT_MASKED(HIZ_CHICKEN,
+ BDW_HIZ_POWER_COMPILER_CLOCK_GATING_DISABLE);
+
return 0;
}