diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-12-03 02:38:13 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-12-03 02:38:13 -0500 |
commit | 467832032cc07626880363efa8625719c16c04eb (patch) | |
tree | ee9a62c04f0b3106e412bc1b2dd1cea5566d5ca7 /drivers/gpu/drm/i915/i915_irq.c | |
parent | 66d2a5952eab875f1286e04f738ef029afdaf013 (diff) | |
parent | 22763c5cf3690a681551162c15d34d935308c8d7 (diff) |
Merge commit 'v2.6.32' into next
Diffstat (limited to 'drivers/gpu/drm/i915/i915_irq.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index c3ceffa46ea0..aa7fd82aa6eb 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
@@ -254,10 +254,15 @@ irqreturn_t igdng_irq_handler(struct drm_device *dev) | |||
254 | { | 254 | { |
255 | drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; | 255 | drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; |
256 | int ret = IRQ_NONE; | 256 | int ret = IRQ_NONE; |
257 | u32 de_iir, gt_iir; | 257 | u32 de_iir, gt_iir, de_ier; |
258 | u32 new_de_iir, new_gt_iir; | 258 | u32 new_de_iir, new_gt_iir; |
259 | struct drm_i915_master_private *master_priv; | 259 | struct drm_i915_master_private *master_priv; |
260 | 260 | ||
261 | /* disable master interrupt before clearing iir */ | ||
262 | de_ier = I915_READ(DEIER); | ||
263 | I915_WRITE(DEIER, de_ier & ~DE_MASTER_IRQ_CONTROL); | ||
264 | (void)I915_READ(DEIER); | ||
265 | |||
261 | de_iir = I915_READ(DEIIR); | 266 | de_iir = I915_READ(DEIIR); |
262 | gt_iir = I915_READ(GTIIR); | 267 | gt_iir = I915_READ(GTIIR); |
263 | 268 | ||
@@ -290,6 +295,9 @@ irqreturn_t igdng_irq_handler(struct drm_device *dev) | |||
290 | gt_iir = new_gt_iir; | 295 | gt_iir = new_gt_iir; |
291 | } | 296 | } |
292 | 297 | ||
298 | I915_WRITE(DEIER, de_ier); | ||
299 | (void)I915_READ(DEIER); | ||
300 | |||
293 | return ret; | 301 | return ret; |
294 | } | 302 | } |
295 | 303 | ||