summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorOded Gabbay2017-09-02 14:00:25 +0200
committerOded Gabbay2017-09-02 14:00:25 +0200
commit1fabbf781167052f4480bdcc627378a27e78a559 (patch)
tree7434c2da642a44c248e837ef4dd9367f0842234d /drivers/gpu
parentdrm/amdkfd: remove memset before memcpy (diff)
downloadkernel-qcow2-linux-1fabbf781167052f4480bdcc627378a27e78a559.tar.gz
kernel-qcow2-linux-1fabbf781167052f4480bdcc627378a27e78a559.tar.xz
kernel-qcow2-linux-1fabbf781167052f4480bdcc627378a27e78a559.zip
drm/amdkfd: pass queue's mqd when destroying mqd
In VI, the destroy mqd function needs to inquire fields present in the mqd structure. That's why we need to pass it to that function instead of NULL. Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c2
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 681b639f5133..0649dd43e780 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
@@ -183,7 +183,7 @@ static void uninitialize(struct kernel_queue *kq)
{
if (kq->queue->properties.type == KFD_QUEUE_TYPE_HIQ)
kq->mqd->destroy_mqd(kq->mqd,
- NULL,
+ kq->queue->mqd,
false,
QUEUE_PREEMPT_DEFAULT_TIMEOUT_MS,
kq->queue->pipe,