drm/amdgpu: reduce the ring size for SDMA
authorChristian König <christian.koenig@amd.com>
Wed, 13 Apr 2016 08:30:13 +0000 (10:30 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2016 00:20:58 +0000 (20:20 -0400)
Those are way too large.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c

index b9a6070da1ef4a9f4d3893912cc15887015b9c81..3edf26acd65ba9fa846ad1394e11df3ff6f3240f 100644 (file)
@@ -976,7 +976,7 @@ static int cik_sdma_sw_init(void *handle)
                ring = &adev->sdma.instance[i].ring;
                ring->ring_obj = NULL;
                sprintf(ring->name, "sdma%d", i);
-               r = amdgpu_ring_init(adev, ring, 32 * 1024,
+               r = amdgpu_ring_init(adev, ring, 1024,
                                     SDMA_PACKET(SDMA_OPCODE_NOP, 0, 0), 0xf,
                                     &adev->sdma.trap_irq,
                                     (i == 0) ?
index 0f1282790c43364c739dfc9d5ca803fdc7014b76..6f2e2a49ed3ee1992be7148039c912c4a39897a8 100644 (file)
@@ -990,7 +990,7 @@ static int sdma_v2_4_sw_init(void *handle)
                ring->ring_obj = NULL;
                ring->use_doorbell = false;
                sprintf(ring->name, "sdma%d", i);
-               r = amdgpu_ring_init(adev, ring, 32 * 1024,
+               r = amdgpu_ring_init(adev, ring, 1024,
                                     SDMA_PKT_NOP_HEADER_OP(SDMA_OP_NOP), 0xf,
                                     &adev->sdma.trap_irq,
                                     (i == 0) ?
index 833d2658428fe6bf02f7758de5c27da0e76d0e4a..a78f13ea4d86273ada3f96a4280291eb06b13ad5 100644 (file)
@@ -1176,7 +1176,7 @@ static int sdma_v3_0_sw_init(void *handle)
                        AMDGPU_DOORBELL_sDMA_ENGINE0 : AMDGPU_DOORBELL_sDMA_ENGINE1;
 
                sprintf(ring->name, "sdma%d", i);
-               r = amdgpu_ring_init(adev, ring, 256 * 1024,
+               r = amdgpu_ring_init(adev, ring, 1024,
                                     SDMA_PKT_NOP_HEADER_OP(SDMA_OP_NOP), 0xf,
                                     &adev->sdma.trap_irq,
                                     (i == 0) ?