]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit581301abcda601c1201f5b208bf516cc8b7a6546
tree88d16451f11597b1534d4beca349f8aac205aeed
parentce93a49d7c51bdfbbda9075509917be1003f15bd
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