diff mbox series

[v3] drm/i915: Restore interrupt enabling after a reset

Message ID 20190215234218.20377-1-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show
Series [v3] drm/i915: Restore interrupt enabling after a reset | expand

Commit Message

Chris Wilson Feb. 15, 2019, 11:42 p.m. UTC
At least on i965g and i965gm, performing a device reset clobbers the IER
resulting in loss of interrupts thereafter. So, run the irq_postinstall
hook to restore them.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/i915_reset.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/i915_reset.c b/drivers/gpu/drm/i915/i915_reset.c
index 5a067a4b3d5d..c5bb4a67a81b 100644
--- a/drivers/gpu/drm/i915/i915_reset.c
+++ b/drivers/gpu/drm/i915/i915_reset.c
@@ -994,10 +994,12 @@  void i915_reset(struct drm_i915_private *i915,
 		goto error;
 	}
 
+	intel_irq_uninstall(i915);
 	if (do_reset(i915, stalled_mask)) {
 		dev_err(i915->drm.dev, "Failed to reset chip\n");
 		goto taint;
 	}
+	intel_irq_install(i915);
 
 	intel_overlay_reset(i915);