drm/amd/display: Release DSC before acquiring
authorMikita Lipski <mikita.lipski@amd.com>
Thu, 14 Jan 2021 16:48:57 +0000 (11:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Feb 2021 17:10:30 +0000 (12:10 -0500)
commitbae72358f6a28e1a7f1a1c5a99e5d870360d8e46
tree6f2c212e01615aa341790767d7d7a97ed86448a6
parentddf386faa681a93cdb051f4bf6c3c5432f8ee01d
drm/amd/display: Release DSC before acquiring

[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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c