drm/i915: correctly order the ring init sequence
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 7 Aug 2012 07:54:14 +0000 (09:54 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Aug 2012 08:23:35 +0000 (10:23 +0200)
commit0d8957c8a90bbb5d34fab9a304459448a5131e06
tree3bf5709eb9e232b16fc4686b5c1e7d6599c3abee
parentda612d880fbc598ac0efcef579355fb90d4bca4e
drm/i915: correctly order the ring init sequence

We may only start to set up the new register values after having
confirmed that the ring is truely off. Otherwise the hw might lose the
newly written register values. This is caught later on in the init
sequence, when we check whether the register writes have stuck.

Cc: stable@vger.kernel.org
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50522
Tested-by: Yang Guang <guang.a.yang@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c