]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: add wait_for_vblank argument to intel_enable_pipe
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 19 Dec 2013 21:12:29 +0000 (19:12 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Feb 2014 17:53:06 +0000 (18:53 +0100)
commit15aded3dcf6f6c43fcb04603598596a718594e62
tree7f2aaa7f4105c162e52381ac3760efd436fd0e5e
parent4fa0ca6baf86240a4474f42d9ca5e2e8462a6e2b
drm/i915: add wait_for_vblank argument to intel_enable_pipe

Depending on the HW gen and the connector type, the pipe won't start
running right after we call intel_enable_pipe, so that
intel_wait_for_vblank call we currently have will just sit there for
the full 50ms timeout. So this patch adds an argument that will allow
us to avoid the vblank wait in case we want. Currently all the callers
still request for the vblank wait, so the behavior should still be the
same.

We also added a POSTING_READ on the register: previously
intel_wait_for_vblank was acting as a POSTING_READ, but now if
wait_for_vblank is false we'll stkip it, so we need an explicit
POSTING_READ.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c