Skip to content

Commit a6c0a39

Browse files
committed
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.
2 parents 2f48802 + 498e720 commit a6c0a39

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/gpu/drm/i915/i915_irq.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,6 +1740,16 @@ void ironlake_irq_preinstall(struct drm_device *dev)
17401740
INIT_WORK(&dev_priv->rps_work, gen6_pm_rps_work);
17411741

17421742
I915_WRITE(HWSTAM, 0xeffe);
1743+
if (IS_GEN6(dev)) {
1744+
/* Workaround stalls observed on Sandy Bridge GPUs by
1745+
* making the blitter command streamer generate a
1746+
* write to the Hardware Status Page for
1747+
* MI_USER_INTERRUPT. This appears to serialize the
1748+
* previous seqno write out before the interrupt
1749+
* happens.
1750+
*/
1751+
I915_WRITE(GEN6_BLITTER_HWSTAM, ~GEN6_BLITTER_USER_INTERRUPT);
1752+
}
17431753

17441754
/* XXX hotplug from PCH */
17451755

0 commit comments

Comments
 (0)