drm/i915: wait for rings to become idle once disabled
authorNaresh Kumar Kachhi <naresh.kumar.kachhi@intel.com>
Wed, 12 Mar 2014 11:09:41 +0000 (16:39 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Mar 2014 15:04:19 +0000 (16:04 +0100)
commite9fea5747d2b3dbff47a8790c1cc4d7af80051d6
treed6292f9a6b121589682365bfc24c5dcd368f7f05
parenta51435a3137ad8ae75c288c39bd2d8b2696bae8f
drm/i915: wait for rings to become idle once disabled

make sure we wait for rings to become idle once they are
disabled. In case of timeout print an error message

Signed-off-by: Naresh Kumar Kachhi <naresh.kumar.kachhi@intel.com>
[danvet: Frob patch as suggested by Chris.]
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h