aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1136-drm-amdkfd-Unmapping-static-queues-when-a-process-te.patch
blob: e79ef9d9f3c2087139d07271000fcf879d4ea0a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From df030e9cc9903669cdd127624e30d3c41cd46d34 Mon Sep 17 00:00:00 2001
From: Yong Zhao <yong.zhao@amd.com>
Date: Fri, 13 May 2016 21:39:48 -0400
Subject: [PATCH 1136/4131] drm/amdkfd: Unmapping static queues when a process
 terminates

In the original code, the static queues were also unmapped when a
process terminates. However, when we tried to fix a multi-process
dispatch failure in SWDEV-89586, we excluded the static queues in
order not to reset the queues when unmapping. Now we include back
the static queues as the new interface of execute_queues_cpsch()
allows us to specify the queue filter.

Change-Id: I09959e96fc6ee2990ff80c251910dcc7c0c631c8
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
index ea47e8f..f92c01b 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
@@ -1459,7 +1459,7 @@ static int process_termination_cpsch(struct device_queue_manager *dqm,
 		}
 	}
 
-	retval = execute_queues_cpsch(dqm, false);
+	retval = execute_queues_cpsch(dqm, true);
 
 	/* lastly, free mqd resources */
 	list_for_each_entry_safe(q, next, &qpd->queues_list, list) {
-- 
2.7.4