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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 19 Aug 2012 17:15:34 +0000 (18:15 +0100)
commit f01db988ef6f6c70a6cc36ee71e4a98a68901229 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

No differences found