> -----Original Message----- > From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf > Of Tom St Denis > Sent: Friday, September 01, 2017 9:17 AM > To: amd-gfx at lists.freedesktop.org > Cc: StDenis, Tom > Subject: [PATCH] drm/amd/amdgpu: Support full range of GFX ring names > > Right now there's only one but the rest of the code is being > setup to support more so might as well fix this up too. > > 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/gfx_v9_0.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c > b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c > index 4942960b30c6..3548cc02f8d8 100644 > --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c > +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c > @@ -1330,7 +1330,10 @@ static int gfx_v9_0_sw_init(void *handle) > for (i = 0; i < adev->gfx.num_gfx_rings; i++) { > ring = &adev->gfx.gfx_ring[i]; > ring->ring_obj = NULL; > - sprintf(ring->name, "gfx"); > + if (!i) > + sprintf(ring->name, "gfx"); > + else > + sprintf(ring->name, "gfx_%d", i); > ring->use_doorbell = true; > ring->doorbell_index = AMDGPU_DOORBELL64_GFX_RING0 > << 1; > r = amdgpu_ring_init(adev, ring, 1024, > -- > 2.12.0 > > _______________________________________________ > amd-gfx mailing list > amd-gfx at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx