History

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()

Andrzej Hajda committed 12 years ago

Commit d6948b21 parent 3cb68301 file · +4 −1Browse files

Unified · Split

drivers/gpu/drm/exynos/exynos_drm_crtc.c+4−1
@@ -71,13 +71,16 @@ static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode) · 70 unmodified lines
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)