]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Handle encoder stealing from set_config better.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 3 Mar 2016 09:17:39 +0000 (10:17 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Mar 2016 10:04:34 +0000 (11:04 +0100)
commit85ceaf4da5ce1a52d44a3b51aee0a5c6b429eced
treeb262d6688cfda2df82d8509cb2648aedd764f596
parent05501242a6d61195c3cc57671fa3f7e4aa9fdb40
drm/atomic: Handle encoder stealing from set_config better.

Instead of failing with -EINVAL when conflicting encoders are found,
the legacy set_config will disable other connectors when encoders
conflict.

With the previous commit this becomes a lot easier to implement.
set_config only adds connectors to the state that are modified,
and because of the previous commit that calls add_affected_connectors
only on set->crtc it means any connector not part of the modeset can
be stolen from. We disable the connector in that case, and possibly
the crtc if required.

Atomic modeset itself still doesn't allow encoder stealing, the results
would be too unpredictable.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1456996662-8704-5-git-send-email-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_crtc.h