drm/meson: Fix atomic mode switching regression
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 14 Jan 2019 15:31:18 +0000 (16:31 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 15 Jan 2019 12:21:32 +0000 (13:21 +0100)
commitce0210c12433031aba3bbacd75f4c02ab77f2004
tree467d514939820179dd95bfb30d953d4c058012a8
parentf672b93e4a0a4947d2e1103ed8780e01e13eadb6
drm/meson: Fix atomic mode switching regression

Since commit 2bcd3ecab773 when switching mode from X11 (ubuntu mate for
example) the display gets blurry, looking like an invalid framebuffer width.

This commit fixed atomic crtc modesetting in a totally wrong way and
introduced a local unnecessary ->enabled crtc state.

This commit reverts the crctc _begin() and _enable() changes and simply
adds drm_atomic_helper_commit_tail_rpm as helper.

Reported-by: Tony McKahan <tonymckahan@gmail.com>
Suggested-by: Daniel Vetter <daniel@ffwll.ch>
Fixes: 2bcd3ecab773 ("drm/meson: Fixes for drm_crtc_vblank_on/off support")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[narmstrong: fixed blank line issue from checkpatch]
Link: https://patchwork.freedesktop.org/patch/msgid/20190114153118.8024-1-narmstrong@baylibre.com
drivers/gpu/drm/meson/meson_crtc.c
drivers/gpu/drm/meson/meson_drv.c