@@ -41,7 +41,7 @@ static enum drm_gpu_sched_stat amdgpu_job_timedout(struct drm_sched_job *s_job)
41
41
int r ;
42
42
43
43
if (!drm_dev_enter (adev_to_drm (adev ), & idx )) {
44
- DRM_INFO ( "%s - device unplugged skipping recovery on scheduler:%s" ,
44
+ dev_info ( adev -> dev , "%s - device unplugged skipping recovery on scheduler:%s" ,
45
45
__func__ , s_job -> sched -> name );
46
46
47
47
/* Effectively the job is aborted as the device is gone */
@@ -53,19 +53,20 @@ static enum drm_gpu_sched_stat amdgpu_job_timedout(struct drm_sched_job *s_job)
53
53
54
54
if (amdgpu_gpu_recovery &&
55
55
amdgpu_ring_soft_recovery (ring , job -> vmid , s_job -> s_fence -> parent )) {
56
- DRM_ERROR ( "ring %s timeout, but soft recovered\n" ,
57
- s_job -> sched -> name );
56
+ dev_err ( adev -> dev , "ring %s timeout, but soft recovered\n" ,
57
+ s_job -> sched -> name );
58
58
goto exit ;
59
59
}
60
60
61
- DRM_ERROR ( "ring %s timeout, signaled seq=%u, emitted seq=%u\n" ,
62
- job -> base .sched -> name , atomic_read (& ring -> fence_drv .last_seq ),
63
- ring -> fence_drv .sync_seq );
61
+ dev_err ( adev -> dev , "ring %s timeout, signaled seq=%u, emitted seq=%u\n" ,
62
+ job -> base .sched -> name , atomic_read (& ring -> fence_drv .last_seq ),
63
+ ring -> fence_drv .sync_seq );
64
64
65
65
ti = amdgpu_vm_get_task_info_pasid (ring -> adev , job -> pasid );
66
66
if (ti ) {
67
- DRM_ERROR ("Process information: process %s pid %d thread %s pid %d\n" ,
68
- ti -> process_name , ti -> tgid , ti -> task_name , ti -> pid );
67
+ dev_err (adev -> dev ,
68
+ "Process information: process %s pid %d thread %s pid %d\n" ,
69
+ ti -> process_name , ti -> tgid , ti -> task_name , ti -> pid );
69
70
amdgpu_vm_put_task_info (ti );
70
71
}
71
72
@@ -82,7 +83,7 @@ static enum drm_gpu_sched_stat amdgpu_job_timedout(struct drm_sched_job *s_job)
82
83
83
84
r = amdgpu_device_gpu_recover (ring -> adev , job , & reset_context );
84
85
if (r )
85
- DRM_ERROR ( "GPU Recovery Failed: %d\n" , r );
86
+ dev_err ( adev -> dev , "GPU Recovery Failed: %d\n" , r );
86
87
} else {
87
88
drm_sched_suspend_timeout (& ring -> sched );
88
89
if (amdgpu_sriov_vf (adev ))
@@ -274,7 +275,7 @@ amdgpu_job_prepare_job(struct drm_sched_job *sched_job,
274
275
while (!fence && job -> vm && !job -> vmid ) {
275
276
r = amdgpu_vmid_grab (job -> vm , ring , job , & fence );
276
277
if (r ) {
277
- DRM_ERROR ( "Error getting VM ID (%d)\n" , r );
278
+ dev_err ( ring -> adev -> dev , "Error getting VM ID (%d)\n" , r );
278
279
goto error ;
279
280
}
280
281
}
0 commit comments