drm/radeon/kms: init pm on all chipsets
authorRafał Miłecki <zajec5@gmail.com>
Tue, 15 Dec 2009 20:46:58 +0000 (21:46 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 16 Dec 2009 05:56:15 +0000 (15:56 +1000)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r300.c
drivers/gpu/drm/radeon/radeon_pm.c
drivers/gpu/drm/radeon/rs400.c

index 824cc6480a0654125aae84fc9f5286cde4f3e27b..44d599aded9a44e847d288ce580722f3a2ea6c87 100644 (file)
@@ -3399,6 +3399,8 @@ int r100_init(struct radeon_device *rdev)
        r100_errata(rdev);
        /* Initialize clocks */
        radeon_get_clock_info(rdev->ddev);
+       /* Initialize power management */
+       radeon_pm_init(rdev);
        /* Get vram informations */
        r100_vram_info(rdev);
        /* Initialize memory controller (also test AGP) */
index 83378c39d0e3abf207aa60e80f910f34c5fc0162..e47af526fc04fb705f26997d0e0e19b20daf67ee 100644 (file)
@@ -1324,6 +1324,8 @@ int r300_init(struct radeon_device *rdev)
        r300_errata(rdev);
        /* Initialize clocks */
        radeon_get_clock_info(rdev->ddev);
+       /* Initialize power management */
+       radeon_pm_init(rdev);
        /* Get vram informations */
        r300_vram_info(rdev);
        /* Initialize memory controller (also test AGP) */
index 34b08d307c814529251fb5e8d4694986f2ffbe86..8bce64cdc320f1028bd91231def13b45631de3e3 100644 (file)
@@ -44,8 +44,11 @@ static int radeon_debugfs_pm_info(struct seq_file *m, void *data)
        struct drm_device *dev = node->minor->dev;
        struct radeon_device *rdev = dev->dev_private;
 
-       seq_printf(m, "engine clock: %u0 kHz\n", radeon_get_engine_clock(rdev));
-       seq_printf(m, "memory clock: %u0 kHz\n", radeon_get_memory_clock(rdev));
+       seq_printf(m, "default engine clock: %u0 kHz\n", rdev->clock.default_sclk);
+       seq_printf(m, "current engine clock: %u0 kHz\n", radeon_get_engine_clock(rdev));
+       seq_printf(m, "default memory clock: %u0 kHz\n", rdev->clock.default_mclk);
+       if (rdev->asic->get_memory_clock)
+               seq_printf(m, "current memory clock: %u0 kHz\n", radeon_get_memory_clock(rdev));
 
        return 0;
 }
index c1fcdddb6be68e7b4aa0ad56b5050679efb41bff..368415df5f3abe954494e58f239708c1c5a1557b 100644 (file)
@@ -497,6 +497,8 @@ int rs400_init(struct radeon_device *rdev)
 
        /* Initialize clocks */
        radeon_get_clock_info(rdev->ddev);
+       /* Initialize power management */
+       radeon_pm_init(rdev);
        /* Get vram informations */
        rs400_vram_info(rdev);
        /* Initialize memory controller (also test AGP) */