* [PATCH] drm/hisilicon: Fix ADE vblank on/off handling
@ 2016-06-30 9:23 Xinliang Liu
2016-07-12 12:17 ` Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: Xinliang Liu @ 2016-06-30 9:23 UTC (permalink / raw)
To: dri-devel; +Cc: guodong.xu
Vblank turn on should be called in crtc's enable callback.
And turn off called in crtc's disable callback.
Thanks to Daniel Vetter, this bug is reported by him.
Reported-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
---
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
index ed76baad525f..805f4326fafe 100644
--- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
+++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
@@ -487,6 +487,7 @@ static void ade_crtc_enable(struct drm_crtc *crtc)
ade_set_medianoc_qos(acrtc);
ade_display_enable(acrtc);
ade_dump_regs(ctx->base);
+ drm_crtc_vblank_on(crtc);
acrtc->enable = true;
}
@@ -498,6 +499,7 @@ static void ade_crtc_disable(struct drm_crtc *crtc)
if (!acrtc->enable)
return;
+ drm_crtc_vblank_off(crtc);
ade_power_down(ctx);
acrtc->enable = false;
}
--
2.8.3
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/hisilicon: Fix ADE vblank on/off handling
2016-06-30 9:23 [PATCH] drm/hisilicon: Fix ADE vblank on/off handling Xinliang Liu
@ 2016-07-12 12:17 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2016-07-12 12:17 UTC (permalink / raw)
To: Xinliang Liu; +Cc: guodong.xu, dri-devel
On Thu, Jun 30, 2016 at 05:23:00PM +0800, Xinliang Liu wrote:
> Vblank turn on should be called in crtc's enable callback.
> And turn off called in crtc's disable callback.
>
> Thanks to Daniel Vetter, this bug is reported by him.
>
> Reported-by: Daniel Vetter <daniel.vetter@intel.com>
> Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
Applied to drm-misc.
-Daniel
> ---
> drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
> index ed76baad525f..805f4326fafe 100644
> --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
> +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
> @@ -487,6 +487,7 @@ static void ade_crtc_enable(struct drm_crtc *crtc)
> ade_set_medianoc_qos(acrtc);
> ade_display_enable(acrtc);
> ade_dump_regs(ctx->base);
> + drm_crtc_vblank_on(crtc);
> acrtc->enable = true;
> }
>
> @@ -498,6 +499,7 @@ static void ade_crtc_disable(struct drm_crtc *crtc)
> if (!acrtc->enable)
> return;
>
> + drm_crtc_vblank_off(crtc);
> ade_power_down(ctx);
> acrtc->enable = false;
> }
> --
> 2.8.3
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-12 12:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-30 9:23 [PATCH] drm/hisilicon: Fix ADE vblank on/off handling Xinliang Liu
2016-07-12 12:17 ` Daniel Vetter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.