drm: hdlcd: Fix the picture tear when flipping framebuffers.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Fri, 18 Jul 2014 16:31:38 +0000 (17:31 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Fri, 18 Jul 2014 16:31:38 +0000 (17:31 +0100)
commitee48569a271f5dc614796744b85a4e21162894ba
tree0502d6dfd0b133a41b125d8b22520856ef10cabb
parent8b1483316ab6eedc5c1d27be2022f6d3ff8b6cdf
drm: hdlcd: Fix the picture tear when flipping framebuffers.

HDLCD contains logic in hardware to wait for VSYNC before updating
the start of framebuffer register, so we don't need to do it in
software. More than that, to remove any tearing we need to wait
for VSYNC after setting up a new framebuffer as releasing the old
fb while the hardware is still using it can cause artifacts.

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/arm/hdlcd_crtc.c
drivers/gpu/drm/arm/hdlcd_drv.c
drivers/gpu/drm/arm/hdlcd_drv.h
drivers/gpu/drm/arm/hdlcd_fb.c