From a2a585437a52b6df6db7a247fd8bf86d459031d8 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 20 May 2024 04:53:54 +0000 Subject: [PATCH] drm/amdgpu: Refine IB schedule error logging From Lijo Lazar 1e2c28e74a823aa36821c5c68e7834ca7e4fbb9b in linux-6.6.y/6.6.31 4b18a91faf1752f9bd69a4ed3aed2c8f6e5b0528 in mainline linux --- sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c index 78476bc75b4..de9d7f3dc23 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c @@ -300,12 +300,15 @@ static struct dma_fence *amdgpu_job_run(struct drm_sched_job *sched_job) dma_fence_set_error(finished, -ECANCELED); if (finished->error < 0) { - DRM_INFO("Skip scheduling IBs!\n"); + dev_dbg(adev->dev, "Skip scheduling IBs in ring(%s)", + ring->name); } else { r = amdgpu_ib_schedule(ring, job->num_ibs, job->ibs, job, &fence); if (r) - DRM_ERROR("Error scheduling IBs (%d)\n", r); + dev_err(adev->dev, + "Error scheduling IBs (%d) in ring(%s)", r, + ring->name); } job->job_run_counter++; -- 2.20.1