aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0143-drm-amdgpu-fix-NULL-in-vm_grab_id-while-S3-back.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0143-drm-amdgpu-fix-NULL-in-vm_grab_id-while-S3-back.patch')
-rw-r--r--common/recipes-kernel/linux/files/0143-drm-amdgpu-fix-NULL-in-vm_grab_id-while-S3-back.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0143-drm-amdgpu-fix-NULL-in-vm_grab_id-while-S3-back.patch b/common/recipes-kernel/linux/files/0143-drm-amdgpu-fix-NULL-in-vm_grab_id-while-S3-back.patch
new file mode 100644
index 00000000..edc57e6e
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0143-drm-amdgpu-fix-NULL-in-vm_grab_id-while-S3-back.patch
@@ -0,0 +1,41 @@
+From 5883cd766f09e213a64acadcbeceb8c389113375 Mon Sep 17 00:00:00 2001
+From: Chunming Zhou <David1.Zhou@amd.com>
+Date: Tue, 29 Dec 2015 11:57:38 +0800
+Subject: [PATCH 0143/1110] drm/amdgpu: fix NULL in vm_grab_id while S3 back
+
+vm_manager_fini shouldn't be in suspend phase.
+
+Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
+Reviewed-by: Ken Wang <Qingqing.Wang@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 1 -
+ drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 1 -
+ 2 files changed, 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
+index 538af44..c1a4ec8 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
+@@ -1005,7 +1005,6 @@ static int gmc_v7_0_sw_fini(void *handle)
+ struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+
+ if (adev->vm_manager.enabled) {
+- amdgpu_vm_manager_fini(adev);
+ gmc_v7_0_vm_fini(adev);
+ adev->vm_manager.enabled = false;
+ }
+diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
+index 2fcfa97..e59251f 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
+@@ -1016,7 +1016,6 @@ static int gmc_v8_0_suspend(void *handle)
+ struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+
+ if (adev->vm_manager.enabled) {
+- amdgpu_vm_manager_fini(adev);
+ gmc_v8_0_vm_fini(adev);
+ adev->vm_manager.enabled = false;
+ }
+--
+2.7.4
+