aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3618-drm-amdgpu-correct-in_suspend-setting-for-navi-serie.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3618-drm-amdgpu-correct-in_suspend-setting-for-navi-serie.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3618-drm-amdgpu-correct-in_suspend-setting-for-navi-serie.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3618-drm-amdgpu-correct-in_suspend-setting-for-navi-serie.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3618-drm-amdgpu-correct-in_suspend-setting-for-navi-serie.patch
new file mode 100644
index 00000000..9899858b
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3618-drm-amdgpu-correct-in_suspend-setting-for-navi-serie.patch
@@ -0,0 +1,45 @@
+From 4586a5f8ed696263540dd814e96c718c6b0a8834 Mon Sep 17 00:00:00 2001
+From: Hawking Zhang <Hawking.Zhang@amd.com>
+Date: Tue, 27 Aug 2019 17:13:47 +0800
+Subject: [PATCH 3618/4256] drm/amdgpu: correct in_suspend setting for navi
+ series
+
+in_suspend flag should be set in amdgpu_device_suspend/resume in pairs,
+instead of gfx10 ip suspend/resume function.
+
+Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 12 ++----------
+ 1 file changed, 2 insertions(+), 10 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
+index c72aad8c360a..c3b48ac398a5 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
+@@ -3769,20 +3769,12 @@ static int gfx_v10_0_hw_fini(void *handle)
+
+ static int gfx_v10_0_suspend(void *handle)
+ {
+- struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+-
+- adev->in_suspend = true;
+- return gfx_v10_0_hw_fini(adev);
++ return gfx_v10_0_hw_fini(handle);
+ }
+
+ static int gfx_v10_0_resume(void *handle)
+ {
+- struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+- int r;
+-
+- r = gfx_v10_0_hw_init(adev);
+- adev->in_suspend = false;
+- return r;
++ return gfx_v10_0_hw_init(handle);
+ }
+
+ static bool gfx_v10_0_is_idle(void *handle)
+--
+2.17.1
+