OSDN Git Service

drm/amd/display: add ODM case when looking for first split pipe
authorSamson Tam <samson.tam@amd.com>
Tue, 9 May 2023 20:40:19 +0000 (16:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Jun 2023 20:55:39 +0000 (16:55 -0400)
commit59de751e3845d699e02dc4da47322b92d83a41e2
treeebaf66092f4814401691644eae5caf4312389a7f
parent99b3886f8674502e967b1d050e40aa669c9098c1
drm/amd/display: add ODM case when looking for first split pipe

[Why]
When going from ODM 2:1 single display case to max displays, second
odm pipe needs to be repurposed for one of the new single displays.
However, acquire_first_split_pipe() only handles MPC case and not
ODM case

[How]
Add ODM conditions in acquire_first_split_pipe()
Add commit_minimal_transition_state() in commit_streams() to handle
odm 2:1 exit first, and then process new streams
Handle ODM condition in commit_minimal_transition_state()

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Samson Tam <samson.tam@amd.com>
Reviewed-by: Alvin Lee <Alvin.Lee2@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.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c