aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3923-drm-amdkfd-fix-query-pending-event-with-unspecified-.patch
blob: 9b49b5d8714b2071f8b31749da608214f1efe6ca (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 552de4fb9ebea138186d9f9b37c56d6d40b1567d Mon Sep 17 00:00:00 2001
From: Jonathan Kim <jonathan.kim@amd.com>
Date: Fri, 27 Sep 2019 04:03:42 -0400
Subject: [PATCH 3923/4256] drm/amdkfd: fix query pending event with
 unspecified queue id

query pending event failed to return queue with both trap and vmfault pending
event status when queue id is not specified.

Change-Id: If18b8a34b14965d9dcd7c62ca568a82f2ee47c97
Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_debug_events.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_debug_events.c b/drivers/gpu/drm/amd/amdkfd/kfd_debug_events.c
index cabf26f03077..90d7215a4fd3 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_debug_events.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_debug_events.c
@@ -153,9 +153,8 @@ int kfd_dbg_ev_query_debug_event(struct kfd_process_device *pdd,
 		list_for_each_entry(pqn, &pqm->queues, process_queue_list) {
 			if (pqn->q &&
 				 (pqn->q->properties.debug_event_type
-					== KFD_DBG_EV_STATUS_TRAP
-				|| pqn->q->properties.debug_event_type
-					== KFD_DBG_EV_STATUS_VMFAULT)) {
+					& (KFD_DBG_EV_STATUS_TRAP
+					| KFD_DBG_EV_STATUS_VMFAULT))) {
 				*queue_id = pqn->q->properties.queue_id;
 				*event_status =
 					kfd_dbg_get_queue_status_word(pqn->q,
-- 
2.17.1