Skip to content

Commit 1e5ec95

Browse files
committed
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: 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>
1 parent 5ebe6af commit 1e5ec95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,10 @@ static int unregister_process_nocpsch(struct device_queue_manager *dqm,
430430

431431
BUG_ON(!dqm || !qpd);
432432

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

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

437438
retval = 0;
438439
mutex_lock(&dqm->lock);

0 commit comments

Comments
 (0)