]> 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)
commit968c4d4cbd085deb2e2654e20ded2f555c1e050f
tree7f2aaa7f4105c162e52381ac3760efd436fd0e5e
parent4f3cee4a73f63ffd50b9e3a729a728bae3cd57dc
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