drm/atomic: Check old_plane_state->crtc in drm_atomic_helper_async_check()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Tue, 24 Jul 2018 13:32:15 +0000 (15:32 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 25 Jul 2018 19:11:02 +0000 (21:11 +0200)
commit603ba2dfb338b307aebe95fe344c479a59b3a175
tree88d0aec4ef84627f7c1f79df51a6eb8782d6a047
parentd530b5f1ca0bb66958a2b714bebe40a1248b9c15
drm/atomic: Check old_plane_state->crtc in drm_atomic_helper_async_check()

Async plane update is supposed to work only when updating the FB or FB
position of an already enabled plane. That does not apply to requests
where the plane was previously disabled or assigned to a different
CTRC.

Check old_plane_state->crtc value to make sure async plane update is
allowed.

Fixes: fef9df8b5945 ("drm/atomic: initial support for asynchronous plane update")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180724133215.31917-1-boris.brezillon@bootlin.com
drivers/gpu/drm/drm_atomic_helper.c