diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2009-12-15 15:46:58 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-16 00:56:15 -0500 |
commit | 6234077d6bad4db25d516743b6723c1b26505341 (patch) | |
tree | fc7c311656d98ae1917fd58bc08f3c7d64c02cde | |
parent | dafc3bd515d6079406986f7748b48adb3c7170f2 (diff) |
drm/radeon/kms: init pm on all chipsets
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-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) */ |