Commit 1e5ec956 authored by Oded Gabbay's avatar Oded Gabbay

drm/amdkfd: allow unregister process with queues

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: default avatarBen Goz <ben.goz@amd.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Cc: stable@vger.kernel.org
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5ebe6afa
...@@ -430,9 +430,10 @@ static int unregister_process_nocpsch(struct device_queue_manager *dqm, ...@@ -430,9 +430,10 @@ static int unregister_process_nocpsch(struct device_queue_manager *dqm,
BUG_ON(!dqm || !qpd); 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; retval = 0;
mutex_lock(&dqm->lock); mutex_lock(&dqm->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment