diff options
author | Keith Packard <keithp@keithp.com> | 2011-09-20 17:12:44 (GMT) |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-09-30 22:30:41 (GMT) |
commit | 192aac1f19e7a2c69fe486b863c914aabd7acc69 (patch) | |
tree | 1ed92aec21ec74e93a800eb14bc32d71130601b3 | |
parent | 7fe0b973fadad1634c1a86dda7c6200146299082 (diff) | |
download | linux-192aac1f19e7a2c69fe486b863c914aabd7acc69.tar.xz |
drm/i915: Shut down PCH interrupts during irq_uninstall
This masks out all interrupts and ack's any pending ones at IRQ
uninstall time to make sure we don't receive any unexpected interrupts
later on.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index c22823b..adeab2a 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c @@ -2044,6 +2044,10 @@ static void ironlake_irq_uninstall(struct drm_device *dev) I915_WRITE(GTIMR, 0xffffffff); I915_WRITE(GTIER, 0x0); I915_WRITE(GTIIR, I915_READ(GTIIR)); + + I915_WRITE(SDEIMR, 0xffffffff); + I915_WRITE(SDEIER, 0x0); + I915_WRITE(SDEIIR, I915_READ(SDEIIR)); } static void i915_driver_irq_uninstall(struct drm_device * dev) |