drm/amd/display: reallocate DET for dual displays with high pixel rate ratio
authorSamson Tam <Samson.Tam@amd.com>
Tue, 28 Feb 2023 19:33:00 +0000 (14:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Mar 2023 22:45:26 +0000 (18:45 -0400)
commit5f3401eeb064fab5ce50728cce46532cce7a85c5
treefb7e30e0230231a057a94e7d7f94dd1f26e04c39
parent562e08223a85f315122cd65e8f99b8c0a42b8771
drm/amd/display: reallocate DET for dual displays with high pixel rate ratio

[Why]
For dual displays where pixel rate is much higher on one display,
we may get underflow when DET is evenly allocated.

[How]
Allocate less DET segments for the lower pixel rate display and
more DET segments for the higher pixel rate display

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Samson Tam <Samson.Tam@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/dcn32/dcn32_resource_helpers.c