drm/amd/display: Release DSC before acquiring
authorMikita Lipski <mikita.lipski@amd.com>
Thu, 14 Jan 2021 16:48:57 +0000 (11:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Feb 2021 10:02:23 +0000 (11:02 +0100)
commitb8dc6255bb2d08ff5f57ddfb4ff0f85fd6433a9f
tree3c5af2dd7c7dad2e4f033d8b4b6bf67dc36bf249
parent4d9a5224d507f609f940e24b499bc34801b4ae23
drm/amd/display: Release DSC before acquiring

[ Upstream commit 58180a0cc0c57fe62a799a112f95b60f6935bd96 ]

[why]
Need to unassign DSC from pipes that are not using it
so other pipes can acquire it. That is needed for
asic's that have unmatching number of DSC engines from
the number of pipes.

[how]
Before acquiring dsc to stream resources, first remove it.

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Eryk Brol <Eryk.Brol@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c