]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: For ODM seamless transition require AUTO mode
authorAlvin Lee <Alvin.Lee2@amd.com>
Thu, 1 Sep 2022 22:40:32 +0000 (18:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Sep 2022 19:12:23 +0000 (15:12 -0400)
commitf2d9e1590f1e1a4c2ba8e3b56301d2d47680d505
treec7c8dec17ed7f13c3160cd847091b242ae1aa771
parentb08e68ff1a5b524102d6faafc4f0cb22a075810b
drm/amd/display: For ODM seamless transition require AUTO mode

[Why & How]
ODM seamless transitions require DIV_MODE_AUTO. However,
DIV_MODE_AUTO only works when all the horizontal timing params
are divisible by the ODM combine factor. Therefore, disable the
ODM 2:1 policy when the horizontal timing params are not divisible
by 2.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c
drivers/gpu/drm/amd/display/dc/inc/resource.h