Skip to content

Commit

Permalink
drm/amdkfd: allow unregister process with queues
Browse files Browse the repository at this point in the history
Sometimes we might unregister process that have queues, because we couldn't
preempt the queues. Until now we blocked it with BUG_ON but instead just
print it as debug.

Reviewed-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Cc: stable@vger.kernel.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Oded Gabbay committed May 7, 2015
1 parent 5ebe6af commit 1e5ec95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,10 @@ static int unregister_process_nocpsch(struct device_queue_manager *dqm,

BUG_ON(!dqm || !qpd);

BUG_ON(!list_empty(&qpd->queues_list));
pr_debug("In func %s\n", __func__);

pr_debug("kfd: In func %s\n", __func__);
pr_debug("qpd->queues_list is %s\n",
list_empty(&qpd->queues_list) ? "empty" : "not empty");

retval = 0;
mutex_lock(&dqm->lock);
Expand Down

0 comments on commit 1e5ec95

Please sign in to comment.