]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Update stream adjust in dc_stream_adjust_vmin_vmax
authorIsabel Zhang <isabel.zhang@amd.com>
Sun, 5 Apr 2020 20:41:01 +0000 (16:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:00 +0000 (16:33 +0200)
commitb9f0a9a8b522fc4562c32cef38c7c528c8dddddc
tree6123b654c16a8a5531b59e94ca0e57a6cf0522e0
parentc9ae61b5705ca7542ddc322bf2d739c6052f9291
drm/amd/display: Update stream adjust in dc_stream_adjust_vmin_vmax

[ Upstream commit 5efaa7243f30f123bcc45ddc9308e5edbdd1fea8 ]

[Why]
After v_total_min and max are updated in vrr structure, the changes are
not reflected in stream adjust. When these values are read from stream
adjust it does not reflect the actual state of the system.

[How]
Set stream adjust values equal to vrr adjust values after vrr adjust
values are updated.

Signed-off-by: Isabel Zhang <isabel.zhang@amd.com>
Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/core/dc.c