drm/amdkfd: Pass queue type to pqm_create_queue()
authorBen Goz <ben.goz@amd.com>
Sat, 3 Jan 2015 20:12:34 +0000 (22:12 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Fri, 9 Jan 2015 20:26:06 +0000 (22:26 +0200)
This patch passes the correct queue type to pqm_create_queue() instead of a
fixed KFD_QUEUE_TYPE_COMPUTE type.

Signed-off-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c

index 3dfce4336eedc6dc299d8b7a169b886e37f273c6..4c0b1e42e405c67d3a30c40a8b955a6700d05d17 100644 (file)
@@ -260,8 +260,8 @@ static long kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p,
                        p->pasid,
                        dev->id);
 
-       err = pqm_create_queue(&p->pqm, dev, filep, &q_properties, 0,
-                               KFD_QUEUE_TYPE_COMPUTE, &queue_id);
+       err = pqm_create_queue(&p->pqm, dev, filep, &q_properties,
+                               0, q_properties.type, &queue_id);
        if (err != 0)
                goto err_create_queue;