|
@@ -140,11 +140,17 @@ void evergreen_pm_misc(struct radeon_device *rdev)
|
|
|
struct radeon_voltage *voltage = &ps->clock_info[req_cm_idx].voltage;
|
|
|
|
|
|
if (voltage->type == VOLTAGE_SW) {
|
|
|
+ /* 0xff01 is a flag rather then an actual voltage */
|
|
|
+ if (voltage->voltage == 0xff01)
|
|
|
+ return;
|
|
|
if (voltage->voltage && (voltage->voltage != rdev->pm.current_vddc)) {
|
|
|
radeon_atom_set_voltage(rdev, voltage->voltage, SET_VOLTAGE_TYPE_ASIC_VDDC);
|
|
|
rdev->pm.current_vddc = voltage->voltage;
|
|
|
DRM_DEBUG("Setting: vddc: %d\n", voltage->voltage);
|
|
|
}
|
|
|
+ /* 0xff01 is a flag rather then an actual voltage */
|
|
|
+ if (voltage->vddci == 0xff01)
|
|
|
+ return;
|
|
|
if (voltage->vddci && (voltage->vddci != rdev->pm.current_vddci)) {
|
|
|
radeon_atom_set_voltage(rdev, voltage->vddci, SET_VOLTAGE_TYPE_ASIC_VDDCI);
|
|
|
rdev->pm.current_vddci = voltage->vddci;
|