diff options
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index ee896d91c5bc..b189b49c7602 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -1691,11 +1691,20 @@ static int | |||
1691 | i915_wait_request(struct drm_device *dev, uint32_t seqno) | 1691 | i915_wait_request(struct drm_device *dev, uint32_t seqno) |
1692 | { | 1692 | { |
1693 | drm_i915_private_t *dev_priv = dev->dev_private; | 1693 | drm_i915_private_t *dev_priv = dev->dev_private; |
1694 | u32 ier; | ||
1694 | int ret = 0; | 1695 | int ret = 0; |
1695 | 1696 | ||
1696 | BUG_ON(seqno == 0); | 1697 | BUG_ON(seqno == 0); |
1697 | 1698 | ||
1698 | if (!i915_seqno_passed(i915_get_gem_seqno(dev), seqno)) { | 1699 | if (!i915_seqno_passed(i915_get_gem_seqno(dev), seqno)) { |
1700 | ier = I915_READ(IER); | ||
1701 | if (!ier) { | ||
1702 | DRM_ERROR("something (likely vbetool) disabled " | ||
1703 | "interrupts, re-enabling\n"); | ||
1704 | i915_driver_irq_preinstall(dev); | ||
1705 | i915_driver_irq_postinstall(dev); | ||
1706 | } | ||
1707 | |||
1699 | dev_priv->mm.waiting_gem_seqno = seqno; | 1708 | dev_priv->mm.waiting_gem_seqno = seqno; |
1700 | i915_user_irq_get(dev); | 1709 | i915_user_irq_get(dev); |
1701 | ret = wait_event_interruptible(dev_priv->irq_queue, | 1710 | ret = wait_event_interruptible(dev_priv->irq_queue, |