Skip to contentSkip to conversation

drm/i915: Clear out old GT FIFO errors in intel_uncore_early_sanitize()

PATCH In review [email protected] 2 participants 2 messages Dec 3, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Clear out old GT FIFO errors in intel_uncore_early_sanitize()

From: Ville Syrjälä <[email protected]>

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.

---
 drivers/gpu/drm/i915/intel_uncore.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/intel_uncore.c +5 -0
index 0db5472..ab6173d 100644
@@ -325,6 +325,11 @@ void intel_uncore_early_sanitize(struct drm_device *dev)
 		DRM_INFO("Found %zuMB of eLLC\n", dev_priv->ellc_size);
 	}
 
+	/* clear out old GT FIFO errors */
+	if (IS_GEN6(dev) || IS_GEN7(dev))
+		__raw_i915_write32(dev_priv, GTFIFODBG,
+				   __raw_i915_read32(dev_priv, GTFIFODBG));
+
 	intel_uncore_forcewake_reset(dev);
 }
 
Signature · 6 lines
1.8.3.2

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · On Tue, Dec 03, 2013 at 11:30:09AM +0200, [email protected] wrote:

From: Ville Syrjälä <[email protected]>

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.

I thought once upon a time we had HAS_GTFIFODBG()

Quoted 1 line

The idea looks sane,

-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre