drm: read breadcrumb in IRQ handler
authorDave Airlie <airlied@linux.ie>
Mon, 20 Mar 2006 07:34:29 +0000 (18:34 +1100)
committerDave Airlie <airlied@linux.ie>
Mon, 20 Mar 2006 07:34:29 +0000 (18:34 +1100)
From: Keith Whitwell <keithw@tungstengraphics.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/i915_irq.c

index d3879ac9970f7f991167e9ade90f510b0f93a8c6..a752afd86ab8f43481baca42de3c7a7c51ddf7e0 100644 (file)
@@ -53,6 +53,8 @@ irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
 
        I915_WRITE16(I915REG_INT_IDENTITY_R, temp);
 
+       dev_priv->sarea_priv->last_dispatch = READ_BREADCRUMB(dev_priv);
+
        if (temp & USER_INT_FLAG)
                DRM_WAKEUP(&dev_priv->irq_queue);