Commit d9e600b2 authored by Chris Wilson's avatar Chris Wilson Committed by Daniel Vetter

drm/i915: Only call mod_timer() if not already pending

The final arrangement of updating timer->expires and calling mod_timer()
used in

commit 672e7b7c
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Nov 19 09:47:19 2014 +0000

    drm/i915: Don't continually defer the hangcheck

turns out to be very unsafe. Try again.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent bbd440fb
...@@ -3067,9 +3067,10 @@ void i915_queue_hangcheck(struct drm_device *dev) ...@@ -3067,9 +3067,10 @@ void i915_queue_hangcheck(struct drm_device *dev)
return; return;
/* Don't continually defer the hangcheck, but make sure it is active */ /* Don't continually defer the hangcheck, but make sure it is active */
if (!timer_pending(timer)) if (timer_pending(timer))
timer->expires = round_jiffies_up(jiffies + DRM_I915_HANGCHECK_JIFFIES); return;
mod_timer(timer, timer->expires); mod_timer(timer,
round_jiffies_up(jiffies + DRM_I915_HANGCHECK_JIFFIES));
} }
static void ibx_irq_reset(struct drm_device *dev) static void ibx_irq_reset(struct drm_device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment