drm/amd/display: Add DP 2.0 MST DC Support
authorFangzhi Zuo <Jerry.Zuo@amd.com>
Mon, 25 Oct 2021 22:38:23 +0000 (18:38 -0400)
committerLyude Paul <lyude@redhat.com>
Tue, 26 Oct 2021 01:21:08 +0000 (21:21 -0400)
commitd740e0bf8ed4c14ac6a616e2b31626bdcf417135
tree80aaedd030438dcabd0f22891910df884bdf3eb3
parentd6c6a76f80a1c91dceacef3630a7465ece630615
drm/amd/display: Add DP 2.0 MST DC Support

[Why]
configure/call DC interface for DP2 mst support. This is needed to make DP2
mst work.

[How]
- add encoding type, logging, mst update/reduce payload functions

Use the link encoding to determine the DP type (1.4 or 2.0) and add a
flag to dc_stream_update to determine whether to increase/reduce
payloads.

v2:
* add DP_UNKNOWN_ENCODING handling

Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Reviewed-by: "Lin, Wayne" <Wayne.Lin@amd.com>
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211025223825.301703-4-lyude@redhat.com
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc_link.h
drivers/gpu/drm/amd/display/dc/dc_stream.h