]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/amdgpu: Support full range of GFX ring names
authorTom St Denis <tom.stdenis@amd.com>
Fri, 1 Sep 2017 13:13:04 +0000 (09:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Sep 2017 16:50:53 +0000 (12:50 -0400)
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@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index a21182debb3d91d6a5a95f9ebc1753510abe7936..2ab049c45b1d830d425981dc6f6e0f26bcdb69eb 100644 (file)
@@ -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,