Skip to content

Commit

Permalink
drm/amdkfd: add debug prints for process teardown
Browse files Browse the repository at this point in the history
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Oded Gabbay committed Mar 25, 2015
1 parent 0d92008 commit 94a1ee0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/amd/amdkfd/kfd_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,16 @@ static void kfd_process_wq_release(struct work_struct *work)

p = my_work->p;

pr_debug("Releasing process (pasid %d) in workqueue\n",
p->pasid);

mutex_lock(&p->mutex);

list_for_each_entry_safe(pdd, temp, &p->per_device_data,
per_device_list) {
pr_debug("Releasing pdd (topology id %d) for process (pasid %d) in workqueue\n",
pdd->dev->id, p->pasid);

amd_iommu_unbind_pasid(pdd->dev->pdev, p->pasid);
list_del(&pdd->per_device_list);

Expand Down

0 comments on commit 94a1ee0

Please sign in to comment.