From: Jerry (Fangzhi) Zuo Date: Wed, 17 Jan 2018 18:24:28 +0000 (-0500) Subject: drm/amd/display: Fixed non-native modes not lighting up X-Git-Tag: Ubuntu-5.2.0-15.16~4753^2~22^2~105 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f783577c85c00da6a8b226a89a83789d2f105c63;p=mirror_ubuntu-eoan-kernel.git drm/amd/display: Fixed non-native modes not lighting up There is no need to call drm_mode_set_crtcinfo() again once crtc timing is decided. Otherwise non-native/unsupported timing might get overwritten. Signed-off-by: Jerry (Fangzhi) Zuo Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 5928d9f0e4ef..e27f4e65dcf0 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -2439,7 +2439,9 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector, dm_state ? (dm_state->scaling != RMX_OFF) : false); } - drm_mode_set_crtcinfo(&mode, 0); + if (!dm_state) + drm_mode_set_crtcinfo(&mode, 0); + fill_stream_properties_from_drm_display_mode(stream, &mode, &aconnector->base); update_stream_scaling_settings(&mode, dm_state, stream);