From: jsg Date: Fri, 28 Jul 2023 06:45:27 +0000 (+0000) Subject: drm/amd/display: Keep PHY active for DP displays on DCN31 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f818947a4e715748a83ffbbf057b05296cf22a8c;p=openbsd drm/amd/display: Keep PHY active for DP displays on DCN31 From Nicholas Kazlauskas b9741ba942f3f2c36de96241dfaf2dbbd3b5c826 in linux-6.1.y/6.1.42 2387ccf43e3c6cb5dbd757c5ef410cca9f14b971 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c b/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c index c1eaf571407..9f593eddb6b 100644 --- a/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c +++ b/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c @@ -86,6 +86,11 @@ static int dcn31_get_active_display_cnt_wa( stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK || stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK) tmds_present = true; + + /* Checking stream / link detection ensuring that PHY is active*/ + if (dc_is_dp_signal(stream->signal) && !stream->dpms_off) + display_count++; + } for (i = 0; i < dc->link_count; i++) {