MLK-18767: drm: imx: dcss: fix vblank timed out warning
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Wed, 4 Jul 2018 13:37:08 +0000 (16:37 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit55de74cb3b56abd3c3975de7233da05292b3e3b0
tree82abbb0b8e08eacaba4f1e82fa20c6b798ebb9ab
parentcc9523156b026e4d4057f5f34ccdd5970df0ccca
MLK-18767: drm: imx: dcss: fix vblank timed out warning

The following commit:

f9a03b3 - MLK-17925: drm: imx: dcss: fix tearing

introduced a regression because we does not send VBLANK event if context
loader was not flushed. But this condition is always met immediately
after enabling the CRTC. Hence, when 30FPS modes are selected, it is
possible to exceed the 50ms vblank timeout if the first event is not
sent. That's because 2 x 0.33ms > 50ms. This does not happen for 60fps
modes though.

This patch will force sending the first vblank event even if the context
loader is not completely flushed.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/dcss/dcss-crtc.c