aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorRobert Beckett <robert.beckett@intel.com>2015-03-11 10:28:25 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-04-14 13:55:23 +0200
commite3a290553f3b09b657962e0a952fcf9b117bc08b (patch)
treed9f69e2cd278c8c5925e12b729c9ce1a9f33228d /drivers/gpu/drm/i915/intel_pm.c
parentdrm/i915/skl: add WaDisableMaskBasedCammingInRCC workaround (diff)
downloadlinux-dev-e3a290553f3b09b657962e0a952fcf9b117bc08b.tar.xz
linux-dev-e3a290553f3b09b657962e0a952fcf9b117bc08b.zip
drm/i915/bxt: add workaround to avoid PTE corruption
Set TLBPF in TILECTL. This fixes an issue with BXT HW seeing corrupted pte entries. v2: - move the workaround to bxt_init_clock_gating (imre) Signed-off-by: Robert Beckett <robert.beckett@intel.com> (v1) 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 '')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 07b3780677c9..472463806759 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -110,6 +110,8 @@ static void bxt_init_clock_gating(struct drm_device *dev)
GEN8_SDEUNIT_CLOCK_GATE_DISABLE |
GEN8_HDCUNIT_CLOCK_GATE_DISABLE_HDCREQ);
+ /* FIXME: apply on A0 only */
+ I915_WRITE(TILECTL, I915_READ(TILECTL) | TILECTL_TLBPF);
}
static void i915_pineview_get_mem_freq(struct drm_device *dev)