summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/cik_sdma.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-04-12 16:26:34 +0200
committerAlex Deucher <alexander.deucher@amd.com>2016-05-04 20:20:50 -0400
commita3f1cf355e90e144f012cbb0472a6701dd832841 (patch)
treea72fe4438a199c0b2d5778bd31bfe189f2b261f6 /drivers/gpu/drm/amd/amdgpu/cik_sdma.c
parent9331b9ca813960ed05004821a771aa3a82db187c (diff)
downloadblackbird-obmc-linux-a3f1cf355e90e144f012cbb0472a6701dd832841.tar.gz
blackbird-obmc-linux-a3f1cf355e90e144f012cbb0472a6701dd832841.zip
drm/amdgpu: use max_dw in ring_init
Instead of specifying the total ring size calculate that from the maximum number of dw a submission can have and the number of concurrent submissions. This fixes UVD with 8 concurrent submissions or more. 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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik_sdma.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/cik_sdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c
index d3ac3298fba8..b9a6070da1ef 100644
--- a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c
+++ b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c
@@ -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, 256 * 1024,
+ r = amdgpu_ring_init(adev, ring, 32 * 1024,
SDMA_PACKET(SDMA_OPCODE_NOP, 0, 0), 0xf,
&adev->sdma.trap_irq,
(i == 0) ?
OpenPOWER on IntegriCloud