aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/r600.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2009-09-18 00:16:38 -0400
committerDave Airlie <airlied@redhat.com>2009-09-18 02:13:11 -0400
commit698443d9ec1a33eff65b27b9514e06998bf57eb3 (patch)
treec7fed660677470060168d8ab91b67bd6eeae5c4d /drivers/gpu/drm/radeon/r600.c
parent5e6dde7ec2e72f49ff749204efc03a59478d7d34 (diff)
drm/radeon/kms: disable VGA rendering engine before taking over VRAM
Before we use any of VRAM, we need to disable the VGA rendering engine, this render text mode into a graphical framebuffer for scanout, however it does this on vblank, and can end up overwriting the GART table and r600 shader objects. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600.c')
-rw-r--r--drivers/gpu/drm/radeon/r600.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
index 1e1cab5ef1e4..aafdb8edc11d 100644
--- a/drivers/gpu/drm/radeon/r600.c
+++ b/drivers/gpu/drm/radeon/r600.c
@@ -340,6 +340,10 @@ static void r600_mc_resume(struct radeon_device *rdev)
340 WREG32(D1VGA_CONTROL, d1vga_control); 340 WREG32(D1VGA_CONTROL, d1vga_control);
341 WREG32(D2VGA_CONTROL, d2vga_control); 341 WREG32(D2VGA_CONTROL, d2vga_control);
342 WREG32(VGA_RENDER_CONTROL, vga_render_control); 342 WREG32(VGA_RENDER_CONTROL, vga_render_control);
343
344 /* we need to own VRAM, so turn off the VGA renderer here
345 * to stop it overwriting our objects */
346 radeon_avivo_vga_render_disable(rdev);
343} 347}
344 348
345int r600_mc_init(struct radeon_device *rdev) 349int r600_mc_init(struct radeon_device *rdev)