diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-06-20 19:00:31 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-06-21 01:38:25 +0200 |
commit | a377e187df725fe7e62d2cec59ec290c5a605d93 (patch) | |
tree | 409fa226c729259d9ce2dc78d261711d0373bb1b /drivers/gpu/drm/radeon/rv770.c | |
parent | drm/nouveau: drop leftover debugging (diff) | |
download | linux-a377e187df725fe7e62d2cec59ec290c5a605d93.tar.xz linux-a377e187df725fe7e62d2cec59ec290c5a605d93.zip |
drm/radeon/kms/r6xx+: voltage fixes
0xff01 is not an actual voltage value, but a flag
for the driver. If the power state as that value,
skip setting the voltage.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rv770.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rv770.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index ef8a5babe9f7..6f508ffd1035 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c @@ -105,6 +105,9 @@ void rv770_pm_misc(struct radeon_device *rdev) struct radeon_voltage *voltage = &ps->clock_info[req_cm_idx].voltage; if ((voltage->type == VOLTAGE_SW) && voltage->voltage) { + /* 0xff01 is a flag rather then an actual voltage */ + if (voltage->voltage == 0xff01) + return; if (voltage->voltage != rdev->pm.current_vddc) { radeon_atom_set_voltage(rdev, voltage->voltage, SET_VOLTAGE_TYPE_ASIC_VDDC); rdev->pm.current_vddc = voltage->voltage; |