drm/exynos/decon5433: fix vblank event handling
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 14 Mar 2017 08:27:57 +0000 (09:27 +0100)
committerInki Dae <inki.dae@samsung.com>
Tue, 21 Mar 2017 04:17:21 +0000 (13:17 +0900)
commit73488331eb9460d14974a1e2c734f77ce8869183
tree556b178422bec06f0cd586e12ae1f92122c78873
parenta392276d1dec63e5aabe6f527c37de29a729559a
drm/exynos/decon5433: fix vblank event handling

Current implementation of event handling assumes that vblank interrupt is
always called at the right time. It is not true, it can be delayed due to
various reasons. As a result different races can happen. The patch fixes
the issue by using hardware frame counter present in DECON to serialize
vblank and commit completion events.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
include/video/exynos5433_decon.h