]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic-helpers: Properly avoid full modeset dance
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 26 Mar 2015 21:18:40 +0000 (22:18 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 27 Mar 2015 13:45:31 +0000 (14:45 +0100)
commit1636e10e6598c75a745e9f9470ef233c83cb1f0b
tree0f463cb777b0e4f7c50a5897376a8322ddd4dfc6
parent3d52676e054d0a42bde85d6923a45dd382cd7e8b
drm/atomic-helpers: Properly avoid full modeset dance

Legacy setCrtc has a nice fastpath for just updating the frontbuffer
when the output routing doesn't change. Which I of course tried to
keep working, except that I fumbled the job: The helpers correctly
compute ->mode_changed, CRTC updates get correctly skipped but
connector functions are called unconditionally.

Fix this.

v2: For the disable sided connector->state->crtc might be NULL.
Instead look at the old_connector_state->crtc, but still use the new
crtc state for that old crtc. Reported by Thierry.

Reported-and-Tested-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> (v1)
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Gustavo Padovan <gustavo.padovan@collabora.co.uk> (v1)
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_atomic_helper.c