diff options
author | Dave Airlie <airlied@redhat.com> | 2009-12-16 00:58:36 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-16 00:58:36 -0500 |
commit | a3922105319120a48b97ebb42cb43acb5a7e4e73 (patch) | |
tree | d5d7c8a83093da09fce582818a503db672352551 /drivers/gpu | |
parent | ece84e04e99ff015fbf5071545ff2e643c9aea7f (diff) | |
parent | 6234077d6bad4db25d516743b6723c1b26505341 (diff) |
Merge remote branch 'korg/drm-radeon-next' into drm-linus
* korg/drm-radeon-next:
drm/radeon/kms: init pm on all chipsets
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/r300.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_pm.c | 7 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/rs400.c | 2 |
4 files changed, 11 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 824cc6480a06..44d599aded9a 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -3399,6 +3399,8 @@ int r100_init(struct radeon_device *rdev) | |||
3399 | r100_errata(rdev); | 3399 | r100_errata(rdev); |
3400 | /* Initialize clocks */ | 3400 | /* Initialize clocks */ |
3401 | radeon_get_clock_info(rdev->ddev); | 3401 | radeon_get_clock_info(rdev->ddev); |
3402 | /* Initialize power management */ | ||
3403 | radeon_pm_init(rdev); | ||
3402 | /* Get vram informations */ | 3404 | /* Get vram informations */ |
3403 | r100_vram_info(rdev); | 3405 | r100_vram_info(rdev); |
3404 | /* Initialize memory controller (also test AGP) */ | 3406 | /* Initialize memory controller (also test AGP) */ |
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index 83378c39d0e3..e47af526fc04 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c | |||
@@ -1324,6 +1324,8 @@ int r300_init(struct radeon_device *rdev) | |||
1324 | r300_errata(rdev); | 1324 | r300_errata(rdev); |
1325 | /* Initialize clocks */ | 1325 | /* Initialize clocks */ |
1326 | radeon_get_clock_info(rdev->ddev); | 1326 | radeon_get_clock_info(rdev->ddev); |
1327 | /* Initialize power management */ | ||
1328 | radeon_pm_init(rdev); | ||
1327 | /* Get vram informations */ | 1329 | /* Get vram informations */ |
1328 | r300_vram_info(rdev); | 1330 | r300_vram_info(rdev); |
1329 | /* Initialize memory controller (also test AGP) */ | 1331 | /* Initialize memory controller (also test AGP) */ |
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c index 34b08d307c81..8bce64cdc320 100644 --- a/drivers/gpu/drm/radeon/radeon_pm.c +++ b/drivers/gpu/drm/radeon/radeon_pm.c | |||
@@ -44,8 +44,11 @@ static int radeon_debugfs_pm_info(struct seq_file *m, void *data) | |||
44 | struct drm_device *dev = node->minor->dev; | 44 | struct drm_device *dev = node->minor->dev; |
45 | struct radeon_device *rdev = dev->dev_private; | 45 | struct radeon_device *rdev = dev->dev_private; |
46 | 46 | ||
47 | seq_printf(m, "engine clock: %u0 kHz\n", radeon_get_engine_clock(rdev)); | 47 | seq_printf(m, "default engine clock: %u0 kHz\n", rdev->clock.default_sclk); |
48 | seq_printf(m, "memory clock: %u0 kHz\n", radeon_get_memory_clock(rdev)); | 48 | seq_printf(m, "current engine clock: %u0 kHz\n", radeon_get_engine_clock(rdev)); |
49 | seq_printf(m, "default memory clock: %u0 kHz\n", rdev->clock.default_mclk); | ||
50 | if (rdev->asic->get_memory_clock) | ||
51 | seq_printf(m, "current memory clock: %u0 kHz\n", radeon_get_memory_clock(rdev)); | ||
49 | 52 | ||
50 | return 0; | 53 | return 0; |
51 | } | 54 | } |
diff --git a/drivers/gpu/drm/radeon/rs400.c b/drivers/gpu/drm/radeon/rs400.c index c1fcdddb6be6..368415df5f3a 100644 --- a/drivers/gpu/drm/radeon/rs400.c +++ b/drivers/gpu/drm/radeon/rs400.c | |||
@@ -497,6 +497,8 @@ int rs400_init(struct radeon_device *rdev) | |||
497 | 497 | ||
498 | /* Initialize clocks */ | 498 | /* Initialize clocks */ |
499 | radeon_get_clock_info(rdev->ddev); | 499 | radeon_get_clock_info(rdev->ddev); |
500 | /* Initialize power management */ | ||
501 | radeon_pm_init(rdev); | ||
500 | /* Get vram informations */ | 502 | /* Get vram informations */ |
501 | rs400_vram_info(rdev); | 503 | rs400_vram_info(rdev); |
502 | /* Initialize memory controller (also test AGP) */ | 504 | /* Initialize memory controller (also test AGP) */ |