]> 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)
commitdd7432a762eb2245353ba4de71e3fab0f6f8eae7
treeb269080b41e6f021501e3ded7bc2bfce0694c2f5
parent13e7fd5de3b9265e4b69d03833466a499e1d4fde
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