Skip to content

Commit 4b18a91

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Refine IB schedule error logging
Downgrade to debug information when IBs are skipped. Also, use dev_* to identify the device. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Asad Kamal <asad.kamal@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 65ff809 commit 4b18a91

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_job.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,15 @@ static struct dma_fence *amdgpu_job_run(struct drm_sched_job *sched_job)
304304
dma_fence_set_error(finished, -ECANCELED);
305305

306306
if (finished->error < 0) {
307-
DRM_INFO("Skip scheduling IBs!\n");
307+
dev_dbg(adev->dev, "Skip scheduling IBs in ring(%s)",
308+
ring->name);
308309
} else {
309310
r = amdgpu_ib_schedule(ring, job->num_ibs, job->ibs, job,
310311
&fence);
311312
if (r)
312-
DRM_ERROR("Error scheduling IBs (%d)\n", r);
313+
dev_err(adev->dev,
314+
"Error scheduling IBs (%d) in ring(%s)", r,
315+
ring->name);
313316
}
314317

315318
job->job_run_counter++;

0 commit comments

Comments
 (0)