drm/amd/display: reset stream slice count for new ODM policy
authorWenjing Liu <wenjing.liu@amd.com>
Mon, 28 Aug 2023 19:43:03 +0000 (15:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 21:00:21 +0000 (17:00 -0400)
commit177ea58bef72ee84d8c692950ba51889478a7d15
tree542d74d618fe341cdf69fff9f0e35d4ab6d8c1b3
parent036cf278a8257b391b4f5b919ddc668c9b1ce9a7
drm/amd/display: reset stream slice count for new ODM policy

[why]
ODM combine could prevent us from supporting more planes
we will reset ODM slice count back to 1 when all planes have
been removed to maximize the amount of planes supported when
new planes are added.

[how]
reset ODM slice count when all planes are removed.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Wayne Lin <wayne.lin@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