aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@amd.com>2015-02-24 03:51:59 -0500
committerOded Gabbay <oded.gabbay@amd.com>2015-03-25 08:02:05 -0400
commit94a1ee09235d404190ff82400a24595b6b2af771 (patch)
tree84f2369b1cfdae456bffc3cf6c12b85e2a029be7 /drivers/gpu/drm/amd/amdkfd
parent0d9200874c6cc9b3887f3474bbba638e43d696d0 (diff)
drm/amdkfd: add debug prints for process teardown
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_process.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
index a369c149d172..945d6226dc51 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
@@ -162,10 +162,16 @@ static void kfd_process_wq_release(struct work_struct *work)
162 162
163 p = my_work->p; 163 p = my_work->p;
164 164
165 pr_debug("Releasing process (pasid %d) in workqueue\n",
166 p->pasid);
167
165 mutex_lock(&p->mutex); 168 mutex_lock(&p->mutex);
166 169
167 list_for_each_entry_safe(pdd, temp, &p->per_device_data, 170 list_for_each_entry_safe(pdd, temp, &p->per_device_data,
168 per_device_list) { 171 per_device_list) {
172 pr_debug("Releasing pdd (topology id %d) for process (pasid %d) in workqueue\n",
173 pdd->dev->id, p->pasid);
174
169 amd_iommu_unbind_pasid(pdd->dev->pdev, p->pasid); 175 amd_iommu_unbind_pasid(pdd->dev->pdev, p->pasid);
170 list_del(&pdd->per_device_list); 176 list_del(&pdd->per_device_list);
171 177