]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Aug 2012 22:12:11 +0000 (15:12 -0700)
commit413b13d9dd468992591bafb55e849c87fb68341c
treefc574815824ed2efaf99c580d56316643041b9de
parent318095d39c962873a6aa0f31683745cb0420753e
drm/i915: correctly order the ring init sequence

commit 0d8957c8a90bbb5d34fab9a304459448a5131e06 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_ringbuffer.c