drm/i915: Add wait_for in init_ring_common
authorSean Paul <seanpaul@chromium.org>
Fri, 16 Mar 2012 16:43:22 +0000 (12:43 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 18 Mar 2012 18:10:06 +0000 (19:10 +0100)
commitf01db988ef6f6c70a6cc36ee71e4a98a68901229
treeaeb61cdfc2f00b40654fdf1a5bf1c2a54c99c797
parent9e984bc1dffd405138ff22356188b6a1677c64c8
drm/i915: Add wait_for in init_ring_common

I have seen a number of "blt ring initialization failed" messages
where the ctl or start registers are not the correct value. Upon further
inspection, if the code just waited a little bit, it would read the
correct value. Adding the wait_for to these reads should eliminate the
issue.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c