drm/amdkfd: allow unregister process with queues
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Signed-off-by Oded Gabbay <[email protected]>
--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +3 -2
@@ -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);
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Oded Gabbay
Sometimes we might unregister process that have queues, because we couldn't preempt the queues. Until now we blocked it with
BUG_ONbut instead just print it as debug.Reviewed-by Ben Goz <[email protected]>Signed-off-by Oded Gabbay <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 24 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +3
-3@@ -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); --1.9.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel