Skip to contentSkip to conversation

drm/exynos: wait for the completion of pending page flip

PATCH In review Inki Dae 4 participants 10 messages May 21, 2013 – May 22, 2013

Subsystems (3)
lore
Share & tools
lore

Inki Dae

author maintainer
#0 lore raw

PATCH 1/1 drm/exynos: wait for the completion of pending page flip

This patch fixes the issue that drm_vblank_get() is failed.

The issus occurs when next page flip request is tried if previous page flip event wasn't completed yet and then dpms became off.

So this patch make sure that page flip event is completed before dpms goes to off.

---
 drivers/gpu/drm/exynos/exynos_drm_crtc.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_crtc.c +16 -0
index e8894bc..69a77e9 100644
@@ -48,6 +48,8 @@ struct exynos_drm_crtc {
 	unsigned int			pipe;
 	unsigned int			dpms;
 	enum exynos_crtc_mode		mode;
+	wait_queue_head_t		pending_flip_queue;
+	atomic_t			pending_flip;
 };
 
 static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
@@ -61,6 +63,13 @@ static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
 		return;
 	}
 
+	if (mode > DRM_MODE_DPMS_ON) {
+		/* wait for the completion of page flip. */
+		wait_event(exynos_crtc->pending_flip_queue,
+				atomic_read(&exynos_crtc->pending_flip) == 0);
+		drm_vblank_off(crtc->dev, exynos_crtc->pipe);
+	}
+
 	exynos_drm_fn_encoder(crtc, &mode, exynos_drm_encoder_crtc_dpms);
 	exynos_crtc->dpms = mode;
 }
@@ -225,6 +234,7 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc,
 		spin_lock_irq(&dev->event_lock);
 		list_add_tail(&event->base.link,
 				&dev_priv->pageflip_event_list);
+		atomic_set(&exynos_crtc->pending_flip, 1);
 		spin_unlock_irq(&dev->event_lock);
 
 		crtc->fb = fb;
@@ -344,6 +354,8 @@ int exynos_drm_crtc_create(struct drm_device *dev, unsigned int nr)
 
 	exynos_crtc->pipe = nr;
 	exynos_crtc->dpms = DRM_MODE_DPMS_OFF;
+	init_waitqueue_head(&exynos_crtc->pending_flip_queue);
+	atomic_set(&exynos_crtc->pending_flip, 0);
 	exynos_crtc->plane = exynos_plane_init(dev, 1 << nr, true);
 	if (!exynos_crtc->plane) {
 		kfree(exynos_crtc);
@@ -398,6 +410,8 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc)
 {
 	struct exynos_drm_private *dev_priv = dev->dev_private;
 	struct drm_pending_vblank_event *e, *t;
+	struct drm_crtc *drm_crtc = dev_priv->crtc[crtc];
+	struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(drm_crtc);
 	struct timeval now;
 	unsigned long flags;
 
@@ -419,6 +433,8 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc)
 		list_move_tail(&e->base.link, &e->base.file_priv->event_list);
 		wake_up_interruptible(&e->base.file_priv->event_wait);
 		drm_vblank_put(dev, crtc);
+		atomic_set(&exynos_crtc->pending_flip, 0);
+		wake_up(&exynos_crtc->pending_flip_queue);
 	}
 
 	spin_unlock_irqrestore(&dev->event_lock, flags);
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 8 lines · Inki Dae

This patch fixes the issue that drm_vblank_get() is failed.

The issus occurs when next page flip request is tried if previous page flip event wasn't completed yet and then dpms became off.

So this patch make sure that page flip event is completed before dpms goes to off.

Hi,

This patch is a squash of the two following patches from the Chrome OS tree with the KDS bits removed and the dpms off bit added:

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.git;a=commitdiff;h=2e77cd4e423967862ca01b1af82aa8b5b7429fc4;hp=aba002da4c6e5efec4d43e1ce33930a79269349a
http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.git;a=commitdiff;h=b4ec8bfa750ef43a43c2da746c8afdbb51002882;hp=4f28b9a75c928f229443d7c6c3163159ceb6903a

Please keep proper attribution.

Quoted 21 lines
---
 drivers/gpu/drm/exynos/exynos_drm_crtc.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
index e8894bc..69a77e9 100644
@@ -48,6 +48,8 @@ struct exynos_drm_crtc {
        unsigned int                    pipe;
        unsigned int                    dpms;
        enum exynos_crtc_mode           mode;
+       wait_queue_head_t               pending_flip_queue;
+       atomic_t                        pending_flip;
 };
 
 static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode) · line 70

Quoted 8 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +5 -0
@@ -61,6 +63,13 @@ static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
                return;
        }
 
+       if (mode > DRM_MODE_DPMS_ON) {
+               /* wait for the completion of page flip. */
+               wait_event(exynos_crtc->pending_flip_queue,
+                               atomic_read(&exynos_crtc->pending_flip) == 0);
+               drm_vblank_off(crtc->dev, exynos_crtc->pipe);

You should be using vblank_put/get.

Stéphane

Quoted 47 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +9 -1
+       }
+
        exynos_drm_fn_encoder(crtc, &mode, exynos_drm_encoder_crtc_dpms);
        exynos_crtc->dpms = mode;
 }
@@ -225,6 +234,7 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc,
                spin_lock_irq(&dev->event_lock);
                list_add_tail(&event->base.link,
                                &dev_priv->pageflip_event_list);
+               atomic_set(&exynos_crtc->pending_flip, 1);
                spin_unlock_irq(&dev->event_lock);
 
                crtc->fb = fb;
@@ -344,6 +354,8 @@ int exynos_drm_crtc_create(struct drm_device *dev, unsigned int nr)
 
        exynos_crtc->pipe = nr;
        exynos_crtc->dpms = DRM_MODE_DPMS_OFF;
+       init_waitqueue_head(&exynos_crtc->pending_flip_queue);
+       atomic_set(&exynos_crtc->pending_flip, 0);
        exynos_crtc->plane = exynos_plane_init(dev, 1 << nr, true);
        if (!exynos_crtc->plane) {
                kfree(exynos_crtc);
@@ -398,6 +410,8 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc)
 {
        struct exynos_drm_private *dev_priv = dev->dev_private;
        struct drm_pending_vblank_event *e, *t;
+       struct drm_crtc *drm_crtc = dev_priv->crtc[crtc];
+       struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(drm_crtc);
        struct timeval now;
        unsigned long flags;
 
@@ -419,6 +433,8 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc)
                list_move_tail(&e->base.link, &e->base.file_priv->event_list);
                wake_up_interruptible(&e->base.file_priv->event_wait);
                drm_vblank_put(dev, crtc);
+               atomic_set(&exynos_crtc->pending_flip, 0);
+               wake_up(&exynos_crtc->pending_flip_queue);
        }
 
        spin_unlock_irqrestore(&dev->event_lock, flags);
--

1.7.5.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author maintainer
#2 lore raw

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 16 lines · Inki Dae
Quoted 8 lines

This patch fixes the issue that drm_vblank_get() is failed.

The issus occurs when next page flip request is tried if previous page flip event wasn't completed yet and then dpms became off.

So this patch make sure that page flip event is completed before dpms goes to off.

Hi,

This patch is a squash of the two following patches from the Chrome OS tree with the KDS bits removed and the dpms off bit added:

