Skip to content

Commit d6948b2

Browse files
Andrzej Hajdadaeinki
authored andcommitted
drm/exynos: enable vblank after DPMS on
Before DPMS off driver disables vblank. It should be balanced by vblank enable after DPMS on. The patch fixes issue with page_flip ioctl not being able to acquire vblank counter introduced by patch: drm: Always reject drm_vblank_get() after drm_vblank_off() Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent 3cb6830 commit d6948b2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/gpu/drm/exynos/exynos_drm_crtc.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,16 @@ static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
7171
!atomic_read(&exynos_crtc->pending_flip),
7272
HZ/20))
7373
atomic_set(&exynos_crtc->pending_flip, 0);
74-
drm_vblank_off(crtc->dev, exynos_crtc->pipe);
74+
drm_crtc_vblank_off(crtc);
7575
}
7676

7777
if (manager->ops->dpms)
7878
manager->ops->dpms(manager, mode);
7979

8080
exynos_crtc->dpms = mode;
81+
82+
if (mode == DRM_MODE_DPMS_ON)
83+
drm_crtc_vblank_on(crtc);
8184
}
8285

8386
static void exynos_drm_crtc_prepare(struct drm_crtc *crtc)

0 commit comments

Comments
 (0)