drm/amd/display: move idle pipe allocation logic into dcn specific layer
authorWenjing Liu <wenjing.liu@amd.com>
Wed, 26 Jul 2023 19:22:01 +0000 (15:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Aug 2023 21:14:09 +0000 (17:14 -0400)
commitd8e3fcd3ea152aa41c76dbc82c6df7e41264494b
treec802362f68ccd8d0e8d8d6b93d525e5010d5dc49
parent2b1b838ea8e5437ef06a29818d16e9efdfaf0037
drm/amd/display: move idle pipe allocation logic into dcn specific layer

[why]
generic dc resource file should not know what an optimal idle pipe is
because this is dcn hardware dependent.

[how]
We move the optimial pipe searching logic in dcn specific layer.

Reviewed-by: Jun Lei <jun.lei@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@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