From eb5666b089ac0defe9a8ae3d218c9d4a098f683b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sat, 18 Feb 2006 04:13:36 +0000 Subject: clear i915 interrupts sources on server exit --- shared-core/i915_irq.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shared-core') diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c index 91e9573e..3e269419 100644 --- a/shared-core/i915_irq.c +++ b/shared-core/i915_irq.c @@ -204,10 +204,14 @@ void i915_driver_irq_postinstall(drm_device_t * dev) void i915_driver_irq_uninstall(drm_device_t * dev) { drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; + u16 temp; if (!dev_priv) return; I915_WRITE16(I915REG_HWSTAM, 0xffff); I915_WRITE16(I915REG_INT_MASK_R, 0xffff); I915_WRITE16(I915REG_INT_ENABLE_R, 0x0); + + temp = I915_READ16(I915REG_INT_IDENTITY_R); + I915_WRITE(I915REG_INT_IDENTITY_R, temp); } -- cgit v1.2.3