]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit88995c6e9e71e27d71f3509a3a27eb43622c1a71
tree467d514939820179dd95bfb30d953d4c058012a8
parentcb8830f31218ed66467f81afed539787082c1661
drm/meson: Fix atomic mode switching regression

Since commit f72324223148 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: f72324223148 ("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