Skip to content

Commit

Permalink
hsa/radeon: Fixing minor issues with kernel queues (DIQ)
Browse files Browse the repository at this point in the history
* re-execute runlist on kernel queues destruction.
* delete kernel queues from pqm's queues list on pqm unint

Signed-off-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
  • Loading branch information
Ben Goz authored and Oded Gabbay committed Jun 26, 2014
1 parent d710b23 commit 6019fed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions drivers/gpu/hsa/radeon/kfd_device_queue_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,10 @@ static void destroy_kernel_queue_cpsch(struct device_queue_manager *dqm, struct
{
BUG_ON(!dqm || !kq);

pr_debug("kfd: In %s\n", __func__);

dqm->destroy_queues(dqm);

mutex_lock(&dqm->lock);
list_del(&kq->list);
dqm->queue_count--;
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/hsa/radeon/kfd_process_queue_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ int pqm_destroy_queue(struct process_queue_manager *pqm, unsigned int qid)
if (retval != 0)
return retval;

list_del(&pqn->process_queue_list);
uninit_queue(pqn->q);
}

list_del(&pqn->process_queue_list);
kfree(pqn);
clear_bit(qid, pqm->queue_slot_bitmap);

Expand Down

0 comments on commit 6019fed

Please sign in to comment.