drm/i915: apply HWSTAM writes to Ivy Bridge as well
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 1 Jul 2011 18:08:56 +0000 (11:08 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 1 Jul 2011 20:28:53 +0000 (13:28 -0700)
In an attempt to fix 38862 and 38863.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Tested-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_irq.c

index 226d8b2..3b03f85 100644 (file)
@@ -1740,7 +1740,7 @@ static void ironlake_irq_preinstall(struct drm_device *dev)
                INIT_WORK(&dev_priv->rps_work, gen6_pm_rps_work);
 
        I915_WRITE(HWSTAM, 0xeffe);
-       if (IS_GEN6(dev)) {
+       if (IS_GEN6(dev) || IS_GEN7(dev)) {
                /* Workaround stalls observed on Sandy Bridge GPUs by
                 * making the blitter command streamer generate a
                 * write to the Hardware Status Page for