From: Ben Goz Date: Sat, 3 Jan 2015 20:12:33 +0000 (+0200) Subject: drm/amdkfd: Identify SDMA queue in create queue ioctl X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3385f9dd64d44f6adefb6f4680658d1e43bac9c9;p=openwrt%2Fstaging%2Fblogic.git drm/amdkfd: Identify SDMA queue in create queue ioctl 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 Signed-off-by: Oded Gabbay Reviewed-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c index 7d4974b83af7..3dfce4336eed 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c @@ -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;