]> 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)
commitd258023f9734fe5c7a10adbc00102ae7209e030d
treebd3ca8c327ed5efefb5b1432b17cc3204b141b82
parentf9e9d4ede33f20ad238fc11db0232eaede684940
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: 910b7d1fabc3 (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