]> git.baikalelectronics.ru Git - kernel.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)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Apr 2012 10:59:24 +0000 (12:59 +0200)
commitbdb743409612576be6450f0ae67833c840d4f90b
tree42c5a8e305f598656d6f168af4fe4954d2027778
parent570300f62947a24b2cc71c10ab83c404490f63cd
drm/i915: Wait for all pending operations to the fb before disabling the pipe

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>
drivers/gpu/drm/i915/intel_display.c