aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-10-05 06:38:21 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-10-25 14:38:34 -0400
commit66f3b2d527154bd258a57c8815004b5964aa1cf5 (patch)
tree3605fdfd84c58177b7195f5f6677e25b5cf0fa02 /drivers/gpu
parentec9aaaff66668217c0c5634d062b350429d8cfd2 (diff)
drm/amdgpu: pad gfx and compute rings to 256 dw
The same as on windows to avoid further problems with CE/DE command submission overlaps. 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')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c4
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c4
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
index 40abb6b81c09..e3be5bd7ec50 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
@@ -2896,7 +2896,7 @@ static int gfx_v6_0_sw_init(void *handle)
2896 ring->ring_obj = NULL; 2896 ring->ring_obj = NULL;
2897 sprintf(ring->name, "gfx"); 2897 sprintf(ring->name, "gfx");
2898 r = amdgpu_ring_init(adev, ring, 1024, 2898 r = amdgpu_ring_init(adev, ring, 1024,
2899 0x80000000, 0xf, 2899 0x80000000, 0xff,
2900 &adev->gfx.eop_irq, AMDGPU_CP_IRQ_GFX_EOP, 2900 &adev->gfx.eop_irq, AMDGPU_CP_IRQ_GFX_EOP,
2901 AMDGPU_RING_TYPE_GFX); 2901 AMDGPU_RING_TYPE_GFX);
2902 if (r) 2902 if (r)
@@ -2920,7 +2920,7 @@ static int gfx_v6_0_sw_init(void *handle)
2920 sprintf(ring->name, "comp %d.%d.%d", ring->me, ring->pipe, ring->queue); 2920 sprintf(ring->name, "comp %d.%d.%d", ring->me, ring->pipe, ring->queue);
2921 irq_type = AMDGPU_CP_IRQ_COMPUTE_MEC1_PIPE0_EOP + ring->pipe; 2921 irq_type = AMDGPU_CP_IRQ_COMPUTE_MEC1_PIPE0_EOP + ring->pipe;
2922 r = amdgpu_ring_init(adev, ring, 1024, 2922 r = amdgpu_ring_init(adev, ring, 1024,
2923 0x80000000, 0xf, 2923 0x80000000, 0xff,
2924 &adev->gfx.eop_irq, irq_type, 2924 &adev->gfx.eop_irq, irq_type,
2925 AMDGPU_RING_TYPE_COMPUTE); 2925 AMDGPU_RING_TYPE_COMPUTE);
2926 if (r) 2926 if (r)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
index b2cf1290c1cf..e239e1db3ab0 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
@@ -4646,7 +4646,7 @@ static int gfx_v7_0_sw_init(void *handle)
4646 ring->ring_obj = NULL; 4646 ring->ring_obj = NULL;
4647 sprintf(ring->name, "gfx"); 4647 sprintf(ring->name, "gfx");
4648 r = amdgpu_ring_init(adev, ring, 1024, 4648 r = amdgpu_ring_init(adev, ring, 1024,
4649 PACKET3(PACKET3_NOP, 0x3FFF), 0xf, 4649 PACKET3(PACKET3_NOP, 0x3FFF), 0xff,
4650 &adev->gfx.eop_irq, AMDGPU_CP_IRQ_GFX_EOP, 4650 &adev->gfx.eop_irq, AMDGPU_CP_IRQ_GFX_EOP,
4651 AMDGPU_RING_TYPE_GFX); 4651 AMDGPU_RING_TYPE_GFX);
4652 if (r) 4652 if (r)
@@ -4673,7 +4673,7 @@ static int gfx_v7_0_sw_init(void *handle)
4673 irq_type = AMDGPU_CP_IRQ_COMPUTE_MEC1_PIPE0_EOP + ring->pipe; 4673 irq_type = AMDGPU_CP_IRQ_COMPUTE_MEC1_PIPE0_EOP + ring->pipe;
4674 /* type-2 packets are deprecated on MEC, use type-3 instead */ 4674 /* type-2 packets are deprecated on MEC, use type-3 instead */
4675 r = amdgpu_ring_init(adev, ring, 1024, 4675 r = amdgpu_ring_init(adev, ring, 1024,
4676 PACKET3(PACKET3_NOP, 0x3FFF), 0xf, 4676 PACKET3(PACKET3_NOP, 0x3FFF), 0xff,
4677 &adev->gfx.eop_irq, irq_type, 4677 &adev->gfx.eop_irq, irq_type,
4678 AMDGPU_RING_TYPE_COMPUTE); 4678 AMDGPU_RING_TYPE_COMPUTE);
4679 if (r) 4679 if (r)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 8dc8f576d2c7..8efcc8d2ad60 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@ -2035,7 +2035,7 @@ static int gfx_v8_0_sw_init(void *handle)
2035 } 2035 }
2036 2036
2037 r = amdgpu_ring_init(adev, ring, 1024, 2037 r = amdgpu_ring_init(adev, ring, 1024,
2038 PACKET3(PACKET3_NOP, 0x3FFF), 0xf, 2038 PACKET3(PACKET3_NOP, 0x3FFF), 0xff,
2039 &adev->gfx.eop_irq, AMDGPU_CP_IRQ_GFX_EOP, 2039 &adev->gfx.eop_irq, AMDGPU_CP_IRQ_GFX_EOP,
2040 AMDGPU_RING_TYPE_GFX); 2040 AMDGPU_RING_TYPE_GFX);
2041 if (r) 2041 if (r)
@@ -2062,7 +2062,7 @@ static int gfx_v8_0_sw_init(void *handle)
2062 irq_type = AMDGPU_CP_IRQ_COMPUTE_MEC1_PIPE0_EOP + ring->pipe; 2062 irq_type = AMDGPU_CP_IRQ_COMPUTE_MEC1_PIPE0_EOP + ring->pipe;
2063 /* type-2 packets are deprecated on MEC, use type-3 instead */ 2063 /* type-2 packets are deprecated on MEC, use type-3 instead */
2064 r = amdgpu_ring_init(adev, ring, 1024, 2064 r = amdgpu_ring_init(adev, ring, 1024,
2065 PACKET3(PACKET3_NOP, 0x3FFF), 0xf, 2065 PACKET3(PACKET3_NOP, 0x3FFF), 0xff,
2066 &adev->gfx.eop_irq, irq_type, 2066 &adev->gfx.eop_irq, irq_type,
2067 AMDGPU_RING_TYPE_COMPUTE); 2067 AMDGPU_RING_TYPE_COMPUTE);
2068 if (r) 2068 if (r)