aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2010-06-07 18:25:21 -0400
committerDave Airlie <airlied@redhat.com>2010-06-07 19:36:09 -0400
commit0fcbe9473ac9c53463a61c9c83db8293bee15d12 (patch)
tree711241858abd2ab3652bcbbe7b58674103129f05 /drivers
parenta081a9d6f566160bc4c08a85b74d817e983595ab (diff)
drm/radeon/kms: add trivial debugging for voltage
agd5f: rebased Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/radeon/evergreen.c1
-rw-r--r--drivers/gpu/drm/radeon/r600.c1
-rw-r--r--drivers/gpu/drm/radeon/radeon_pm.c2
-rw-r--r--drivers/gpu/drm/radeon/rv770.c1
4 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
index b2b7c11e447f..4b6623df3b96 100644
--- a/drivers/gpu/drm/radeon/evergreen.c
+++ b/drivers/gpu/drm/radeon/evergreen.c
@@ -50,6 +50,7 @@ void evergreen_pm_misc(struct radeon_device *rdev)
50 if (voltage->voltage != rdev->pm.current_vddc) { 50 if (voltage->voltage != rdev->pm.current_vddc) {
51 radeon_atom_set_voltage(rdev, voltage->voltage); 51 radeon_atom_set_voltage(rdev, voltage->voltage);
52 rdev->pm.current_vddc = voltage->voltage; 52 rdev->pm.current_vddc = voltage->voltage;
53 DRM_DEBUG("Setting: v: %d\n", voltage->voltage);
53 } 54 }
54 } 55 }
55} 56}
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
index 7b5539100114..0e91871f45be 100644
--- a/drivers/gpu/drm/radeon/r600.c
+++ b/drivers/gpu/drm/radeon/r600.c
@@ -566,6 +566,7 @@ void r600_pm_misc(struct radeon_device *rdev)
566 if (voltage->voltage != rdev->pm.current_vddc) { 566 if (voltage->voltage != rdev->pm.current_vddc) {
567 radeon_atom_set_voltage(rdev, voltage->voltage); 567 radeon_atom_set_voltage(rdev, voltage->voltage);
568 rdev->pm.current_vddc = voltage->voltage; 568 rdev->pm.current_vddc = voltage->voltage;
569 DRM_DEBUG("Setting: v: %d\n", voltage->voltage);
569 } 570 }
570 } 571 }
571} 572}
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c
index f2e1c60afda5..19fb3652c7bd 100644
--- a/drivers/gpu/drm/radeon/radeon_pm.c
+++ b/drivers/gpu/drm/radeon/radeon_pm.c
@@ -699,6 +699,8 @@ static int radeon_debugfs_pm_info(struct seq_file *m, void *data)
699 seq_printf(m, "default memory clock: %u0 kHz\n", rdev->clock.default_mclk); 699 seq_printf(m, "default memory clock: %u0 kHz\n", rdev->clock.default_mclk);
700 if (rdev->asic->get_memory_clock) 700 if (rdev->asic->get_memory_clock)
701 seq_printf(m, "current memory clock: %u0 kHz\n", radeon_get_memory_clock(rdev)); 701 seq_printf(m, "current memory clock: %u0 kHz\n", radeon_get_memory_clock(rdev));
702 if (rdev->pm.current_vddc)
703 seq_printf(m, "voltage: %u mV\n", rdev->pm.current_vddc);
702 if (rdev->asic->get_pcie_lanes) 704 if (rdev->asic->get_pcie_lanes)
703 seq_printf(m, "PCIE lanes: %d\n", radeon_get_pcie_lanes(rdev)); 705 seq_printf(m, "PCIE lanes: %d\n", radeon_get_pcie_lanes(rdev));
704 706
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c
index e8fb8b66e002..cec536c222c5 100644
--- a/drivers/gpu/drm/radeon/rv770.c
+++ b/drivers/gpu/drm/radeon/rv770.c
@@ -53,6 +53,7 @@ void rv770_pm_misc(struct radeon_device *rdev)
53 if (voltage->voltage != rdev->pm.current_vddc) { 53 if (voltage->voltage != rdev->pm.current_vddc) {
54 radeon_atom_set_voltage(rdev, voltage->voltage); 54 radeon_atom_set_voltage(rdev, voltage->voltage);
55 rdev->pm.current_vddc = voltage->voltage; 55 rdev->pm.current_vddc = voltage->voltage;
56 DRM_DEBUG("Setting: v: %d\n", voltage->voltage);
56 } 57 }
57 } 58 }
58} 59}