drm/radeon: set correct CE ram size for CIK
authorJammy Zhou <Jammy.Zhou@amd.com>
Mon, 3 Nov 2014 13:58:20 +0000 (08:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Nov 2014 20:42:44 +0000 (15:42 -0500)
CE ram size is 32k/0k/0k for GFX/CS0/CS1 with CIK

Ported from amdgpu driver.

Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/cik.c

index 377afa504d2bd045cfdc5f2eed06599610c30920..af6c7c5461c1b5f249ca353ea2545e23dc56459c 100644 (file)
@@ -4313,8 +4313,8 @@ static int cik_cp_gfx_start(struct radeon_device *rdev)
        /* init the CE partitions.  CE only used for gfx on CIK */
        radeon_ring_write(ring, PACKET3(PACKET3_SET_BASE, 2));
        radeon_ring_write(ring, PACKET3_BASE_INDEX(CE_PARTITION_BASE));
-       radeon_ring_write(ring, 0xc000);
-       radeon_ring_write(ring, 0xc000);
+       radeon_ring_write(ring, 0x8000);
+       radeon_ring_write(ring, 0x8000);
 
        /* setup clear context state */
        radeon_ring_write(ring, PACKET3(PACKET3_PREAMBLE_CNTL, 0));