aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Goz <ben.goz@amd.com>2015-01-15 10:14:47 -0500
committerOded Gabbay <oded.gabbay@amd.com>2015-01-15 10:14:47 -0500
commitf046bfdf735794d5893963427eb54302b7940a86 (patch)
treec224cdbc519c14c7988501f6a18c1f53c860ed01
parent26bc420b59a38e4e6685a73345a0def461136dce (diff)
drm/amdkfd: PQM handle queue creation fault
If the first queue created was failed on DQM then PQM should unregister the process from DQM. Signed-off-by: Ben Goz <ben.goz@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
index 47526780d736..326d26881afd 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
@@ -241,7 +241,10 @@ int pqm_create_queue(struct process_queue_manager *pqm,
241err_create_queue: 241err_create_queue:
242 kfree(pqn); 242 kfree(pqn);
243err_allocate_pqn: 243err_allocate_pqn:
244 /* check if queues list is empty unregister process from device */
244 clear_bit(*qid, pqm->queue_slot_bitmap); 245 clear_bit(*qid, pqm->queue_slot_bitmap);
246 if (list_empty(&pqm->queues))
247 dev->dqm->unregister_process(dev->dqm, &pdd->qpd);
245 return retval; 248 return retval;
246} 249}
247 250