summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-10-06 15:14:12 -0700
committerDave Airlie <airlied@linux.ie>2008-10-18 07:10:53 +1000
commit630681d9a5314e6cf53d144f7f58b7c19862a7d3 (patch)
tree4a33e799f6b209412688dbd126b0261a267a18d6 /drivers/gpu/drm
parent9bfbd5cb72c9edb8504a4a7a0aa89cdb2fcb4845 (diff)
downloadop-kernel-dev-630681d9a5314e6cf53d144f7f58b7c19862a7d3.zip
op-kernel-dev-630681d9a5314e6cf53d144f7f58b7c19862a7d3.tar.gz
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/drm')
-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 ef03a59..baae511 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)
u32 pipea_stats, pipeb_stats;
int vblank = 0;
+ atomic_inc(&dev_priv->irq_received);
+
if (dev->pdev->msi_enabled)
I915_WRITE(IMR, ~0);
iir = I915_READ(IIR);
OpenPOWER on IntegriCloud