linux/drivers/gpu/drm/imx
Robert Beckett 78c68e8f5c drm/imx: notify drm core before sending event during crtc disable
Notify drm core before sending pending events during crtc disable.
This fixes the first event after disable having an old stale timestamp
by having drm_crtc_vblank_off update the timestamp to now.

This was seen while debugging weston log message:
Warning: computed repaint delay is insane: -8212 msec

This occurred due to:
1. driver starts up
2. fbcon comes along and restores fbdev, enabling vblank
3. vblank_disable_fn fires via timer disabling vblank, keeping vblank
seq number and time set at current value
(some time later)
4. weston starts and does a modeset
5. atomic commit disables crtc while it does the modeset
6. ipu_crtc_atomic_disable sends vblank with old seq number and time

Fixes: a474478642 ("drm/imx: fix crtc vblank state regression")

Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2019-07-04 12:21:25 +02:00
..
dw_hdmi-imx.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
imx-drm-core.c Merge drm/drm-next into drm-misc-next 2019-03-06 09:22:18 -05:00
imx-drm.h drm/imx: Remove last traces of struct imx_drm_crtc 2018-07-16 16:56:35 +02:00
imx-ldb.c Linux 5.0-rc7 2019-02-18 13:27:15 +10:00
imx-tve.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
ipuv3-crtc.c drm/imx: notify drm core before sending event during crtc disable 2019-07-04 12:21:25 +02:00
ipuv3-plane.c drm/imx: ipuv3-plane: fix atomic update status query for non-plus i.MX6Q 2019-05-27 15:13:57 +02:00
ipuv3-plane.h drm/imx: ipuv3-plane: fix atomic update status query for non-plus i.MX6Q 2019-05-27 15:13:57 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
parallel-display.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00