summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-08-27 02:47:49 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-08-27 02:47:49 +0000
commit168d21dfa2a6dc87501f9bb400ae3314509e8d20 (patch)
tree6dba57ed690f32a0da99db63be4f04045e7dc893 /sys/dev
parent50f7886690e1df8b88adbea6b3880f1395b1961f (diff)
drm/amd/display: workaround for hard hang on HPD on native DP
From Qingqing Zhuo 2e6cc93e1b8cf3ec2966961c1e98722ee7281023 in linux 5.10.y/5.10.61 c4152b297d56d3696ad0a9003169bc5b98ad7b72 in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c b/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
index 1c6e401dd4c..0eba391e597 100644
--- a/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
+++ b/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
@@ -66,9 +66,11 @@ int rn_get_active_display_cnt_wa(
for (i = 0; i < context->stream_count; i++) {
const struct dc_stream_state *stream = context->streams[i];
+ /* Extend the WA to DP for Linux*/
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A ||
stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
- stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK)
+ stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK ||
+ stream->signal == SIGNAL_TYPE_DISPLAY_PORT)
tmds_present = true;
}