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:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2020-09-24 14:07:32 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2020-09-24 14:07:32 +0500
commitbf3927da8492eac359e3faea98016722da23e25c (patch)
treee670f40e0d030b58f083e275632bca4a89270548 /meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1217-drm-amdkfd-Always-release-process-in-a-work-queue.patch
parent0f50b03a975594bd71d8204a40c7f78d0a8a2b46 (diff)
downloadmeta-amd-bf3927da8492eac359e3faea98016722da23e25c.tar.gz
meta-amd-bf3927da8492eac359e3faea98016722da23e25c.tar.bz2
meta-amd-bf3927da8492eac359e3faea98016722da23e25c.zip
bsp/kernel: rm linux-yocto-4.14.71 bits as it is not used by any bsp
We are keeping the linux-yocto-4.19.8 for now as r1000 has not moved to linux-yocto-5.4.2 yet. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
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
-