diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3923-drm-amdkfd-fix-query-pending-event-with-unspecified-.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3923-drm-amdkfd-fix-query-pending-event-with-unspecified-.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3923-drm-amdkfd-fix-query-pending-event-with-unspecified-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3923-drm-amdkfd-fix-query-pending-event-with-unspecified-.patch new file mode 100644 index 00000000..9b49b5d8 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3923-drm-amdkfd-fix-query-pending-event-with-unspecified-.patch @@ -0,0 +1,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 + |