aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/rs400.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-04-04 22:37:28 -0400
committerTejun Heo <tj@kernel.org>2010-04-04 22:37:28 -0400
commit336f5899d287f06d8329e208fc14ce50f7ec9698 (patch)
tree9b762d450d5eb248a6ff8317badb7e223d93ed58 /drivers/gpu/drm/radeon/rs400.c
parenta4ab2773205e8b94c18625455f85e3b6bb9d7ad6 (diff)
parentdb217dece3003df0841bacf9556b5c06aa097dae (diff)
Merge branch 'master' into export-slabh
Diffstat (limited to 'drivers/gpu/drm/radeon/rs400.c')
-rw-r--r--drivers/gpu/drm/radeon/rs400.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/rs400.c b/drivers/gpu/drm/radeon/rs400.c
index 273c7dcd454..1a41cb268b7 100644
--- a/drivers/gpu/drm/radeon/rs400.c
+++ b/drivers/gpu/drm/radeon/rs400.c
@@ -29,6 +29,7 @@
29#include <linux/slab.h> 29#include <linux/slab.h>
30#include <drm/drmP.h> 30#include <drm/drmP.h>
31#include "radeon.h" 31#include "radeon.h"
32#include "radeon_asic.h"
32#include "rs400d.h" 33#include "rs400d.h"
33 34
34/* This files gather functions specifics to : rs400,rs480 */ 35/* This files gather functions specifics to : rs400,rs480 */
@@ -203,9 +204,9 @@ void rs400_gart_disable(struct radeon_device *rdev)
203 204
204void rs400_gart_fini(struct radeon_device *rdev) 205void rs400_gart_fini(struct radeon_device *rdev)
205{ 206{
207 radeon_gart_fini(rdev);
206 rs400_gart_disable(rdev); 208 rs400_gart_disable(rdev);
207 radeon_gart_table_ram_free(rdev); 209 radeon_gart_table_ram_free(rdev);
208 radeon_gart_fini(rdev);
209} 210}
210 211
211int rs400_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr) 212int rs400_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr)
@@ -265,6 +266,7 @@ void rs400_mc_init(struct radeon_device *rdev)
265 base = (RREG32(RADEON_NB_TOM) & 0xffff) << 16; 266 base = (RREG32(RADEON_NB_TOM) & 0xffff) << 16;
266 radeon_vram_location(rdev, &rdev->mc, base); 267 radeon_vram_location(rdev, &rdev->mc, base);
267 radeon_gtt_location(rdev, &rdev->mc); 268 radeon_gtt_location(rdev, &rdev->mc);
269 radeon_update_bandwidth_info(rdev);
268} 270}
269 271
270uint32_t rs400_mc_rreg(struct radeon_device *rdev, uint32_t reg) 272uint32_t rs400_mc_rreg(struct radeon_device *rdev, uint32_t reg)
@@ -389,6 +391,8 @@ static int rs400_startup(struct radeon_device *rdev)
389{ 391{
390 int r; 392 int r;
391 393
394 r100_set_common_regs(rdev);
395
392 rs400_mc_program(rdev); 396 rs400_mc_program(rdev);
393 /* Resume clock */ 397 /* Resume clock */
394 r300_clock_startup(rdev); 398 r300_clock_startup(rdev);
@@ -454,6 +458,7 @@ int rs400_suspend(struct radeon_device *rdev)
454 458
455void rs400_fini(struct radeon_device *rdev) 459void rs400_fini(struct radeon_device *rdev)
456{ 460{
461 radeon_pm_fini(rdev);
457 r100_cp_fini(rdev); 462 r100_cp_fini(rdev);
458 r100_wb_fini(rdev); 463 r100_wb_fini(rdev);
459 r100_ib_fini(rdev); 464 r100_ib_fini(rdev);