]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Move drm_dp_mst_atomic_check() to the front of dc_validate_global_st...
authorZhan Liu <zhan.liu@amd.com>
Tue, 28 Jan 2020 21:38:53 +0000 (16:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jan 2020 22:15:43 +0000 (17:15 -0500)
commit6bce6c69a5364f25b4932dfba1e69b2a8c352565
treee860863f1d5594064a010d706f126a37f11c5180
parentc5a5b5837d966b7aa3af3a0321a389e6ad27933c
drm/amd/display: Move drm_dp_mst_atomic_check() to the front of dc_validate_global_state()

[Why]
Need to do atomic check first, then validate global state.
If not, when connecting both MST and HDMI displays and
set a bad mode via xrandr, system will hang.

[How]
Move drm_dp_mst_atomic_check() to the front of
dc_validate_global_state().

Signed-off-by: Zhan Liu <zhan.liu@amd.com>
Reviewed-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c