aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0992-drm-amd-dal-destroy-mst-connector-after-reset-mode.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0992-drm-amd-dal-destroy-mst-connector-after-reset-mode.patch')
-rw-r--r--common/recipes-kernel/linux/files/0992-drm-amd-dal-destroy-mst-connector-after-reset-mode.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0992-drm-amd-dal-destroy-mst-connector-after-reset-mode.patch b/common/recipes-kernel/linux/files/0992-drm-amd-dal-destroy-mst-connector-after-reset-mode.patch
new file mode 100644
index 00000000..90729d99
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0992-drm-amd-dal-destroy-mst-connector-after-reset-mode.patch
@@ -0,0 +1,40 @@
+From 9e339933180781a43c7fa56490a53d410013a583 Mon Sep 17 00:00:00 2001
+From: Mykola Lysenko <Mykola.Lysenko@amd.com>
+Date: Fri, 18 Dec 2015 18:46:32 +0800
+Subject: [PATCH 0992/1050] drm/amd/dal: destroy mst connector after reset mode
+
+MST semaphore lock/unlock done after actual dc_commit_target is
+done. Need to make sure MST connectors alive till that time
+
+Change-Id: Id206debea899a006b1b98c97978e7fb69eadc342
+Signed-off-by: Mykola Lysenko <Mykola.Lysenko@amd.com>
+Acked-by: Jordan Lazare <Jordan.Lazare@amd.com>
+---
+ drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
+index ae22d53..8040b49 100644
+--- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
++++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
+@@ -2245,8 +2245,6 @@ int amdgpu_dm_atomic_commit(
+ } /* switch() */
+ } /* for_each_crtc_in_state() */
+
+- update_connector_sem_state(state);
+-
+ commit_targets_count = 0;
+
+ list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
+@@ -2262,6 +2260,8 @@ int amdgpu_dm_atomic_commit(
+ /* DC is optimized not to do anything if 'targets' didn't change. */
+ dc_commit_targets(dm->dc, commit_targets, commit_targets_count);
+
++ update_connector_sem_state(state);
++
+ /* update planes when needed */
+ for_each_plane_in_state(state, plane, old_plane_state, i) {
+ struct drm_plane_state *plane_state = plane->state;
+--
+1.9.1
+