drm/amd/display: Keep PHY active for DP displays on DCN31
authorjsg <jsg@openbsd.org>
Fri, 28 Jul 2023 06:45:27 +0000 (06:45 +0000)
committerjsg <jsg@openbsd.org>
Fri, 28 Jul 2023 06:45:27 +0000 (06:45 +0000)
From Nicholas Kazlauskas
b9741ba942f3f2c36de96241dfaf2dbbd3b5c826 in linux-6.1.y/6.1.42
2387ccf43e3c6cb5dbd757c5ef410cca9f14b971 in mainline linux

sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c

index c1eaf57..9f593ed 100644 (file)
@@ -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++) {