drm/i915: Double check ring is idle before declaring the GPU wedged
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Aug 2014 08:21:35 +0000 (09:21 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 11:33:49 +0000 (13:33 +0200)
commit9bec9b1334d687c0a9fcf3d3a1987a61b4826a45
treeaa0e192a0a7680365a736edddc211e8268b06873
parent1bee20175f27b46427f10290fdd4a79334d41a60
drm/i915: Double check ring is idle before declaring the GPU wedged

During ring initialisation, sometimes we observe, though not in
production hardware, that the idle flag is not set even though the ring
is empty. Double check before giving up.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c