]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/intel_display.c
drm/i915: paper over a pipe-enable vs pageflip race
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 4 Oct 2012 17:20:03 +0000 (19:20 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 Oct 2012 17:31:04 +0000 (19:31 +0200)
commit6ce9410047f9f06c1b3336d5215402b77d6fd70f
tree59b134cd2408654a10993452faa090ea5e85f6f0
parentc77d7162a7ae451c2e895d7ef7fbeb0906107472
drm/i915: paper over a pipe-enable vs pageflip race

I've discovered this on my ivb machine while stress-testing the new
flip_tests. Only harmful effect observed is that the timestamp is a
bit bogus.

Note that this is empirical duct-tape: I've noticed that we seem to
only ever miss the very first vblank irq right after enabling the
pipe. And with this hack applied I couldn't reproduce the failure case
anywhere else any more.

Tested-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c