From d1362aab623b79a9054e1f526d8af140489f2574 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 4 Aug 2023 08:13:07 +0000 Subject: [PATCH] drm/amd/display: Keep PHY active for dp config From Agustin Gutierrez a9174f0d7addf4c1c9eddef87d4433b7706e77b7 in linux-6.1.y/6.1.43 2b02d746c1818baf741f4eeeff9b97ab4b81e1cf in mainline linux --- .../pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c b/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c index 20a06c04e4a..e43b4d7dc60 100644 --- a/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c +++ b/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c @@ -108,6 +108,11 @@ static int dcn314_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++) { -- 2.20.1