[PATCH 5/6] drm/amdgpu/si: reduce dma ring size

Alex Deucher alexdeucher at gmail.com
Fri May 20 21:50:38 UTC 2016


This was already done for other asics.  We don't need
a very big ring with the scheduler.

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/si_dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/si_dma.c b/drivers/gpu/drm/amd/amdgpu/si_dma.c
index 4dad157..5dc10a7 100644
--- a/drivers/gpu/drm/amd/amdgpu/si_dma.c
+++ b/drivers/gpu/drm/amd/amdgpu/si_dma.c
@@ -573,7 +573,7 @@ static int si_dma_sw_init(void *handle)
 		ring->ring_obj = NULL;
 		ring->use_doorbell = false;
 		sprintf(ring->name, "sdma%d", i);
-		r = amdgpu_ring_init(adev, ring, 64 * 1024,
+		r = amdgpu_ring_init(adev, ring, 1024,
 				     DMA_PACKET(DMA_PACKET_NOP, 0, 0, 0, 0), 0xf,
 				     &adev->sdma.trap_irq,
 				     (i == 0) ?
-- 
2.5.5



More information about the dri-devel mailing list