projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da82ee9
)
drm/hisilicon: Fix ADE vblank on/off handling
author
Xinliang Liu
<
[email protected]
>
Thu, 30 Jun 2016 09:23:00 +0000
(17:23 +0800)
committer
Daniel Vetter
<
[email protected]
>
Tue, 12 Jul 2016 12:17:03 +0000
(14:17 +0200)
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 <
[email protected]
>
Signed-off-by: Xinliang Liu <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
index ed76baad525fa5de193c97698341fa01e748c6ec..805f4326fafef17db18f68d5f1a44aad94182f43 100644
(file)
--- 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;
}