Skip to content

Commit 2387ccf

Browse files
Nicholas Kazlauskasalexdeucher
authored andcommitted
drm/amd/display: Keep PHY active for DP displays on DCN31
[Why & How] Port of a change that went into DCN314 to keep the PHY enabled when we have a connected and active DP display. The PHY can hang if PHY refclk is disabled inadvertently. Cc: Mario Limonciello <[email protected]> Cc: Alex Deucher <[email protected]> Cc: [email protected] Reviewed-by: Josip Pavic <[email protected]> Acked-by: Alan Liu <[email protected]> Signed-off-by: Nicholas Kazlauskas <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 2a9482e commit 2387ccf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ static int dcn31_get_active_display_cnt_wa(
8787
stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
8888
stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK)
8989
tmds_present = true;
90+
91+
/* Checking stream / link detection ensuring that PHY is active*/
92+
if (dc_is_dp_signal(stream->signal) && !stream->dpms_off)
93+
display_count++;
94+
9095
}
9196

9297
for (i = 0; i < dc->link_count; i++) {

0 commit comments

Comments
 (0)