Call encoder mode_set() when connectors are changed. This avoids issues for cases where the connectors are changed but CRTC mode is not. --- Changes in v3: - BUILD_BUG_ON() for encoders and connectors array size check (Dmitry) - Added more descriptive, file-specific names for helper functions (Dmitry) - Added comment to test documenting what the test does (Dmitry) - Return drm_connector_helper_get_modes_fixed() directly for encoder get_modes() instead of returning 1 (Dmitry) - Move local variable declarations to top of function (Dmitry) - Link to v2: https://lore.kernel.org/r/20241209-abhinavk-modeset-fix-v2-0-4d008f6ea8d0@xxxxxxxxxxx Changes in v2: - Added kunit test --- Abhinav Kumar (1): drm: allow encoder mode_set even when connectors change for crtc Jessica Zhang (1): drm/tests: Add test for drm_atomic_helper_commit_modeset_disables() drivers/gpu/drm/drm_atomic_helper.c | 2 +- drivers/gpu/drm/tests/Makefile | 1 + drivers/gpu/drm/tests/drm_atomic_state_test.c | 244 ++++++++++++++++++++++++++ 3 files changed, 246 insertions(+), 1 deletion(-) --- base-commit: 86313a9cd152330c634b25d826a281c6a002eb77 change-id: 20241209-abhinavk-modeset-fix-74864f1de08d Best regards, -- Jessica Zhang <quic_jesszhan@xxxxxxxxxxx>