[PATCH 5/5] drm/atomic: Add encoder_mask to crtc_state, v2.

2016-01-28 Thread Maarten Lankhorst
A diff to make this v3. Found when running this through IGT bat. - Keeping an encoder but moving it to a different crtc resulted, in encoder_mask not being updated. - Add some paranoia when best_encoder was already updated to a different encoder in steal_encoder. This could happen in theory.

[PATCH 5/5] drm/atomic: Add encoder_mask to crtc_state, v2.

2016-01-07 Thread Maarten Lankhorst
This allows iteration over encoders using drm_for_each_encoder_mask without inspecting all connector_states, which requires connection_mutex. Changes since v1: - Add a set_best_encoder helper function and update encoder_mask inside it. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_at