blob: 877724fcf605cb075231d78b0def045ad3f62df7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
From 576b90d063de6687202134a7ef8aae9a8a08cc1e Mon Sep 17 00:00:00 2001
From: Mykola Lysenko <Mykola.Lysenko@amd.com>
Date: Wed, 9 Dec 2015 19:34:30 +0800
Subject: [PATCH 0929/1050] drm/amd/dal: do not use MST sink for regular
connector
This fix is intention to block set mode on non-MST when
MST branch was disconnected. It is temporary, proper fix
based on sink refcounts will be applied
Change-Id: I9d4324fc1711d28e039cc2f9ac9e52934f91e2f8
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland<harry.wentland@amd.com>
---
drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm.c
index c797d97..e820f76 100644
--- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm.c
@@ -736,10 +736,18 @@ void amdgpu_dm_update_connector_after_detect(
/* MST handled by drm_mst framework */
if (aconnector->mst_mgr.mst_state)
return;
+
if (!dm_get_sink_from_link(dc_link, aconnector, &sink)) {
return;
}
+ /*
+ * TODO: temporary guard to look for proper fix
+ * if this sink is MST sink, we should not do anything
+ */
+ if (sink && sink->sink_signal == SIGNAL_TYPE_DISPLAY_PORT_MST)
+ return;
+
if (aconnector->dc_sink == sink) {
/* We got a DP short pulse (Link Loss, DP CTS, etc...).
* Do nothing!! */
--
1.9.1
|