diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-13 18:44:34 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-14 05:30:10 -0400 |
commit | b3b079dbef06c7f775178d561a4c8e47b7447139 (patch) | |
tree | 90b76ae31d7330d79ce98e1cea98d4a198e4c47c /drivers/gpu/drm/i915/i915_drv.h | |
parent | e2e767abd85806d05a5266b3b112baaf80ee3382 (diff) |
drm/i915: Reduce hangcheck frequency
By reducing the hangcheck frequency we check less often, conserving
resources, and still detect a lock up quickly. On a fast machine with a
slow GPU (like a Core2 paired with a 945G) it is easy for the hangcheck to
misfire as we check too fast.
Also once hung and if we fail to completely reset the chip, we have a
nasty habit of proclaming a hang many times a second and generating a
strobe-like display.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 232555e33929..70cbe3cee1ab 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -299,7 +299,7 @@ typedef struct drm_i915_private { | |||
299 | int num_pipe; | 299 | int num_pipe; |
300 | 300 | ||
301 | /* For hangcheck timer */ | 301 | /* For hangcheck timer */ |
302 | #define DRM_I915_HANGCHECK_PERIOD 75 /* in jiffies */ | 302 | #define DRM_I915_HANGCHECK_PERIOD 250 /* in ms */ |
303 | struct timer_list hangcheck_timer; | 303 | struct timer_list hangcheck_timer; |
304 | int hangcheck_count; | 304 | int hangcheck_count; |
305 | uint32_t last_acthd; | 305 | uint32_t last_acthd; |