drm/amdkfd: pass queue's mqd when destroying mqd
authorOded Gabbay <oded.gabbay@gmail.com>
Sat, 2 Sep 2017 12:00:25 +0000 (15:00 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Sat, 2 Sep 2017 12:00:25 +0000 (15:00 +0300)
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>
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c

index 681b639f51330b78af84854880cae988fd90b252..0649dd43e7806e28bbd84d35ea56c0e70506e292 100644 (file)
@@ -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,