Skip to contentSkip to conversation

drm/exynos: fixed overlay updating time at page flip.

PATCH Superseded Inki Dae 1 participant 1 message Oct 14, 2011

Subsystems (3)
lore
Share & tools
lore

Inki Dae

author maintainer
#0 lore raw

PATCH 2/7 drm/exynos: fixed overlay updating time at page flip.

buffer addess is set to shadow register and then applied to real register at vsync front porch time.

---
 drivers/gpu/drm/exynos/exynos_drm_crtc.c |    4 +++-
 drivers/gpu/drm/exynos/exynos_drm_crtc.h |    1 -
 drivers/gpu/drm/exynos/exynos_drm_fimd.c |    2 --
 3 files changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_crtc.c +3 -1
index 654bf3a..0587b52 100644
@@ -78,7 +78,7 @@ struct exynos_drm_crtc {
 	unsigned int			pipe;
 };
 
-void exynos_drm_crtc_apply(struct drm_crtc *crtc)
+static void exynos_drm_crtc_apply(struct drm_crtc *crtc)
 {
 	struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
 	struct exynos_drm_overlay *overlay = &exynos_crtc->overlay;
@@ -279,6 +279,8 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc,
 			goto out;
 		}
 
+		exynos_drm_crtc_apply(crtc);
+
 		dev_priv->pageflip_event = true;
 	}
 out:
drivers/gpu/drm/exynos/exynos_drm_crtc.h +0 -1
index 452b62b..c584042 100644
@@ -31,7 +31,6 @@
 
 struct exynos_drm_overlay *get_exynos_drm_overlay(struct drm_device *dev,
 		struct drm_crtc *crtc);
-void exynos_drm_crtc_apply(struct drm_crtc *crtc);
 int exynos_drm_crtc_create(struct drm_device *dev, unsigned int nr);
 int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int crtc);
 void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int crtc);
drivers/gpu/drm/exynos/exynos_drm_fimd.c +0 -2
index 623ba33..9d1138e 100644
@@ -500,8 +500,6 @@ static void fimd_finish_pageflip(struct drm_device *drm_dev, int crtc)
 
 	spin_lock_irqsave(&drm_dev->event_lock, flags);
 
-	exynos_drm_crtc_apply(dev_priv->crtc[crtc]);
-
 	list_for_each_entry_safe(e, t, &dev_priv->pageflip_event_list,
 			base.link) {
 		do_gettimeofday(&now);
Signature · 1 line
1.7.4.1