Skip to content

Commit ea7971a

Browse files
effective-lightalexdeucher
authored andcommitted
drm/amd/display: fix mode scaling (RMX_.*)
As made mention of in commit 4a2df0d ("drm/amd/display: Fixed non-native modes not lighting up"), we shouldn't call drm_mode_set_crtcinfo() once the crtc timings have been decided. Since, it can cause settings to be unintentionally overwritten. So, since dm_state is never NULL now, we can use old_stream to determine if we should call drm_mode_set_crtcinfo() because we only need to set the crtc timing parameters for entirely new streams. Cc: Harry Wentland <[email protected]> Cc: Rodrigo Siqueira <[email protected]> Fixes: bd49f19 ("drm/amd/display: Always set crtcinfo from create_stream_for_sink") Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e1c0d2e commit ea7971a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6026,7 +6026,7 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector,
60266026

60276027
if (recalculate_timing)
60286028
drm_mode_set_crtcinfo(&saved_mode, 0);
6029-
else
6029+
else if (!old_stream)
60306030
drm_mode_set_crtcinfo(&mode, 0);
60316031

60326032
/*

0 commit comments

Comments
 (0)