drm/amd/amdgpu: Print ring name in amdgpu_ib_schedule()
authorTom St Denis <tom.stdenis@amd.com>
Mon, 22 Aug 2016 14:54:28 +0000 (10:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Aug 2016 17:48:07 +0000 (13:48 -0400)
If the ring isn't ready lets print out which ring name
to help debugging.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c

index a31d7ef..f5810f7 100644 (file)
@@ -142,7 +142,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
        }
 
        if (!ring->ready) {
-               dev_err(adev->dev, "couldn't schedule ib\n");
+               dev_err(adev->dev, "couldn't schedule ib on ring <%s>\n", ring->name);
                return -EINVAL;
        }