aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1217-drm-amdkfd-Always-release-process-in-a-work-queue.patch
diff options
context:
space:
mode:
authorWade Farnsworth <wfarnsworth@users.noreply.github.com>2021-04-13 09:04:38 -0700
committerGitHub <noreply@github.com>2021-04-13 09:04:38 -0700
commitbe9483b733abd79c0faf84fc4e145baec50b54d3 (patch)
tree7421b6843162e32b51081efd6fadb93eeaf1d96a /meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1217-drm-amdkfd-Always-release-process-in-a-work-queue.patch
parent912b599025085dd4b528c47c9043c0a8ed754454 (diff)
parent6702fd36acde77ee8d8d7177f24768ba16257355 (diff)
downloadmeta-amd-master.tar.gz
meta-amd-master.tar.bz2
meta-amd-master.zip
Merge pull request #700 from ArsalanHAwan/master-merge-dunfellHEADmaster
master merge dunfell
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1217-drm-amdkfd-Always-release-process-in-a-work-queue.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1217-drm-amdkfd-Always-release-process-in-a-work-queue.patch64
1 files changed, 0 insertions, 64 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1217-drm-amdkfd-Always-release-process-in-a-work-queue.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1217-drm-amdkfd-Always-release-process-in-a-work-queue.patch
deleted file mode 100644
index 5e5bf6b0..00000000
--- a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1217-drm-amdkfd-Always-release-process-in-a-work-queue.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From 49c16d301a2567d7e231dfcb730534097faaea8c Mon Sep 17 00:00:00 2001
-From: Felix Kuehling <Felix.Kuehling@amd.com>
-Date: Tue, 24 Jan 2017 20:48:13 -0500
-Subject: [PATCH 1217/4131] drm/amdkfd: Always release process in a work queue
-
-Run process clean-up triggered by kfd_unref_process in a work queue
-to avoid recursive locking issues.
-
-Change-Id: I27ac43548a986bbe49d3ebe7f7d655a25b6349d5
-Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
----
- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 20 ++++++++++----------
- 1 file changed, 10 insertions(+), 10 deletions(-)
-
-diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
-index 63e85de..10bddc9 100644
---- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c
-+++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
-@@ -327,9 +327,10 @@ static void kfd_process_destroy_pdds(struct kfd_process *p)
- * is not findable any more. We must assume that no other thread is
- * using it any more, otherwise we couldn't safely free the process
- * stucture in the end. */
--static void kfd_process_ref_release(struct kref *ref)
-+static void kfd_process_wq_release(struct work_struct *work)
- {
-- struct kfd_process *p = container_of(ref, struct kfd_process, ref);
-+ struct kfd_process *p = container_of(work, struct kfd_process,
-+ release_work);
- struct kfd_process_device *pdd;
-
- pr_debug("Releasing process (pasid %d)\n",
-@@ -361,22 +362,21 @@ static void kfd_process_ref_release(struct kref *ref)
- kfree(p);
- }
-
--static void kfd_process_wq_release(struct work_struct *work)
-+static void kfd_process_ref_release(struct kref *ref)
- {
-- struct kfd_process *p = container_of(work, struct kfd_process,
-- release_work);
-+ struct kfd_process *p = container_of(ref, struct kfd_process, ref);
-
-- kref_put(&p->ref, kfd_process_ref_release);
-+ BUG_ON(!kfd_process_wq);
-+
-+ INIT_WORK(&p->release_work, kfd_process_wq_release);
-+ queue_work(kfd_process_wq, &p->release_work);
- }
-
- static void kfd_process_destroy_delayed(struct rcu_head *rcu)
- {
- struct kfd_process *p = container_of(rcu, struct kfd_process, rcu);
-
-- BUG_ON(!kfd_process_wq);
--
-- INIT_WORK(&p->release_work, kfd_process_wq_release);
-- queue_work(kfd_process_wq, &p->release_work);
-+ kfd_unref_process(p);
- }
-
- static void kfd_process_notifier_release(struct mmu_notifier *mn,
---
-2.7.4
-