drm/amd/display: Fixed non-native modes not lighting up
authorJerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Wed, 17 Jan 2018 18:24:28 +0000 (13:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:23 +0000 (14:19 -0500)
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 <Jerry.Zuo@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 5928d9f0e4ef9556ec3143439eaa6ce76026e591..e27f4e65dcf00e93e3adff884f8aaf13171c536b 100644 (file)
@@ -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);