diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-02-02 12:37:41 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-02-03 18:40:52 -0500 |
commit | 18ff84da29b3f0c073e0ce6e341663cc6bcb0ab7 (patch) | |
tree | e6cffd18bebbd2069b2f78854306bace783de1b0 /drivers/gpu/drm | |
parent | 129205910f882e25c728e0e415743f8451a4c470 (diff) |
drm/radeon/kms/evergreen: always set certain VGT regs at CP init
These should be handled by the clear_state setup, but set them
directly as well just to be sure.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 0f9775178c24..ffdc8332b76e 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c | |||
@@ -1248,7 +1248,7 @@ static int evergreen_cp_start(struct radeon_device *rdev) | |||
1248 | cp_me = 0xff; | 1248 | cp_me = 0xff; |
1249 | WREG32(CP_ME_CNTL, cp_me); | 1249 | WREG32(CP_ME_CNTL, cp_me); |
1250 | 1250 | ||
1251 | r = radeon_ring_lock(rdev, evergreen_default_size + 15); | 1251 | r = radeon_ring_lock(rdev, evergreen_default_size + 19); |
1252 | if (r) { | 1252 | if (r) { |
1253 | DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r); | 1253 | DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r); |
1254 | return r; | 1254 | return r; |
@@ -1281,6 +1281,11 @@ static int evergreen_cp_start(struct radeon_device *rdev) | |||
1281 | radeon_ring_write(rdev, 0xffffffff); | 1281 | radeon_ring_write(rdev, 0xffffffff); |
1282 | radeon_ring_write(rdev, 0xffffffff); | 1282 | radeon_ring_write(rdev, 0xffffffff); |
1283 | 1283 | ||
1284 | radeon_ring_write(rdev, 0xc0026900); | ||
1285 | radeon_ring_write(rdev, 0x00000316); | ||
1286 | radeon_ring_write(rdev, 0x0000000e); /* VGT_VERTEX_REUSE_BLOCK_CNTL */ | ||
1287 | radeon_ring_write(rdev, 0x00000010); /* */ | ||
1288 | |||
1284 | radeon_ring_unlock_commit(rdev); | 1289 | radeon_ring_unlock_commit(rdev); |
1285 | 1290 | ||
1286 | return 0; | 1291 | return 0; |