Skip to content

Commit 73e6869

Browse files
Peichen Huangalexdeucher
authored andcommitted
drm/amd/display: dpia should avoid encoder used by dp2
[WHY] In current HPO DP2 implementation, driver would enable/disable DIG encoder when configuring HPO DP2. Therefore, usb4 dp tunnelling should not use the DIG encoder if the corresponded phy is used by a HPO DP2 stream. [HOW] A DP2 stream is treated as a dig stream. Reviewed-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com> Signed-off-by: Peichen Huang <PeiChen.Huang@amd.com> Signed-off-by: Roman Li <roman.li@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 72d7a7f commit 73e6869

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,8 @@ static bool is_dig_link_enc_stream(struct dc_stream_state *stream)
4444
* yet match.
4545
*/
4646
if (link_enc && ((uint32_t)stream->link->connector_signal & link_enc->output_signals)) {
47-
if (dc_is_dp_signal(stream->signal)) {
48-
/* DIGs do not support DP2.0 streams with 128b/132b encoding. */
49-
struct dc_link_settings link_settings = {0};
50-
51-
stream->ctx->dc->link_srv->dp_decide_link_settings(stream, &link_settings);
52-
if ((link_settings.link_rate >= LINK_RATE_LOW) &&
53-
link_settings.link_rate <= LINK_RATE_HIGH3) {
54-
is_dig_stream = true;
55-
break;
56-
}
57-
} else {
58-
is_dig_stream = true;
59-
break;
60-
}
47+
is_dig_stream = true;
48+
break;
6149
}
6250
}
6351
}

0 commit comments

Comments
 (0)