linux-yocto/drivers/gpu/drm/amd/display/dc/dcn315
Zhikai Zhai 0b60d03644 drm/amd/display: calculate the remain segments for all pipes
[ Upstream commit d3069feecdb5542604d29b59acfd1fd213bad95b ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-04 14:40:07 +02:00
..
dcn315_resource.c drm/amd/display: calculate the remain segments for all pipes 2025-06-04 14:40:07 +02:00
dcn315_resource.h drm/amd/display: make variables static 2022-08-10 14:57:49 -04:00
Makefile drm/amd/display: move FPU related code from dcn315 to dml/dcn31 folder 2022-03-25 12:40:26 -04:00