From: Oded Gabbay Date: Tue, 24 Feb 2015 08:51:59 +0000 (+0200) Subject: drm/amdkfd: add debug prints for process teardown X-Git-Tag: v4.1-rc1~69^2~22^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=94a1ee09235d404190ff82400a24595b6b2af771;p=karo-tx-linux.git drm/amdkfd: add debug prints for process teardown Signed-off-by: Oded Gabbay Reviewed-by: Alex Deucher --- 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) 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);