]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite547feb5072bfd792c236102d992539f0f6f8916
tree556b178422bec06f0cd586e12ae1f92122c78873
parentb42fd8167c1c499f1836b501ea69541cc14ce22c
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