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)
commit6349c73859cba2fabd77494230306ae8a7e45b33
treec7c8dec17ed7f13c3160cd847091b242ae1aa771
parentcc67aae1e3a330e18ead512b525b8721a3b05a6c
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