diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-06-17 21:15:11 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-06-17 21:15:11 -0700 |
commit | a6c0a392622702fc9f47ddcea5684414d44a5d3b (patch) | |
tree | 4ee1e7bca6f20c36311984b5a77db9f5470d36f2 | |
parent | 2f48802e4330bb4d65d530ed9be78e8e55374577 (diff) | |
parent | 498e720b96379d8ee9c294950a01534a73defcf3 (diff) | |
download | op-kernel-dev-a6c0a392622702fc9f47ddcea5684414d44a5d3b.zip op-kernel-dev-a6c0a392622702fc9f47ddcea5684414d44a5d3b.tar.gz |
Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
* 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
drm/i915: Fix gen6 (SNB) missed BLT ring interrupts.
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index b9fafe3..9e34a1a 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c @@ -1740,6 +1740,16 @@ 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)) { + /* Workaround stalls observed on Sandy Bridge GPUs by + * making the blitter command streamer generate a + * write to the Hardware Status Page for + * MI_USER_INTERRUPT. This appears to serialize the + * previous seqno write out before the interrupt + * happens. + */ + I915_WRITE(GEN6_BLITTER_HWSTAM, ~GEN6_BLITTER_USER_INTERRUPT); + } /* XXX hotplug from PCH */ |