aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/r600.c
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2009-10-01 12:02:14 -0400
committerDave Airlie <airlied@redhat.com>2009-10-01 19:34:09 -0400
commit75c8129893d78fd0cbe5c26580cadd6001d904fc (patch)
tree55290a1349f059d3775e62f98d21460ddf3a0956 /drivers/gpu/drm/radeon/r600.c
parenta3c1945aaf48a5893238d95139f202531994094d (diff)
drm/radeon/kms: Fix R600/RV770 disable acceleration path
When acceleration doesn't work we should free associated memory and stop GPU block responsible for hardware acceleration so we don't waste resource or let think one component of the driver that a GPU feature is working/running while it doesn't actualy work. Signed-off-by: Jerome Glisse <jglisse@redhat.com> 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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
index cf4be70c5041..e74e7a748b31 100644
--- a/drivers/gpu/drm/radeon/r600.c
+++ b/drivers/gpu/drm/radeon/r600.c
@@ -1605,6 +1605,11 @@ int r600_init(struct radeon_device *rdev)
1605 rdev->flags &= ~RADEON_IS_AGP; 1605 rdev->flags &= ~RADEON_IS_AGP;
1606 return r600_init(rdev); 1606 return r600_init(rdev);
1607 } 1607 }
1608 r600_suspend(rdev);
1609 r600_wb_fini(rdev);
1610 radeon_ib_pool_fini(rdev);
1611 radeon_ring_fini(rdev);
1612 r600_pcie_gart_fini(rdev);
1608 rdev->accel_working = false; 1613 rdev->accel_working = false;
1609 } 1614 }
1610 if (rdev->accel_working) { 1615 if (rdev->accel_working) {