projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcea308
)
drm/amdkfd: Identify SDMA queue in create queue ioctl
author
Ben Goz
<
[email protected]
>
Sat, 3 Jan 2015 20:12:33 +0000
(22:12 +0200)
committer
Oded Gabbay
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Oded Gabbay <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
index 7d4974b83af7821649c7eff1f75ee4d0b05758e6..3dfce4336eedc6dc299d8b7a169b886e37f273c6 100644
(file)
--- 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;