aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/1110-drm-amdgpu-free-handles-after-fini-the-context.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/1110-drm-amdgpu-free-handles-after-fini-the-context.patch')
-rw-r--r--common/recipes-kernel/linux/files/1110-drm-amdgpu-free-handles-after-fini-the-context.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/common/recipes-kernel/linux/files/1110-drm-amdgpu-free-handles-after-fini-the-context.patch b/common/recipes-kernel/linux/files/1110-drm-amdgpu-free-handles-after-fini-the-context.patch
deleted file mode 100644
index bde05ee1..00000000
--- a/common/recipes-kernel/linux/files/1110-drm-amdgpu-free-handles-after-fini-the-context.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 43fe0c664e7de0663b8d8845e90887965f82df4f Mon Sep 17 00:00:00 2001
-From: Leo Liu <leo.liu@amd.com>
-Date: Fri, 22 Jul 2016 14:13:11 -0400
-Subject: [PATCH 1110/1110] drm/amdgpu: free handles after fini the context
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-This will make sure all the submissions from different contexts gets
-finished, and then we close the session and free up the handles.
-
-This will fix the issue that session clean-up is not get done properly,
-when with the command `kill -9'
-
-Signed-off-by: Leo Liu <leo.liu@amd.com>
-Reviewed-by: Christian K├Ânig <christian.koenig@amd.com>
-Signed-off-by: Kalyan Alle <kalyan.alle@amd.com>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 7 +++----
- 1 file changed, 3 insertions(+), 4 deletions(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
-index b6e9d81..d4e1e86 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
-@@ -566,6 +566,9 @@ void amdgpu_driver_postclose_kms(struct drm_device *dev,
-
- amdgpu_ctx_mgr_fini(&fpriv->ctx_mgr);
-
-+ amdgpu_uvd_free_handles(adev, file_priv);
-+ amdgpu_vce_free_handles(adev, file_priv);
-+
- amdgpu_vm_fini(adev, &fpriv->vm);
-
- idr_for_each_entry(&fpriv->bo_list_handles, list, handle)
-@@ -590,10 +593,6 @@ void amdgpu_driver_postclose_kms(struct drm_device *dev,
- void amdgpu_driver_preclose_kms(struct drm_device *dev,
- struct drm_file *file_priv)
- {
-- struct amdgpu_device *adev = dev->dev_private;
--
-- amdgpu_uvd_free_handles(adev, file_priv);
-- amdgpu_vce_free_handles(adev, file_priv);
- }
-
- /*
---
-2.7.4
-