Skip to content

Commit 6571bef

Browse files
Harry VanZyllDeJongalexdeucher
authored andcommitted
drm/amd/display: Add support for disconnected eDP streams
[Why] eDP may not be connected to the GPU on driver start causing fail enumeration. [How] Move the virtual signal type check before the eDP connector signal check. Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Signed-off-by: Harry VanZyllDeJong <hvanzyll@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 73e6869 commit 6571bef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,9 @@ bool link_decide_link_settings(struct dc_stream_state *stream,
945945
* TODO: add MST specific link training routine
946946
*/
947947
decide_mst_link_settings(link, link_setting);
948+
} else if (stream->signal == SIGNAL_TYPE_VIRTUAL) {
949+
link_setting->lane_count = LANE_COUNT_FOUR;
950+
link_setting->link_rate = LINK_RATE_HIGH3;
948951
} else if (link->connector_signal == SIGNAL_TYPE_EDP) {
949952
/* enable edp link optimization for DSC eDP case */
950953
if (stream->timing.flags.DSC) {
@@ -967,9 +970,6 @@ bool link_decide_link_settings(struct dc_stream_state *stream,
967970
} else {
968971
edp_decide_link_settings(link, link_setting, req_bw);
969972
}
970-
} else if (stream->signal == SIGNAL_TYPE_VIRTUAL) {
971-
link_setting->lane_count = LANE_COUNT_FOUR;
972-
link_setting->link_rate = LINK_RATE_HIGH3;
973973
} else {
974974
decide_dp_link_settings(link, link_setting, req_bw);
975975
}

0 commit comments

Comments
 (0)