]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Wait for all pending operations to the fb before disabling the pipe
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Apr 2012 09:05:38 +0000 (10:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:51:07 +0000 (08:51 -0800)
commitb834417b9134b533c79a12ff134da40b982d6b2f
treeee94ed343eac4a4b3c4d5cbe52714044384f97ba
parent392dcfdce12ee18d511c74132704c8749b149141
drm/i915: Wait for all pending operations to the fb before disabling the pipe

commit 0f91128d88bbb8b0a8e7bb93df2c40680871d45a upstream.

During modeset we have to disable the pipe to reconfigure its timings
and maybe its size. Userspace may have queued up command buffers that
depend upon the pipe running in a certain configuration and so the
commands may become confused across the modeset. At the moment, we use a
less than satisfactory kick-scanline-waits should the GPU hang during
the modeset. It should be more reliable to wait for the pending
operations to complete first, even though we still have a window for
userspace to submit a broken command buffer during the modeset.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_display.c