[PATCH] drm/exynos: fix overlay updating issue

Inki Dae inki.dae at samsung.com
Wed Nov 14 04:11:47 PST 2012


This patch fixes a issue that overlay data aren't applied
to real hardware when dpms off goes to on after setcrtc
was requested like below,
    dpms off -> setcrtc -> dpms off -> dpms on

For this, it makes encoder's dpms to be updated when
setcrtc is requested.

Signed-off-by: Inki Dae <inki.dae at samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
---
 drivers/gpu/drm/exynos/exynos_drm_encoder.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_encoder.c b/drivers/gpu/drm/exynos/exynos_drm_encoder.c
index 241ad1e..d971c95 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c
@@ -423,6 +423,8 @@ void exynos_drm_encoder_crtc_dpms(struct drm_encoder *encoder, void *data)
 		if (!encoder->crtc)
 			manager->pipe = -1;
 	}
+
+	exynos_encoder->dpms = mode;
 }
 
 void exynos_drm_encoder_crtc_pipe(struct drm_encoder *encoder, void *data)
-- 
1.7.4.1



More information about the dri-devel mailing list