aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/5153-drm-amdgpu-Cancel-the-delay-work-when-suspend.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/5153-drm-amdgpu-Cancel-the-delay-work-when-suspend.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/5153-drm-amdgpu-Cancel-the-delay-work-when-suspend.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/5153-drm-amdgpu-Cancel-the-delay-work-when-suspend.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/5153-drm-amdgpu-Cancel-the-delay-work-when-suspend.patch
new file mode 100644
index 00000000..411bcfe1
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/5153-drm-amdgpu-Cancel-the-delay-work-when-suspend.patch
@@ -0,0 +1,34 @@
+From 0e7c6f6f6ef972f75c3a4192d1f88e4dcb22f223 Mon Sep 17 00:00:00 2001
+From: Rex Zhu <Rex.Zhu@amd.com>
+Date: Tue, 14 Aug 2018 17:31:09 +0800
+Subject: [PATCH 5153/5725] drm/amdgpu: Cancel the delay work when suspend
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Cancel the delay work to avoid the corner case that
+ib test was not running when suspend
+
+Reviewed-by: Christian König <christian.koenig@amd.com>
+Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+index 65cf144..b798801 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+@@ -2774,6 +2774,8 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)
+ if (fbcon)
+ amdgpu_fbdev_set_suspend(adev, 1);
+
++ cancel_delayed_work_sync(&adev->late_init_work);
++
+ if (!amdgpu_device_has_dc_support(adev)) {
+ /* turn off display hw */
+ drm_modeset_lock_all(dev);
+--
+2.7.4
+