]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/amdkfd: Identify SDMA queue in create queue ioctl
authorBen Goz <ben.goz@amd.com>
Sat, 3 Jan 2015 20:12:33 +0000 (22:12 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Fri, 9 Jan 2015 20:26:05 +0000 (22:26 +0200)
This patch adds a check to the create queue ioctl path, which identifies SDMA
queue type that is sent by userspace.

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 7d4974b83af7821649c7eff1f75ee4d0b05758e6..3dfce4336eedc6dc299d8b7a169b886e37f273c6 100644 (file)
@@ -192,6 +192,8 @@ static int set_queue_properties_from_user(struct queue_properties *q_properties,
        if (args->queue_type == KFD_IOC_QUEUE_TYPE_COMPUTE ||
                args->queue_type == KFD_IOC_QUEUE_TYPE_COMPUTE_AQL)
                q_properties->type = KFD_QUEUE_TYPE_COMPUTE;
+       else if (args->queue_type == KFD_IOC_QUEUE_TYPE_SDMA)
+               q_properties->type = KFD_QUEUE_TYPE_SDMA;
        else
                return -ENOTSUPP;