diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2017-09-21 00:10:17 +0200 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2017-09-21 00:10:17 +0200 |
commit | b22666febf6fc67776d49782057fe4dd06f41552 (patch) | |
tree | a901964194e0bbd81d53976c3170ea9a02ded7d3 /drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c | |
parent | drm/amdkfd: check for null dev to avoid a null pointer dereference (diff) | |
download | linux-b22666febf6fc67776d49782057fe4dd06f41552.tar.xz linux-b22666febf6fc67776d49782057fe4dd06f41552.zip |
drm/amdkfd: Fix incorrect destroy_mqd parameter
When uninitializing a kernel queue.
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c index 0649dd43e780..a4ca1133482c 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c @@ -184,7 +184,7 @@ static void uninitialize(struct kernel_queue *kq) if (kq->queue->properties.type == KFD_QUEUE_TYPE_HIQ) kq->mqd->destroy_mqd(kq->mqd, kq->queue->mqd, - false, + KFD_PREEMPT_TYPE_WAVEFRONT_RESET, QUEUE_PREEMPT_DEFAULT_TIMEOUT_MS, kq->queue->pipe, kq->queue->queue); |