diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/rs400.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rs400.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/rs400.c b/drivers/gpu/drm/radeon/rs400.c index 626d51891ee9..1a41cb268b72 100644 --- a/drivers/gpu/drm/radeon/rs400.c +++ b/drivers/gpu/drm/radeon/rs400.c | |||
@@ -26,8 +26,10 @@ | |||
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include <linux/seq_file.h> | 28 | #include <linux/seq_file.h> |
29 | #include <linux/slab.h> | ||
29 | #include <drm/drmP.h> | 30 | #include <drm/drmP.h> |
30 | #include "radeon.h" | 31 | #include "radeon.h" |
32 | #include "radeon_asic.h" | ||
31 | #include "rs400d.h" | 33 | #include "rs400d.h" |
32 | 34 | ||
33 | /* This files gather functions specifics to : rs400,rs480 */ | 35 | /* This files gather functions specifics to : rs400,rs480 */ |
@@ -202,9 +204,9 @@ void rs400_gart_disable(struct radeon_device *rdev) | |||
202 | 204 | ||
203 | void rs400_gart_fini(struct radeon_device *rdev) | 205 | void rs400_gart_fini(struct radeon_device *rdev) |
204 | { | 206 | { |
207 | radeon_gart_fini(rdev); | ||
205 | rs400_gart_disable(rdev); | 208 | rs400_gart_disable(rdev); |
206 | radeon_gart_table_ram_free(rdev); | 209 | radeon_gart_table_ram_free(rdev); |
207 | radeon_gart_fini(rdev); | ||
208 | } | 210 | } |
209 | 211 | ||
210 | int rs400_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr) | 212 | int rs400_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr) |
@@ -264,6 +266,7 @@ void rs400_mc_init(struct radeon_device *rdev) | |||
264 | base = (RREG32(RADEON_NB_TOM) & 0xffff) << 16; | 266 | base = (RREG32(RADEON_NB_TOM) & 0xffff) << 16; |
265 | radeon_vram_location(rdev, &rdev->mc, base); | 267 | radeon_vram_location(rdev, &rdev->mc, base); |
266 | radeon_gtt_location(rdev, &rdev->mc); | 268 | radeon_gtt_location(rdev, &rdev->mc); |
269 | radeon_update_bandwidth_info(rdev); | ||
267 | } | 270 | } |
268 | 271 | ||
269 | uint32_t rs400_mc_rreg(struct radeon_device *rdev, uint32_t reg) | 272 | uint32_t rs400_mc_rreg(struct radeon_device *rdev, uint32_t reg) |
@@ -388,6 +391,8 @@ static int rs400_startup(struct radeon_device *rdev) | |||
388 | { | 391 | { |
389 | int r; | 392 | int r; |
390 | 393 | ||
394 | r100_set_common_regs(rdev); | ||
395 | |||
391 | rs400_mc_program(rdev); | 396 | rs400_mc_program(rdev); |
392 | /* Resume clock */ | 397 | /* Resume clock */ |
393 | r300_clock_startup(rdev); | 398 | r300_clock_startup(rdev); |
@@ -453,6 +458,7 @@ int rs400_suspend(struct radeon_device *rdev) | |||
453 | 458 | ||
454 | void rs400_fini(struct radeon_device *rdev) | 459 | void rs400_fini(struct radeon_device *rdev) |
455 | { | 460 | { |
461 | radeon_pm_fini(rdev); | ||
456 | r100_cp_fini(rdev); | 462 | r100_cp_fini(rdev); |
457 | r100_wb_fini(rdev); | 463 | r100_wb_fini(rdev); |
458 | r100_ib_fini(rdev); | 464 | r100_ib_fini(rdev); |