aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-10-06 18:14:12 -0400
committerDave Airlie <airlied@linux.ie>2008-10-17 17:10:53 -0400
commit630681d9a5314e6cf53d144f7f58b7c19862a7d3 (patch)
tree4a33e799f6b209412688dbd126b0261a267a18d6 /drivers/gpu
parent9bfbd5cb72c9edb8504a4a7a0aa89cdb2fcb4845 (diff)
drm: Increment dev_priv->irq_received so i915_gem_interrupts count works.
Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index ef03a59c1df8..baae511c785b 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -372,6 +372,8 @@ irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
372 u32 pipea_stats, pipeb_stats; 372 u32 pipea_stats, pipeb_stats;
373 int vblank = 0; 373 int vblank = 0;
374 374
375 atomic_inc(&dev_priv->irq_received);
376
375 if (dev->pdev->msi_enabled) 377 if (dev->pdev->msi_enabled)
376 I915_WRITE(IMR, ~0); 378 I915_WRITE(IMR, ~0);
377 iir = I915_READ(IIR); 379 iir = I915_READ(IIR);