mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm: amdgpu: Create amdgpu_vm_print_task_info()
To avoid repetitive code in amdgpu, create a function that prints the content of struct amdgpu_task_info. Reviewed-by: Christian König <christian.koenig@amd.com> Link: https://lore.kernel.org/r/20250617124949.2151549-3-andrealmeid@igalia.com Signed-off-by: André Almeida <andrealmeid@igalia.com>
This commit is contained in:
@@ -124,9 +124,7 @@ static enum drm_gpu_sched_stat amdgpu_job_timedout(struct drm_sched_job *s_job)
|
||||
|
||||
ti = amdgpu_vm_get_task_info_pasid(ring->adev, job->pasid);
|
||||
if (ti) {
|
||||
dev_err(adev->dev,
|
||||
"Process information: process %s pid %d thread %s pid %d\n",
|
||||
ti->process_name, ti->tgid, ti->task_name, ti->pid);
|
||||
amdgpu_vm_print_task_info(adev, ti);
|
||||
amdgpu_vm_put_task_info(ti);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user