diff options
| author | Ben Goz <ben.goz@amd.com> | 2015-01-03 15:12:34 -0500 |
|---|---|---|
| committer | Oded Gabbay <oded.gabbay@amd.com> | 2015-01-09 15:26:06 -0500 |
| commit | 85dfaef34179a6449ebce34a1a9f1c032c3e1b88 (patch) | |
| tree | a291a13b9509f8579826bca9aa21ff708e357054 /drivers/gpu/drm/amd | |
| parent | 3385f9dd64d44f6adefb6f4680658d1e43bac9c9 (diff) | |
drm/amdkfd: Pass queue type to pqm_create_queue()
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>
Diffstat (limited to 'drivers/gpu/drm/amd')
| -rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c index 3dfce4336eed..4c0b1e42e405 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | |||
| @@ -260,8 +260,8 @@ static long kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p, | |||
| 260 | p->pasid, | 260 | p->pasid, |
| 261 | dev->id); | 261 | dev->id); |
| 262 | 262 | ||
| 263 | err = pqm_create_queue(&p->pqm, dev, filep, &q_properties, 0, | 263 | err = pqm_create_queue(&p->pqm, dev, filep, &q_properties, |
| 264 | KFD_QUEUE_TYPE_COMPUTE, &queue_id); | 264 | 0, q_properties.type, &queue_id); |
| 265 | if (err != 0) | 265 | if (err != 0) |
| 266 | goto err_create_queue; | 266 | goto err_create_queue; |
| 267 | 267 | ||
