diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3045-drm-amdkfd-avoid-calling-execute_queues_cpsch-when-d.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3045-drm-amdkfd-avoid-calling-execute_queues_cpsch-when-d.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3045-drm-amdkfd-avoid-calling-execute_queues_cpsch-when-d.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3045-drm-amdkfd-avoid-calling-execute_queues_cpsch-when-d.patch new file mode 100644 index 00000000..121f0e59 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3045-drm-amdkfd-avoid-calling-execute_queues_cpsch-when-d.patch @@ -0,0 +1,38 @@ +From 1cd4b1bfa33ff6e952ca73483216c40c4a33c3db Mon Sep 17 00:00:00 2001 +From: Yong Zhao <yong.zhao@amd.com> +Date: Mon, 18 Dec 2017 18:36:50 -0500 +Subject: [PATCH 3045/4131] drm/amdkfd: avoid calling execute_queues_cpsch() + when destroying an unactive queue + +Change-Id: I1b4586f81e0126d4ec7e876cfde817173d9550b7 +Signed-off-by: Yong Zhao <yong.zhao@amd.com> +--- + drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +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 cdd07c8..77f5351 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +@@ -1300,13 +1300,13 @@ static int destroy_queue_cpsch(struct device_queue_manager *dqm, + + list_del(&q->list); + qpd->queue_count--; +- if (q->properties.is_active) ++ if (q->properties.is_active) { + dqm->queue_count--; +- +- retval = execute_queues_cpsch(dqm, ++ retval = execute_queues_cpsch(dqm, + KFD_UNMAP_QUEUES_FILTER_DYNAMIC_QUEUES, 0); +- if (retval == -ETIME) +- qpd->reset_wavefronts = true; ++ if (retval == -ETIME) ++ qpd->reset_wavefronts = true; ++ } + + mqd->uninit_mqd(mqd, q->mqd, q->mqd_mem_obj); + +-- +2.7.4 + |