From: Gustavo Padovan Subject: [PATCH 2/3] drm/exynos: vidi: always handle vblank on planes updates Date: Thu, 18 Jun 2015 12:24:00 -0300 Message-ID: <1434641041-17833-3-git-send-email-gustavo@padovan.org> References: <1434641041-17833-1-git-send-email-gustavo@padovan.org> Return-path: In-Reply-To: <1434641041-17833-1-git-send-email-gustavo@padovan.org> Sender: linux-samsung-soc-owner@vger.kernel.org To: linux-samsung-soc@vger.kernel.org Cc: dri-devel@lists.freedesktop.org, inki.dae@samsung.com, jy0922.shim@samsung.com, tjakobi@math.uni-bielefeld.de, m.szyprowski@samsung.com, Gustavo Padovan List-Id: dri-devel@lists.freedesktop.org From: Gustavo Padovan We need to call drm_handle_vblank() after each successful plane update to update vblank counter and send the necessary events. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c index 3413393..4706d45 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c @@ -193,10 +193,11 @@ static void vidi_fake_vblank_handler(struct work_struct *work) /* refresh rate is about 50Hz. */ usleep_range(16000, 20000); + drm_handle_vblank(ctx->drm_dev, ctx->pipe); + mutex_lock(&ctx->lock); if (ctx->direct_vblank) { - drm_handle_vblank(ctx->drm_dev, ctx->pipe); ctx->direct_vblank = false; mutex_unlock(&ctx->lock); return; -- 2.1.0