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 <mario.limonciello@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Reviewed-by: Josip Pavic <josip.pavic@amd.com> Acked-by: Alan Liu <haoping.liu@amd.com> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 2a9482e commit 2387ccf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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)