Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Update scaling settings on modeset

[Why]
We update scaling settings when scaling mode has been changed.
However when changing mode from native resolution the scaling mode previously
set gets ignored.

[How]
Perform scaling settings update on modeset.

Signed-off-by: Roman Li <roman.li@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Roman Li and committed by
Alex Deucher
c521fc31 1be2a902

+2 -1
+2 -1
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
··· 9678 9678 BUG_ON(dm_new_crtc_state->stream == NULL); 9679 9679 9680 9680 /* Scaling or underscan settings */ 9681 - if (is_scaling_state_different(dm_old_conn_state, dm_new_conn_state)) 9681 + if (is_scaling_state_different(dm_old_conn_state, dm_new_conn_state) || 9682 + drm_atomic_crtc_needs_modeset(new_crtc_state)) 9682 9683 update_stream_scaling_settings( 9683 9684 &new_crtc_state->mode, dm_new_conn_state, dm_new_crtc_state->stream); 9684 9685