diff options
author | Ben Goz <ben.goz@amd.com> | 2015-01-03 20:12:33 (GMT) |
---|---|---|
committer | Oded Gabbay <oded.gabbay@amd.com> | 2015-01-09 20:26:05 (GMT) |
commit | 3385f9dd64d44f6adefb6f4680658d1e43bac9c9 (patch) | |
tree | b4d7d75fa9a1a34ffabd26332dc22083d6f6ef6c | |
parent | bcea308175748339b872cc50972e0a31c1999c64 (diff) | |
download | linux-3385f9dd64d44f6adefb6f4680658d1e43bac9c9.tar.xz |
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 <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c index 7d4974b..3dfce43 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; |