]> 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)
commit36619b4c37a2ebfde4b2b41f8c91d716be8a7af0
tree467d514939820179dd95bfb30d953d4c058012a8
parent7997fb2ab13399e1f885b29e20dea6821e8b3a7b
drm/meson: Fix atomic mode switching regression

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