]> git.baikalelectronics.ru Git - kernel.git/commit
drm/imx: always call wait_for_flip_done in commit_tail
authorLucas Stach <l.stach@pengutronix.de>
Thu, 30 Nov 2017 13:31:46 +0000 (14:31 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 30 Nov 2017 14:47:40 +0000 (15:47 +0100)
commit11f75540fb12317309e6f74d57de4ceb91824b9e
treebd3ca8c327ed5efefb5b1432b17cc3204b141b82
parentfc34a8d7a6e80eb2c2304f3fb1526e012599ae42
drm/imx: always call wait_for_flip_done in commit_tail

drm_atomic_helper_wait_for_vblanks will go away in the future.

The new drm_atomic_helper_setup_commit in 4.15 expects that blocking commits
have completed flipping before the commit_tail returns. This must be ensured
by calling wait_for_vblanks or wait_for_flip_done, where flip_done might do
a less agressive wait, which is fine for imx-drm.

Fixes: ab5033f0d4b4 (drm/atomic: Check for busy planes/connectors before
                     setting the commit)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-drm-core.c