[PATCH] drm/amd/amdgpu: Print ring name in amdgpu_ib_schedule()

Deucher, Alexander Alexander.Deucher at amd.com
Tue Aug 23 14:47:25 UTC 2016


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Tom St Denis
> Sent: Monday, August 22, 2016 11:01 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: StDenis, Tom
> Subject: [PATCH] drm/amd/amdgpu: Print ring name in
> amdgpu_ib_schedule()
> 
> If the ring isn't ready lets print out which ring name
> to help debugging.
> 
> Signed-off-by: Tom St Denis <tom.stdenis at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
> index a31d7ef3032c..f5810f700668 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
> @@ -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;
>  	}
> 
> --
> 2.9.2
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list