]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Prevent freesync power optimization during validation
authorIsabel Zhang <isabel.zhang@amd.com>
Fri, 23 Oct 2020 15:55:32 +0000 (11:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2020 19:24:48 +0000 (14:24 -0500)
commit4247b2f54097594dfcc4704e1ca331209b4f85f6
treeb269080b41e6f021501e3ded7bc2bfce0694c2f5
parent7d4510a68f111be093274a7b7db75f685a03b925
drm/amd/display: Prevent freesync power optimization during validation

[Why]
Due to the freesync power optimization increasing vtotal, the driver
believes that MPO is supported. MPO is turned on. Freesync then
exits, MPO can no longer be supported and immediate flip fails. This
causes corruption on the panel.

[How]
Avoid the freesync optimization when doing validation so in the case
freesync exits, driver can still support the configuration.

Signed-off-by: Isabel Zhang <isabel.zhang@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.h
drivers/gpu/drm/amd/display/dc/inc/core_types.h