Quoted 7 lines

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.git;a=commitdiff;h=2e77cd4e423967862ca01b1af82aa8b5b7429fc4;hp=aba002da4c6e5efec4d43e1ce33930a79269349a

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.git;a=commitdiff;h=b4ec8bfa750ef43a43c2da746c8afdbb51002882;hp=4f28b9a75c928f229443d7c6c3163159ceb6903a

Please keep proper attribution.

Those patches are just for Chrome OS. Please post them if you want for those to be considered so that they can be reviewed. That is why we attend open source. One more comment, please do not abuse exynos_drm_crtc_page_flip()

Review

Quoted 8 lines
---
 drivers/gpu/drm/exynos/exynos_drm_crtc.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

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

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc

Quoted 13 lines

index e8894bc..69a77e9 100644

drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
@@ -48,6 +48,8 @@ struct exynos_drm_crtc {
        unsigned int                    pipe;
        unsigned int                    dpms;
        enum exynos_crtc_mode           mode;
+       wait_queue_head_t               pending_flip_queue;
+       atomic_t                        pending_flip;
 };
 
 static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
@@ -61,6 +63,13 @@ static void exynos_drm_crtc_dpms(struct drm_crtc

*crtc, int mode)

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)

Quoted 7 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +4 -0
                return;
        }
 
+       if (mode > DRM_MODE_DPMS_ON) {
+               /* wait for the completion of page flip. */
+               wait_event(exynos_crtc->pending_flip_queue,
+                               atomic_read(&exynos_crtc->pending_flip)

== 0);

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode) · line 70

Quoted 1 line
drivers/gpu/drm/exynos/exynos_drm_crtc.c +1 -0
+               drm_vblank_off(crtc->dev, exynos_crtc->pipe);

You should be using vblank_put/get.

Quoted 2 lines

No, drm_vblank_put should be called by exynos_drm_crtc_finish_pageflip(). And know that this patch makes sure that pended page flip event is completed before dpms goes to off.

Thanks,
Inki Dae

Stéphane

Quoted 49 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c static int exynos_drm_crtc_page_flip(struct drm_crtc

Quoted 7 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
+       }
+
        exynos_drm_fn_encoder(crtc, &mode, exynos_drm_encoder_crtc_dpms);
        exynos_crtc->dpms = mode;
 }
@@ -225,6 +234,7 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc

*crtc,

