drm/amd/display: Fix MST link encoder availability check.
authorJimmy Kizito <Jimmy.Kizito@amd.com>
Wed, 15 Sep 2021 19:24:45 +0000 (15:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Sep 2021 13:30:11 +0000 (09:30 -0400)
commit43dc2ad561c94dbb4a16477d99033279e2ae378a
tree88d16451f11597b1534d4beca349f8aac205aeed
parente3ab29aa8c680f31ad1a53a0a1b3a54367dd473d
drm/amd/display: Fix MST link encoder availability check.

[Why]
MST streams share the same link and should share the same encoder.
The current availability check may erroneously determine that an
encoder is unavailable for MST streams.

[How]
When checking for link encoder availability, check if an encoder
in use shares a link with the stream for which the availability
check is being conducted. If the link is shared, then the link
encoder should be shared too and will be deemed available.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: Jimmy Kizito <Jimmy.Kizito@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_link_enc_cfg.c