]> www.infradead.org Git - users/hch/misc.git/commit
drm/amd/display: calculate the remain segments for all pipes
authorZhikai Zhai <zhikai.zhai@amd.com>
Thu, 27 Feb 2025 12:09:14 +0000 (20:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Mar 2025 17:30:31 +0000 (13:30 -0400)
commitd3069feecdb5542604d29b59acfd1fd213bad95b
treee57cab4faab3224c959f5ff488f2a0de11487845
parentdd60bfd5349a7a4c9e1a8b14c935593342c6c6a2
drm/amd/display: calculate the remain segments for all pipes

[WHY]
In some cases the remain de-tile buffer segments will be greater
than zero if we don't add the non-top pipe to calculate, at
this time the override de-tile buffer size will be valid and used.
But it makes the de-tile buffer segments used finally for all of pipes
exceed the maximum.

[HOW]
Add the non-top pipe to calculate the remain de-tile buffer segments.
Don't set override size to use the average according to pipe count
if the value exceed the maximum.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Signed-off-by: Zhikai Zhai <zhikai.zhai@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@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/resource/dcn315/dcn315_resource.c