aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-12-03 04:30:09 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-13 04:41:06 -0500
commit97058870e616631a80721e08d5797d7da4b23b0a (patch)
tree9082ef663feef58effc18f8d92db93c687a7e066
parent168c3f2151a7de906b060a335d19b0ba483a6718 (diff)
drm/i915: Clear out old GT FIFO errors in intel_uncore_early_sanitize()
The BIOS or someone else might have done something bad and there might be old GT FIFO erros reported in GTFIFODBG. Clear those out in intel_uncore_early_sanitize() to make sure we don't mistake them for our problems. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/intel_uncore.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c
index 8102af9a178d..32527a74dc46 100644
--- a/drivers/gpu/drm/i915/intel_uncore.c
+++ b/drivers/gpu/drm/i915/intel_uncore.c
@@ -332,6 +332,11 @@ void intel_uncore_early_sanitize(struct drm_device *dev)
332 DRM_INFO("Found %zuMB of eLLC\n", dev_priv->ellc_size); 332 DRM_INFO("Found %zuMB of eLLC\n", dev_priv->ellc_size);
333 } 333 }
334 334
335 /* clear out old GT FIFO errors */
336 if (IS_GEN6(dev) || IS_GEN7(dev))
337 __raw_i915_write32(dev_priv, GTFIFODBG,
338 __raw_i915_read32(dev_priv, GTFIFODBG));
339
335 intel_uncore_forcewake_reset(dev); 340 intel_uncore_forcewake_reset(dev);
336} 341}
337 342