drivers/gpu/drm/exynos/exynos_drm_crtc.c int exynos_drm_crtc_create(struct drm_device *dev,

Quoted 8 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +1 -0
                spin_lock_irq(&dev->event_lock);
                list_add_tail(&event->base.link,
                                &dev_priv->pageflip_event_list);
+               atomic_set(&exynos_crtc->pending_flip, 1);
                spin_unlock_irq(&dev->event_lock);
 
                crtc->fb = fb;
@@ -344,6 +354,8 @@ int exynos_drm_crtc_create(struct drm_device *dev,

unsigned int nr)

drivers/gpu/drm/exynos/exynos_drm_crtc.c void exynos_drm_crtc_finish_pageflip(struct

Quoted 9 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
        exynos_crtc->pipe = nr;
        exynos_crtc->dpms = DRM_MODE_DPMS_OFF;
+       init_waitqueue_head(&exynos_crtc->pending_flip_queue);
+       atomic_set(&exynos_crtc->pending_flip, 0);
        exynos_crtc->plane = exynos_plane_init(dev, 1 << nr, true);
        if (!exynos_crtc->plane) {
                kfree(exynos_crtc);
@@ -398,6 +410,8 @@ void exynos_drm_crtc_finish_pageflip(struct

drm_device *dev, int crtc)

drivers/gpu/drm/exynos/exynos_drm_crtc.c void exynos_drm_crtc_finish_pageflip(struct

Quoted 9 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
 {
        struct exynos_drm_private *dev_priv = dev->dev_private;
        struct drm_pending_vblank_event *e, *t;
+       struct drm_crtc *drm_crtc = dev_priv->crtc[crtc];
+       struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(drm_crtc);
        struct timeval now;
        unsigned long flags;
 
@@ -419,6 +433,8 @@ void exynos_drm_crtc_finish_pageflip(struct

drm_device *dev, int crtc)

Review void exynos_drm_crtc_finish_pageflip(struct · line 433

Quoted 1 line
(quoted diff) +0 -0
                list_move_tail(&e->base.link,

&e->base.file_priv->event_list);

Quoted 10 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -1
                wake_up_interruptible(&e->base.file_priv->event_wait);
                drm_vblank_put(dev, crtc);
+               atomic_set(&exynos_crtc->pending_flip, 0);
+               wake_up(&exynos_crtc->pending_flip_queue);
        }
 
        spin_unlock_irqrestore(&dev->event_lock, flags);
--

1.7.5.4

Quoted 9 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 23 lines · Inki Dae

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 19 lines · Inki Dae
Quoted 8 lines

This patch fixes the issue that drm_vblank_get() is failed.

The issus occurs when next page flip request is tried if previous page flip event wasn't completed yet and then dpms became off.

So this patch make sure that page flip event is completed before dpms goes to off.

Hi,

This patch is a squash of the two following patches from the Chrome OS tree with the KDS bits removed and the dpms off bit added:

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.git;a=commitdiff;h=2e77cd4e423967862ca01b1af82aa8b5b7429fc4;hp=aba002da4c6e5efec4d43e1ce33930a79269349a

Quoted 7 lines
Quoted 4 lines

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.git;a=commitdiff;h=b4ec8bfa750ef43a43c2da746c8afdbb51002882;hp=4f28b9a75c928f229443d7c6c3163159ceb6903a

Please keep proper attribution.

Those patches are just for Chrome OS. Please post them if you want for those to be considered so that they can be reviewed.

We intend to, once they are rebased onto latest kernel. But what I'm pointing out is that you're removing proper attribution from Chrome OS patches, and this is the second time it has happened.

Quoted 3 lines

That is why we attend open
source. One more comment, please do not abuse exynos_drm_crtc_page_flip()

What do you mean by abuse?

Quoted 33 lines
Quoted 32 lines
---
 drivers/gpu/drm/exynos/exynos_drm_crtc.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_crtc.c +7 -0
index e8894bc..69a77e9 100644
@@ -48,6 +48,8 @@ struct exynos_drm_crtc {
        unsigned int                    pipe;
        unsigned int                    dpms;
        enum exynos_crtc_mode           mode;
+       wait_queue_head_t               pending_flip_queue;
+       atomic_t                        pending_flip;
 };
 
 static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
@@ -61,6 +63,13 @@ static void exynos_drm_crtc_dpms(struct drm_crtc *crtc,
 int mode)
                return;
        }
 
+       if (mode > DRM_MODE_DPMS_ON) {
+               /* wait for the completion of page flip. */
+               wait_event(exynos_crtc->pending_flip_queue,
+                               atomic_read(&exynos_crtc->pending_flip) ==
 0);
+               drm_vblank_off(crtc->dev, exynos_crtc->pipe);
Quoted 6 lines
Quoted 2 lines

You should be using vblank_put/get.

No, drm_vblank_put should be called by exynos_drm_crtc_finish_pageflip(). And know that this patch makes sure that pended page flip event is completed before dpms goes to off.

You need to do vblank_put/get while you're waiting. Otherwise you don't know for sure that flips will happen. This is especially bad as you don't use a timeout.

Stéphane

Quoted 65 lines

Thanks,
Inki Dae

Quoted 59 lines

Stéphane

Quoted 45 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
+       }
+
        exynos_drm_fn_encoder(crtc, &mode,
exynos_drm_encoder_crtc_dpms);
        exynos_crtc->dpms = mode;

}

drivers/gpu/drm/exynos/exynos_drm_crtc.c +1 -0
@@ -225,6 +234,7 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc
 *crtc,
                spin_lock_irq(&dev->event_lock);
                list_add_tail(&event->base.link,
                                &dev_priv->pageflip_event_list);
+               atomic_set(&exynos_crtc->pending_flip, 1);
                spin_unlock_irq(&dev->event_lock);
 
                crtc->fb = fb;
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
@@ -344,6 +354,8 @@ int exynos_drm_crtc_create(struct drm_device *dev,
 unsigned int nr)
 
        exynos_crtc->pipe = nr;
        exynos_crtc->dpms = DRM_MODE_DPMS_OFF;
+       init_waitqueue_head(&exynos_crtc->pending_flip_queue);
+       atomic_set(&exynos_crtc->pending_flip, 0);
        exynos_crtc->plane = exynos_plane_init(dev, 1 << nr, true);
        if (!exynos_crtc->plane) {
                kfree(exynos_crtc);
drivers/gpu/drm/exynos/exynos_drm_crtc.c +4 -0
@@ -398,6 +410,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
 {
        struct exynos_drm_private *dev_priv = dev->dev_private;
        struct drm_pending_vblank_event *e, *t;
+       struct drm_crtc *drm_crtc = dev_priv->crtc[crtc];
+       struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(drm_crtc);
        struct timeval now;
        unsigned long flags;
@@ -419,6 +433,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
                list_move_tail(&e->base.link,
 &e->base.file_priv->event_list);
                wake_up_interruptible(&e->base.file_priv->event_wait);
                drm_vblank_put(dev, crtc);
+               atomic_set(&exynos_crtc->pending_flip, 0);
+               wake_up(&exynos_crtc->pending_flip_queue);
        }
Quoted 8 lines
        spin_unlock_irqrestore(&dev->event_lock, flags);

--
1.7.5.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author maintainer
#4 lore raw

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 31 lines · Inki Dae
Quoted 22 lines

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 18 lines · Inki Dae
Quoted 8 lines

This patch fixes the issue that drm_vblank_get() is failed.

The issus occurs when next page flip request is tried if previous page flip event wasn't completed yet and then dpms became off.

So this patch make sure that page flip event is completed before dpms goes to off.

Hi,

This patch is a squash of the two following patches from the Chrome OS tree with the KDS bits removed and the dpms off bit added:

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.git;a=commitdiff;h=2e77cd4e423967862ca01b1af82aa8b5b7429fc4;hp=aba002da4c6e5efec4d43e1ce33930a79269349a

Quoted 2 lines
Quoted 2 lines

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.git;a=commitdiff;h=b4ec8bfa750ef43a43c2da746c8afdbb51002882;hp=4f28b9a75c928f229443d7c6c3163159ceb6903a

Quoted 4 lines
Quoted 3 lines

Please keep proper attribution.

Quoted 8 lines
Quoted 1 line

Those patches are just for Chrome OS. Please post them if you want for

those

Quoted 1 line

to be considered so that they can be reviewed.

We intend to, once they are rebased onto latest kernel. But what I'm pointing out is that you're removing proper attribution from Chrome OS patches, and this is the second time it has happened.

What is mean? does mainline kernel have the attribution? if not so, we don't need to consider it. And please know that I can not be aware of you have such patch set without any posting.

Quoted 45 lines
Quoted 4 lines

That is why we attend open
source. One more comment, please do not abuse exynos_drm_crtc_page_flip()

What do you mean by abuse?

Quoted 20 lines
Quoted 20 lines
---
 drivers/gpu/drm/exynos/exynos_drm_crtc.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
index e8894bc..69a77e9 100644
@@ -48,6 +48,8 @@ struct exynos_drm_crtc {
        unsigned int                    pipe;
        unsigned int                    dpms;
        enum exynos_crtc_mode           mode;
+       wait_queue_head_t               pending_flip_queue;
+       atomic_t                        pending_flip;
 };
 
Quoted 2 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc

Quoted 2 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +0 -0
 static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
@@ -61,6 +63,13 @@ static void exynos_drm_crtc_dpms(struct drm_crtc

*crtc,

Quoted 8 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)

Quoted 8 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +4 -0
 int mode)
                return;
        }
 
+       if (mode > DRM_MODE_DPMS_ON) {
+               /* wait for the completion of page flip. */
+               wait_event(exynos_crtc->pending_flip_queue,
+                               atomic_read(&exynos_crtc->pending_flip)

==

Quoted 6 lines
Quoted 5 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +1 -0
 0);
+               drm_vblank_off(crtc->dev, exynos_crtc->pipe);
 

You should be using vblank_put/get.

Quoted 9 lines
Quoted 2 lines

No, drm_vblank_put should be called by exynos_drm_crtc_finish_pageflip(). And know that this patch makes sure that pended page flip event is

completed

Quoted 1 line

before dpms goes to off.

You need to do vblank_put/get while you're waiting. Otherwise you don't know for sure that flips will happen. This is especially bad as you don't use a timeout.

Understood. Right, drm_vblank_get call before wait_event and drm_vblank_put call after wait_event.

Thanks,
Inki Dae

Quoted 70 lines

Stéphane

Quoted 6 lines

Thanks,
Inki Dae

Quoted 2 lines

Stéphane

Quoted 7 lines
Quoted 7 lines

Review static int exynos_drm_crtc_page_flip(struct

Quoted 7 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
+       }
+
        exynos_drm_fn_encoder(crtc, &mode,
exynos_drm_encoder_crtc_dpms);
        exynos_crtc->dpms = mode;

}

(quoted diff) +0 -0
@@ -225,6 +234,7 @@ static int exynos_drm_crtc_page_flip(struct

drm_crtc

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +1 -0
 *crtc,
                spin_lock_irq(&dev->event_lock);
                list_add_tail(&event->base.link,
                                &dev_priv->pageflip_event_list);
+               atomic_set(&exynos_crtc->pending_flip, 1);
                spin_unlock_irq(&dev->event_lock);
 
                crtc->fb = fb;
(quoted diff) +0 -0
@@ -344,6 +354,8 @@ int exynos_drm_crtc_create(struct drm_device *dev,
 unsigned int nr)
 
Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
        exynos_crtc->pipe = nr;
        exynos_crtc->dpms = DRM_MODE_DPMS_OFF;
+       init_waitqueue_head(&exynos_crtc->pending_flip_queue);
+       atomic_set(&exynos_crtc->pending_flip, 0);
        exynos_crtc->plane = exynos_plane_init(dev, 1 << nr, true);
        if (!exynos_crtc->plane) {
Quoted 8 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c void exynos_drm_crtc_finish_pageflip(struct · line 415

Quoted 8 lines
                kfree(exynos_crtc);
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
@@ -398,6 +410,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
 {
        struct exynos_drm_private *dev_priv = dev->dev_private;
        struct drm_pending_vblank_event *e, *t;
+       struct drm_crtc *drm_crtc = dev_priv->crtc[crtc];
+       struct exynos_drm_crtc *exynos_crtc =

to_exynos_crtc(drm_crtc);

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
        struct timeval now;
        unsigned long flags;
@@ -419,6 +433,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
                list_move_tail(&e->base.link,
 &e->base.file_priv->event_list);
                wake_up_interruptible(&e->base.file_priv->event_wait);
                drm_vblank_put(dev, crtc);
+               atomic_set(&exynos_crtc->pending_flip, 0);
+               wake_up(&exynos_crtc->pending_flip_queue);
        }
        spin_unlock_irqrestore(&dev->event_lock, flags);

--
1.7.5.4

Quoted 10 lines
Quoted 8 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Quoted 5 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author maintainer
#5 lore raw

2013/5/22 Inki Dae <[email protected]>

Quoted 103 lines

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 32 lines · Inki Dae
Quoted 6 lines

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 2 lines

On Tue, May 21, 2013 at 1:08 AM, Inki Dae <[email protected]>

Quoted 9 lines · wrote:
Quoted 9 lines
Quoted 8 lines

This patch fixes the issue that drm_vblank_get() is failed.

The issus occurs when next page flip request is tried if previous page flip event wasn't completed yet and then dpms became off.

So this patch make sure that page flip event is completed before dpms goes to off.

Quoted 7 lines
Quoted 7 lines

Hi,

This patch is a squash of the two following patches from the Chrome OS tree with the KDS bits removed and the dpms off bit added:

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.git;a=commitdiff;h=2e77cd4e423967862ca01b1af82aa8b5b7429fc4;hp=aba002da4c6e5efec4d43e1ce33930a79269349a

Quoted 2 lines
Quoted 2 lines

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.git;a=commitdiff;h=b4ec8bfa750ef43a43c2da746c8afdbb51002882;hp=4f28b9a75c928f229443d7c6c3163159ceb6903a

Quoted 4 lines
Quoted 3 lines

Please keep proper attribution.

Quoted 8 lines
Quoted 1 line

Those patches are just for Chrome OS. Please post them if you want for

those

Quoted 1 line

to be considered so that they can be reviewed.

We intend to, once they are rebased onto latest kernel. But what I'm pointing out is that you're removing proper attribution from Chrome OS patches, and this is the second time it has happened.

What is mean? does mainline kernel have the attribution? if not so, we don't need to consider it. And please know that I can not be aware of you have such patch set without any posting.

Quoted 52 lines
Quoted 3 lines

That is why we attend open
source. One more comment, please do not abuse

exynos_drm_crtc_page_flip()

Quoted 1 line

What do you mean by abuse?

Quoted 20 lines
Quoted 20 lines
---
 drivers/gpu/drm/exynos/exynos_drm_crtc.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
index e8894bc..69a77e9 100644
@@ -48,6 +48,8 @@ struct exynos_drm_crtc {
        unsigned int                    pipe;
        unsigned int                    dpms;
        enum exynos_crtc_mode           mode;
+       wait_queue_head_t               pending_flip_queue;
+       atomic_t                        pending_flip;
 };
 
Quoted 2 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc

Quoted 2 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +0 -0
 static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
@@ -61,6 +63,13 @@ static void exynos_drm_crtc_dpms(struct drm_crtc

*crtc,

Quoted 8 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode) · line 72

Quoted 8 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +4 -0
 int mode)
                return;
        }
 
+       if (mode > DRM_MODE_DPMS_ON) {
+               /* wait for the completion of page flip. */
+               wait_event(exynos_crtc->pending_flip_queue,
+

atomic_read(&exynos_crtc->pending_flip) ==

Quoted 7 lines
Quoted 5 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +1 -0
 0);
+               drm_vblank_off(crtc->dev, exynos_crtc->pipe);
 

You should be using vblank_put/get.

No, drm_vblank_put should be called by

exynos_drm_crtc_finish_pageflip().

Quoted 1 line

And know that this patch makes sure that pended page flip event is

completed

Quoted 1 line

before dpms goes to off.

Quoted 9 lines
Quoted 4 lines

You need to do vblank_put/get while you're waiting. Otherwise you don't know for sure that flips will happen. This is especially bad as you don't use a timeout.

Understood. Right, drm_vblank_get call before wait_event and drm_vblank_put call after wait_event.

drm_vblank_get/put are needed really? I think that exynos_crtc->pending_flip is 0 if vblank interrrupt was disabled so wait_event will be returned just.

Quoted 83 lines

Thanks,
Inki Dae

Quoted 77 lines

Stéphane

Quoted 6 lines

Thanks,
Inki Dae

Quoted 2 lines

Stéphane

Quoted 7 lines
Quoted 7 lines

Review static int exynos_drm_crtc_page_flip(struct

Quoted 7 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
+       }
+
        exynos_drm_fn_encoder(crtc, &mode,
exynos_drm_encoder_crtc_dpms);
        exynos_crtc->dpms = mode;

}

(quoted diff) +0 -0
@@ -225,6 +234,7 @@ static int exynos_drm_crtc_page_flip(struct

drm_crtc

Quoted 9 lines
Quoted 9 lines

Review int exynos_drm_crtc_create(struct drm_device

Quoted 9 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +1 -0
 *crtc,
                spin_lock_irq(&dev->event_lock);
                list_add_tail(&event->base.link,
                                &dev_priv->pageflip_event_list);
+               atomic_set(&exynos_crtc->pending_flip, 1);
                spin_unlock_irq(&dev->event_lock);
 
                crtc->fb = fb;
(quoted diff) +0 -0
@@ -344,6 +354,8 @@ int exynos_drm_crtc_create(struct drm_device

*dev,

Quoted 16 lines
Quoted 16 lines
Quoted 10 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
 unsigned int nr)
 
        exynos_crtc->pipe = nr;
        exynos_crtc->dpms = DRM_MODE_DPMS_OFF;
+       init_waitqueue_head(&exynos_crtc->pending_flip_queue);
+       atomic_set(&exynos_crtc->pending_flip, 0);
        exynos_crtc->plane = exynos_plane_init(dev, 1 << nr, true);
        if (!exynos_crtc->plane) {
                kfree(exynos_crtc);

drivers/gpu/drm/exynos/exynos_drm_crtc.c void exynos_drm_crtc_finish_pageflip(struct · line 415

Quoted 6 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
@@ -398,6 +410,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
 {
        struct exynos_drm_private *dev_priv = dev->dev_private;
        struct drm_pending_vblank_event *e, *t;
+       struct drm_crtc *drm_crtc = dev_priv->crtc[crtc];
+       struct exynos_drm_crtc *exynos_crtc =

to_exynos_crtc(drm_crtc);

Quoted 8 lines
Quoted 8 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c void exynos_drm_crtc_finish_pageflip(struct · line 436

Quoted 8 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +0 -0
        struct timeval now;
        unsigned long flags;
@@ -419,6 +433,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
                list_move_tail(&e->base.link,
 &e->base.file_priv->event_list);
 

wake_up_interruptible(&e->base.file_priv->event_wait);

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
                drm_vblank_put(dev, crtc);
+               atomic_set(&exynos_crtc->pending_flip, 0);
+               wake_up(&exynos_crtc->pending_flip_queue);
        }
        spin_unlock_irqrestore(&dev->event_lock, flags);

--
1.7.5.4

Quoted 10 lines
Quoted 8 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to Inki Dae

Hi Inki,

Quoted 3 lines · On Wednesday 22 of May 2013 15:37:14 Inki Dae wrote:

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 1 line

On Tue, May 21, 2013 at 9:22 PM, Inki Dae <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 1 line

On Tue, May 21, 2013 at 1:08 AM, Inki Dae <[email protected]>

Quoted 32 lines · wrote:
Quoted 32 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

This patch fixes the issue that drm_vblank_get() is failed.

The issus occurs when next page flip request is tried if previous page flip event wasn't completed yet and then dpms became off.

So this patch make sure that page flip event is completed before dpms goes to off.

Quoted 6 lines
Quoted 6 lines

Hi,

This patch is a squash of the two following patches from the Chrome OS

tree with the KDS bits removed and the dpms off bit added:

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.g
it;a=commitdiff;h=2e77cd4e423967862ca01b1af82aa8b5b7429fc4;hp=aba002da 4c6e5efec4d43e1ce33930a79269349a

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.g
it;a=commitdiff;h=b4ec8bfa750ef43a43c2da746c8afdbb51002882;hp=4f28b9a7 5c928f229443d7c6c3163159ceb6903a>

Quoted 4 lines
Quoted 1 line

Please keep proper attribution.

Those patches are just for Chrome OS. Please post them if you want for

those

Quoted 1 line

to be considered so that they can be reviewed.

Quoted 8 lines
Quoted 3 lines

We intend to, once they are rebased onto latest kernel. But what I'm pointing out is that you're removing proper attribution from Chrome OS patches, and this is the second time it has happened.

What is mean? does mainline kernel have the attribution? if not so, we don't need to consider it. And please know that I can not be aware of you have such patch set without any posting.

at·tri·bu·tion
n.
1. The act of attributing, especially the act of establishing a particular person as the creator of a work of art
[1]

So yes, mainline kernel has attribution. Actually posting something as work of someone that is not the author of the posted work is considered bad everywhere, isn't it?

However looking at those two patches linked by Stéphane, I'm not really sure this patch is really just a squash of them. Stéphane, are you 100% sure that your claims are true?

Best regards,
Tomasz

[1] http://www.thefreedictionary.com/attribution

Quoted 172 lines
Quoted 56 lines
Quoted 3 lines

That is why we attend open
source. One more comment, please do not abuse
exynos_drm_crtc_page_flip()>

What do you mean by abuse?

Quoted 18 lines
Quoted 18 lines

---

 drivers/gpu/drm/exynos/exynos_drm_crtc.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_crtc.c +0 -0
index e8894bc..69a77e9 100644
@@ -48,6 +48,8 @@ struct exynos_drm_crtc {
 
        unsigned int                    pipe;
        unsigned int                    dpms;
        enum exynos_crtc_mode           mode;
 
Quoted 8 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc

Quoted 8 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
+       wait_queue_head_t               pending_flip_queue;
+       atomic_t                        pending_flip;
 

};

static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)

drivers/gpu/drm/exynos/exynos_drm_crtc.c +0 -0
@@ -61,6 +63,13 @@ static void exynos_drm_crtc_dpms(struct drm_crtc

*crtc,

Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +4 -0
 int mode)
 
                return;
 
        }
 
+       if (mode > DRM_MODE_DPMS_ON) {
+               /* wait for the completion of page flip. */
+               wait_event(exynos_crtc->pending_flip_queue,
+                              

atomic_read(&exynos_crtc->pending_flip)

==

Quoted 8 lines
Quoted 4 lines

0);
+ drm_vblank_off(crtc->dev, exynos_crtc->pipe);

You should be using vblank_put/get.

No, drm_vblank_put should be called by exynos_drm_crtc_finish_pageflip(). And know that this patch makes sure that pended page flip event is>

Quoted 7 lines

completed

Quoted 1 line

before dpms goes to off.

You need to do vblank_put/get while you're waiting. Otherwise you don't know for sure that flips will happen. This is especially bad as you don't use a timeout.

Understood. Right, drm_vblank_get call before wait_event and drm_vblank_put call after wait_event.

Thanks,
Inki Dae

Quoted 102 lines

Stéphane

Quoted 10 lines

Thanks,
Inki Dae

Quoted 7 lines

Stéphane

Quoted 5 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
+       }
+
 
        exynos_drm_fn_encoder(crtc, &mode,
Quoted 7 lines
Quoted 7 lines

Review static int exynos_drm_crtc_page_flip(struct

Quoted 7 lines

exynos_drm_encoder_crtc_dpms);

        exynos_crtc->dpms = mode;

}

(quoted diff) +0 -0
@@ -225,6 +234,7 @@ static int exynos_drm_crtc_page_flip(struct

drm_crtc

Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +3 -0
 *crtc,
 
                spin_lock_irq(&dev->event_lock);
                list_add_tail(&event->base.link,
 
                                &dev_priv->pageflip_event_list);
 
+               atomic_set(&exynos_crtc->pending_flip, 1);
 
                spin_unlock_irq(&dev->event_lock);
 
                crtc->fb = fb;
@@ -344,6 +354,8 @@ int exynos_drm_crtc_create(struct drm_device
 *dev,
 unsigned int nr)
 
        exynos_crtc->pipe = nr;
        exynos_crtc->dpms = DRM_MODE_DPMS_OFF;
 
+       init_waitqueue_head(&exynos_crtc->pending_flip_queue);
+       atomic_set(&exynos_crtc->pending_flip, 0);
        exynos_crtc->plane = exynos_plane_init(dev, 1 << nr,
        true);
        if (!exynos_crtc->plane) {
        
                kfree(exynos_crtc);
(quoted diff) +0 -0
@@ -398,6 +410,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
 
Quoted 7 lines
Quoted 7 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc)

Quoted 7 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
 {
 
        struct exynos_drm_private *dev_priv = dev->dev_private;
        struct drm_pending_vblank_event *e, *t;
 
+       struct drm_crtc *drm_crtc = dev_priv->crtc[crtc];
+       struct exynos_drm_crtc *exynos_crtc =

to_exynos_crtc(drm_crtc);

Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
        struct timeval now;
        unsigned long flags;
(quoted diff) +2 -1
@@ -419,6 +433,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
 
                list_move_tail(&e->base.link,
 
 &e->base.file_priv->event_list);
 
                wake_up_interruptible(&e->base.file_priv->event_w
                ait);
                drm_vblank_put(dev, crtc);
 
+               atomic_set(&exynos_crtc->pending_flip, 0);
+               wake_up(&exynos_crtc->pending_flip_queue);
 
        }
 
        spin_unlock_irqrestore(&dev->event_lock, flags);
 
--

1.7.5.4

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
Quoted 43 lines · Tomasz Figa

Hi Inki,

Quoted 3 lines · On Wednesday 22 of May 2013 15:37:14 Inki Dae wrote:

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 1 line

On Tue, May 21, 2013 at 9:22 PM, Inki Dae <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 1 line

On Tue, May 21, 2013 at 1:08 AM, Inki Dae <[email protected]>

Quoted 31 lines · wrote:
Quoted 31 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

This patch fixes the issue that drm_vblank_get() is failed.

The issus occurs when next page flip request is tried if previous page flip event wasn't completed yet and then dpms became off.

So this patch make sure that page flip event is completed before dpms goes to off.

Quoted 6 lines
Quoted 6 lines

Hi,

This patch is a squash of the two following patches from the Chrome OS

tree with the KDS bits removed and the dpms off bit added:

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.g
it;a=commitdiff;h=2e77cd4e423967862ca01b1af82aa8b5b7429fc4;hp=aba002da 4c6e5efec4d43e1ce33930a79269349a

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.g
it;a=commitdiff;h=b4ec8bfa750ef43a43c2da746c8afdbb51002882;hp=4f28b9a7 5c928f229443d7c6c3163159ceb6903a>

Quoted 4 lines
Quoted 1 line

Please keep proper attribution.

Those patches are just for Chrome OS. Please post them if you want for

those

Quoted 1 line

to be considered so that they can be reviewed.

Hi Stephane,

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

We intend to, once they are rebased onto latest kernel. But what I'm pointing out is that you're removing proper attribution from Chrome OS patches, and this is the second time it has happened.

First, we don't know what's going on Chrome OS. probably you think we refer your codes. but we don't know chrome codes and doesn't refer it. it's our finding from our use case.
Second, samsung has lots of division. some engineers are working with Chrome OS. but ours is not their division.
now we're working on anoter platform and use exynos drm.
As you know "chinese wall". we're doing it properly.

Thank you,
Kyungmin Park

Quoted 193 lines
Quoted 5 lines

What is mean? does mainline kernel have the attribution? if not so, we don't need to consider it. And please know that I can not be aware of you have such patch set without any posting.

at·tri·bu·tion
n.
1. The act of attributing, especially the act of establishing a particular person as the creator of a work of art
[1]

So yes, mainline kernel has attribution. Actually posting something as work of someone that is not the author of the posted work is considered bad everywhere, isn't it?

However looking at those two patches linked by Stéphane, I'm not really sure this patch is really just a squash of them. Stéphane, are you 100% sure that your claims are true?

Best regards,
Tomasz

[1] http://www.thefreedictionary.com/attribution

Quoted 168 lines
Quoted 56 lines
Quoted 3 lines

That is why we attend open
source. One more comment, please do not abuse
exynos_drm_crtc_page_flip()>

What do you mean by abuse?

Quoted 18 lines
Quoted 18 lines

---

 drivers/gpu/drm/exynos/exynos_drm_crtc.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_crtc.c +0 -0
index e8894bc..69a77e9 100644
@@ -48,6 +48,8 @@ struct exynos_drm_crtc {
 
        unsigned int                    pipe;
        unsigned int                    dpms;
        enum exynos_crtc_mode           mode;
 
Quoted 8 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc

Quoted 8 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
+       wait_queue_head_t               pending_flip_queue;
+       atomic_t                        pending_flip;
 

};

static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)

drivers/gpu/drm/exynos/exynos_drm_crtc.c +0 -0
@@ -61,6 +63,13 @@ static void exynos_drm_crtc_dpms(struct drm_crtc

*crtc,

Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +4 -0
 int mode)
 
                return;
 
        }
 
+       if (mode > DRM_MODE_DPMS_ON) {
+               /* wait for the completion of page flip. */
+               wait_event(exynos_crtc->pending_flip_queue,
+

atomic_read(&exynos_crtc->pending_flip)

==

Quoted 8 lines
Quoted 4 lines

0);
+ drm_vblank_off(crtc->dev, exynos_crtc->pipe);

You should be using vblank_put/get.

No, drm_vblank_put should be called by exynos_drm_crtc_finish_pageflip(). And know that this patch makes sure that pended page flip event is>

Quoted 7 lines

completed

Quoted 1 line

before dpms goes to off.

You need to do vblank_put/get while you're waiting. Otherwise you don't know for sure that flips will happen. This is especially bad as you don't use a timeout.

Understood. Right, drm_vblank_get call before wait_event and drm_vblank_put call after wait_event.

Thanks,
Inki Dae

Quoted 98 lines

Stéphane

Quoted 10 lines

Thanks,
Inki Dae

Quoted 7 lines

Stéphane

Quoted 5 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
+       }
+
 
        exynos_drm_fn_encoder(crtc, &mode,
Quoted 7 lines
Quoted 7 lines

Review static int exynos_drm_crtc_page_flip(struct

Quoted 7 lines

exynos_drm_encoder_crtc_dpms);

        exynos_crtc->dpms = mode;

}

(quoted diff) +0 -0
@@ -225,6 +234,7 @@ static int exynos_drm_crtc_page_flip(struct

drm_crtc

Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +3 -0
 *crtc,
 
                spin_lock_irq(&dev->event_lock);
                list_add_tail(&event->base.link,
 
                                &dev_priv->pageflip_event_list);
 
+               atomic_set(&exynos_crtc->pending_flip, 1);
 
                spin_unlock_irq(&dev->event_lock);
 
                crtc->fb = fb;
@@ -344,6 +354,8 @@ int exynos_drm_crtc_create(struct drm_device
 *dev,
 unsigned int nr)
 
        exynos_crtc->pipe = nr;
        exynos_crtc->dpms = DRM_MODE_DPMS_OFF;
 
+       init_waitqueue_head(&exynos_crtc->pending_flip_queue);
+       atomic_set(&exynos_crtc->pending_flip, 0);
        exynos_crtc->plane = exynos_plane_init(dev, 1 << nr,
        true);
        if (!exynos_crtc->plane) {

                kfree(exynos_crtc);
(quoted diff) +0 -0
@@ -398,6 +410,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
 
Quoted 7 lines
Quoted 7 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc)

Quoted 7 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
 {
 
        struct exynos_drm_private *dev_priv = dev->dev_private;
        struct drm_pending_vblank_event *e, *t;
 
+       struct drm_crtc *drm_crtc = dev_priv->crtc[crtc];
+       struct exynos_drm_crtc *exynos_crtc =

to_exynos_crtc(drm_crtc);

Quoted 33 lines
Quoted 33 lines
Quoted 24 lines
        struct timeval now;
        unsigned long flags;
(quoted diff) +2 -1
@@ -419,6 +433,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
 
                list_move_tail(&e->base.link,
 
 &e->base.file_priv->event_list);
 
                wake_up_interruptible(&e->base.file_priv->event_w
                ait);
                drm_vblank_put(dev, crtc);
 
+               atomic_set(&exynos_crtc->pending_flip, 0);
+               wake_up(&exynos_crtc->pending_flip_queue);
 
        }
 
        spin_unlock_irqrestore(&dev->event_lock, flags);
 
--

1.7.5.4

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Quoted 9 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author maintainer
#8 lore raw

2013/5/22 Kyungmin Park <[email protected]>

Quoted 56 lines · Tomasz Figa
Quoted 28 lines

Hi Inki,

Quoted 3 lines · On Wednesday 22 of May 2013 15:37:14 Inki Dae wrote:

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 1 line

On Tue, May 21, 2013 at 9:22 PM, Inki Dae <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 1 line

On Tue, May 21, 2013 at 1:08 AM, Inki Dae <[email protected]>

Quoted 9 lines · wrote:
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

This patch fixes the issue that drm_vblank_get() is failed.

The issus occurs when next page flip request is tried if previous page flip event wasn't completed yet and then dpms became off.

So this patch make sure that page flip event is completed before dpms goes to off.

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines

Hi,

This patch is a squash of the two following patches from the Chrome OS

tree with the KDS bits removed and the dpms off bit added:

Quoted 18 lines

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.g

Quoted 5 lines
Quoted 5 lines

it;a=commitdiff;h=2e77cd4e423967862ca01b1af82aa8b5b7429fc4;hp=aba002da 4c6e5efec4d43e1ce33930a79269349a

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.g

Quoted 10 lines
Quoted 10 lines

it;a=commitdiff;h=b4ec8bfa750ef43a43c2da746c8afdbb51002882;hp=4f28b9a7 5c928f229443d7c6c3163159ceb6903a>

Quoted 4 lines
Quoted 1 line

Please keep proper attribution.

Those patches are just for Chrome OS. Please post them if you want for

those

Quoted 1 line

to be considered so that they can be reviewed.

Hi Stephane,

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

We intend to, once they are rebased onto latest kernel. But what I'm pointing out is that you're removing proper attribution from Chrome OS patches, and this is the second time it has happened.

Quoted 8 lines

First, we don't know what's going on Chrome OS. probably you think we refer your codes. but we don't know chrome codes and doesn't refer it. it's our finding from our use case.
Second, samsung has lots of division. some engineers are working with Chrome OS. but ours is not their division.
now we're working on anoter platform and use exynos drm.
As you know "chinese wall". we're doing it properly.

Actually, we referred to i915 codes, intel_display.c :)

Quoted 208 lines

Thank you,
Kyungmin Park

Quoted 193 lines
Quoted 5 lines

What is mean? does mainline kernel have the attribution? if not so, we don't need to consider it. And please know that I can not be aware of you have such patch set without any posting.

at·tri·bu·tion
n.
1. The act of attributing, especially the act of establishing a particular person as the creator of a work of art
[1]

So yes, mainline kernel has attribution. Actually posting something as work of someone that is not the author of the posted work is considered bad everywhere, isn't it?

However looking at those two patches linked by Stéphane, I'm not really sure this patch is really just a squash of them. Stéphane, are you 100% sure that your claims are true?

Best regards,
Tomasz

[1] http://www.thefreedictionary.com/attribution

Quoted 168 lines
Quoted 56 lines
Quoted 3 lines

That is why we attend open
source. One more comment, please do not abuse
exynos_drm_crtc_page_flip()>

What do you mean by abuse?

Quoted 18 lines
Quoted 18 lines

---

 drivers/gpu/drm/exynos/exynos_drm_crtc.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_crtc.c +0 -0
index e8894bc..69a77e9 100644
@@ -48,6 +48,8 @@ struct exynos_drm_crtc {
 
        unsigned int                    pipe;
        unsigned int                    dpms;
        enum exynos_crtc_mode           mode;
 
Quoted 8 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc

Quoted 8 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
+       wait_queue_head_t               pending_flip_queue;
+       atomic_t                        pending_flip;
 

};

static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)

drivers/gpu/drm/exynos/exynos_drm_crtc.c +0 -0
@@ -61,6 +63,13 @@ static void exynos_drm_crtc_dpms(struct drm_crtc

*crtc,

Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +4 -0
 int mode)
 
                return;
 
        }
 
+       if (mode > DRM_MODE_DPMS_ON) {
+               /* wait for the completion of page flip. */
+               wait_event(exynos_crtc->pending_flip_queue,
+

atomic_read(&exynos_crtc->pending_flip)

==

Quoted 8 lines
Quoted 4 lines

0);
+ drm_vblank_off(crtc->dev, exynos_crtc->pipe);

You should be using vblank_put/get.

No, drm_vblank_put should be called by exynos_drm_crtc_finish_pageflip(). And know that this patch makes sure that pended page flip event is>

Quoted 7 lines

completed

Quoted 1 line

before dpms goes to off.

You need to do vblank_put/get while you're waiting. Otherwise you don't know for sure that flips will happen. This is especially bad as you don't use a timeout.

Understood. Right, drm_vblank_get call before wait_event and drm_vblank_put call after wait_event.

Thanks,
Inki Dae

Quoted 98 lines

Stéphane

Quoted 10 lines

Thanks,
Inki Dae

Quoted 7 lines

Stéphane

Quoted 5 lines
(quoted diff) +2 -0
+       }
+
 
        exynos_drm_fn_encoder(crtc, &mode,
Quoted 7 lines
Quoted 7 lines

Review static int exynos_drm_crtc_page_flip(struct

Quoted 7 lines

exynos_drm_encoder_crtc_dpms);

        exynos_crtc->dpms = mode;

}

(quoted diff) +0 -0
@@ -225,6 +234,7 @@ static int exynos_drm_crtc_page_flip(struct

drm_crtc

Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
(quoted diff) +3 -0
 *crtc,
 
                spin_lock_irq(&dev->event_lock);
                list_add_tail(&event->base.link,
 
                                &dev_priv->pageflip_event_list);
 
+               atomic_set(&exynos_crtc->pending_flip, 1);
 
                spin_unlock_irq(&dev->event_lock);
 
                crtc->fb = fb;
@@ -344,6 +354,8 @@ int exynos_drm_crtc_create(struct drm_device
 *dev,
 unsigned int nr)
 
        exynos_crtc->pipe = nr;
        exynos_crtc->dpms = DRM_MODE_DPMS_OFF;
 
+       init_waitqueue_head(&exynos_crtc->pending_flip_queue);
+       atomic_set(&exynos_crtc->pending_flip, 0);
        exynos_crtc->plane = exynos_plane_init(dev, 1 << nr,
        true);
        if (!exynos_crtc->plane) {

                kfree(exynos_crtc);
(quoted diff) +0 -0
@@ -398,6 +410,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
 
Quoted 7 lines
Quoted 7 lines

Review void exynos_drm_crtc_finish_pageflip(struct

Quoted 7 lines
(quoted diff) +2 -0
 {
 
        struct exynos_drm_private *dev_priv = dev->dev_private;
        struct drm_pending_vblank_event *e, *t;
 
+       struct drm_crtc *drm_crtc = dev_priv->crtc[crtc];
+       struct exynos_drm_crtc *exynos_crtc =

to_exynos_crtc(drm_crtc);

Quoted 33 lines
Quoted 33 lines
Quoted 24 lines
        struct timeval now;
        unsigned long flags;
(quoted diff) +2 -1
@@ -419,6 +433,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
 
                list_move_tail(&e->base.link,
 
 &e->base.file_priv->event_list);
 
                wake_up_interruptible(&e->base.file_priv->event_w
                ait);
                drm_vblank_put(dev, crtc);
 
+               atomic_set(&exynos_crtc->pending_flip, 0);
+               wake_up(&exynos_crtc->pending_flip_queue);
 
        }
 
        spin_unlock_irqrestore(&dev->event_lock, flags);
 
--

1.7.5.4

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Quoted 9 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Quoted 6 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author maintainer
#9 lore raw
In reply to Tomasz Figa

2013/5/22 Tomasz Figa <[email protected]>

Quoted 58 lines

Hi Inki,

Quoted 3 lines · On Wednesday 22 of May 2013 15:37:14 Inki Dae wrote:

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 1 line

On Tue, May 21, 2013 at 9:22 PM, Inki Dae <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines

2013/5/22 Stéphane Marchesin <[email protected]>

Quoted 1 line

On Tue, May 21, 2013 at 1:08 AM, Inki Dae <[email protected]>

Quoted 32 lines · wrote:
Quoted 32 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

This patch fixes the issue that drm_vblank_get() is failed.

The issus occurs when next page flip request is tried if previous page flip event wasn't completed yet and then dpms became off.

So this patch make sure that page flip event is completed before dpms goes to off.

Quoted 6 lines
Quoted 6 lines

Hi,

This patch is a squash of the two following patches from the Chrome OS

tree with the KDS bits removed and the dpms off bit added:

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.g
it;a=commitdiff;h=2e77cd4e423967862ca01b1af82aa8b5b7429fc4;hp=aba002da 4c6e5efec4d43e1ce33930a79269349a

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-next.g
it;a=commitdiff;h=b4ec8bfa750ef43a43c2da746c8afdbb51002882;hp=4f28b9a7 5c928f229443d7c6c3163159ceb6903a>

Quoted 4 lines
Quoted 1 line

Please keep proper attribution.

Those patches are just for Chrome OS. Please post them if you want for

those

Quoted 1 line

to be considered so that they can be reviewed.

Quoted 8 lines
Quoted 3 lines

We intend to, once they are rebased onto latest kernel. But what I'm pointing out is that you're removing proper attribution from Chrome OS patches, and this is the second time it has happened.

What is mean? does mainline kernel have the attribution? if not so, we don't need to consider it. And please know that I can not be aware of you have such patch set without any posting.

at·tri·bu·tion
n.
1. The act of attributing, especially the act of establishing a particular person as the creator of a work of art
[1]

Quoted 5 lines

So yes, mainline kernel has attribution. Actually posting something as work of someone that is not the author of the posted work is considered bad everywhere, isn't it?

Hahaha, understood. there was my misunderstanding. :)

Quoted 5 lines

However looking at those two patches linked by Stéphane, I'm not really sure this patch is really just a squash of them. Stéphane, are you 100% sure that your claims are true?

And Stéphane, when was the first time it had happened? I haven't the slightest intention to do so. If happened, there might be my missing something.

Thanks,
Inki Dae

Quoted 173 lines

Best regards,
Tomasz

[1] http://www.thefreedictionary.com/attribution

Quoted 168 lines
Quoted 56 lines
Quoted 3 lines

That is why we attend open
source. One more comment, please do not abuse
exynos_drm_crtc_page_flip()>

What do you mean by abuse?

Quoted 18 lines
Quoted 18 lines

---

 drivers/gpu/drm/exynos/exynos_drm_crtc.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_crtc.c +0 -0
index e8894bc..69a77e9 100644
@@ -48,6 +48,8 @@ struct exynos_drm_crtc {
 
        unsigned int                    pipe;
        unsigned int                    dpms;
        enum exynos_crtc_mode           mode;
 
Quoted 8 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c static void exynos_drm_crtc_dpms(struct drm_crtc

Quoted 8 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
+       wait_queue_head_t               pending_flip_queue;
+       atomic_t                        pending_flip;
 

};

static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)

drivers/gpu/drm/exynos/exynos_drm_crtc.c +0 -0
@@ -61,6 +63,13 @@ static void exynos_drm_crtc_dpms(struct drm_crtc

*crtc,

Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +4 -0
 int mode)
 
                return;
 
        }
 
+       if (mode > DRM_MODE_DPMS_ON) {
+               /* wait for the completion of page flip. */
+               wait_event(exynos_crtc->pending_flip_queue,
+

atomic_read(&exynos_crtc->pending_flip)

==

Quoted 8 lines
Quoted 4 lines

0);
+ drm_vblank_off(crtc->dev, exynos_crtc->pipe);

You should be using vblank_put/get.

No, drm_vblank_put should be called by exynos_drm_crtc_finish_pageflip(). And know that this patch makes sure that pended page flip event is>

Quoted 7 lines

completed

Quoted 1 line

before dpms goes to off.

You need to do vblank_put/get while you're waiting. Otherwise you don't know for sure that flips will happen. This is especially bad as you don't use a timeout.

Understood. Right, drm_vblank_get call before wait_event and drm_vblank_put call after wait_event.

Thanks,
Inki Dae

Quoted 98 lines

Stéphane

Quoted 10 lines

Thanks,
Inki Dae

Quoted 7 lines

Stéphane

Quoted 5 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
+       }
+
 
        exynos_drm_fn_encoder(crtc, &mode,
Quoted 7 lines
Quoted 7 lines

Review static int exynos_drm_crtc_page_flip(struct

Quoted 7 lines

exynos_drm_encoder_crtc_dpms);

        exynos_crtc->dpms = mode;

}

(quoted diff) +0 -0
@@ -225,6 +234,7 @@ static int exynos_drm_crtc_page_flip(struct

drm_crtc

Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +3 -0
 *crtc,
 
                spin_lock_irq(&dev->event_lock);
                list_add_tail(&event->base.link,
 
                                &dev_priv->pageflip_event_list);
 
+               atomic_set(&exynos_crtc->pending_flip, 1);
 
                spin_unlock_irq(&dev->event_lock);
 
                crtc->fb = fb;
@@ -344,6 +354,8 @@ int exynos_drm_crtc_create(struct drm_device
 *dev,
 unsigned int nr)
 
        exynos_crtc->pipe = nr;
        exynos_crtc->dpms = DRM_MODE_DPMS_OFF;
 
+       init_waitqueue_head(&exynos_crtc->pending_flip_queue);
+       atomic_set(&exynos_crtc->pending_flip, 0);
        exynos_crtc->plane = exynos_plane_init(dev, 1 << nr,
        true);
        if (!exynos_crtc->plane) {

                kfree(exynos_crtc);
(quoted diff) +0 -0
@@ -398,6 +410,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
 
Quoted 7 lines
Quoted 7 lines

drivers/gpu/drm/exynos/exynos_drm_crtc.c void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc)

Quoted 7 lines
drivers/gpu/drm/exynos/exynos_drm_crtc.c +2 -0
 {
 
        struct exynos_drm_private *dev_priv = dev->dev_private;
        struct drm_pending_vblank_event *e, *t;
 
+       struct drm_crtc *drm_crtc = dev_priv->crtc[crtc];
+       struct exynos_drm_crtc *exynos_crtc =

to_exynos_crtc(drm_crtc);

Quoted 33 lines
Quoted 33 lines
Quoted 24 lines
        struct timeval now;
        unsigned long flags;
(quoted diff) +2 -1
@@ -419,6 +433,8 @@ void exynos_drm_crtc_finish_pageflip(struct
 drm_device *dev, int crtc)
 
                list_move_tail(&e->base.link,
 
 &e->base.file_priv->event_list);
 
                wake_up_interruptible(&e->base.file_priv->event_w
                ait);
                drm_vblank_put(dev, crtc);
 
+               atomic_set(&exynos_crtc->pending_flip, 0);
+               wake_up(&exynos_crtc->pending_flip_queue);
 
        }
 
        spin_unlock_irqrestore(&dev->event_lock, flags);
 
--

1.7.5.4

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Quoted 9 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel