aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1078-drm-amd-display-Fix-S3-topology-change.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1078-drm-amd-display-Fix-S3-topology-change.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1078-drm-amd-display-Fix-S3-topology-change.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1078-drm-amd-display-Fix-S3-topology-change.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1078-drm-amd-display-Fix-S3-topology-change.patch
new file mode 100644
index 00000000..8f7691f2
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1078-drm-amd-display-Fix-S3-topology-change.patch
@@ -0,0 +1,39 @@
+From 4c203194d0de9341ccb07f4d81f0350fe5128a0e Mon Sep 17 00:00:00 2001
+From: Roman Li <Roman.Li@amd.com>
+Date: Fri, 20 Oct 2017 10:15:18 -0400
+Subject: [PATCH 1078/4131] drm/amd/display: Fix S3 topology change
+
+Clean fake sink flag on resume if real sink connected.
+Fixing S3 topology change problem like this:
+1) x desktop with 1 or > displays
+2) unplug display
+3) suspend
+4) replug same display
+5) resume
+without this change replugged display doesn't light up
+
+Signed-off-by: Roman Li <Roman.Li@amd.com>
+Reviewed-by: Sun peng Li <Sunpeng.Li@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+index f7789da..a44b9dd 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -773,6 +773,10 @@ int amdgpu_dm_display_resume(struct amdgpu_device *adev )
+
+ mutex_lock(&aconnector->hpd_lock);
+ dc_link_detect(aconnector->dc_link, false);
++
++ if (aconnector->fake_enable && aconnector->dc_link->local_sink)
++ aconnector->fake_enable = false;
++
+ aconnector->dc_sink = NULL;
+ amdgpu_dm_update_connector_after_detect(aconnector);
+ mutex_unlock(&aconnector->hpd_lock);
+--
+2.7.4
+