drm/amd/display: Update scaling settings on modeset
authorRoman Li <roman.li@amd.com>
Fri, 21 May 2021 14:20:25 +0000 (10:20 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:44:48 +0000 (09:44 +0200)
commit01d6a693196595d356f0f5e42ab155c293470676
treefa3172dda105374625e0846ef60ced082e7c981e
parent57c63b47d6f188b44d93d1602bd24d8d9a9131f6
drm/amd/display: Update scaling settings on modeset

[ Upstream commit c521fc316d12fb9ea7b7680e301d673bceda922e ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c