diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/si_dpm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/si_dpm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index 0a2f5b4bca43..9a3567bedaae 100644 --- a/drivers/gpu/drm/radeon/si_dpm.c +++ b/drivers/gpu/drm/radeon/si_dpm.c | |||
@@ -6271,9 +6271,6 @@ static int si_parse_power_table(struct radeon_device *rdev) | |||
6271 | if (!rdev->pm.dpm.ps) | 6271 | if (!rdev->pm.dpm.ps) |
6272 | return -ENOMEM; | 6272 | return -ENOMEM; |
6273 | power_state_offset = (u8 *)state_array->states; | 6273 | power_state_offset = (u8 *)state_array->states; |
6274 | rdev->pm.dpm.platform_caps = le32_to_cpu(power_info->pplib.ulPlatformCaps); | ||
6275 | rdev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); | ||
6276 | rdev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); | ||
6277 | for (i = 0; i < state_array->ucNumEntries; i++) { | 6274 | for (i = 0; i < state_array->ucNumEntries; i++) { |
6278 | u8 *idx; | 6275 | u8 *idx; |
6279 | power_state = (union pplib_power_state *)power_state_offset; | 6276 | power_state = (union pplib_power_state *)power_state_offset; |
@@ -6350,6 +6347,10 @@ int si_dpm_init(struct radeon_device *rdev) | |||
6350 | pi->min_vddc_in_table = 0; | 6347 | pi->min_vddc_in_table = 0; |
6351 | pi->max_vddc_in_table = 0; | 6348 | pi->max_vddc_in_table = 0; |
6352 | 6349 | ||
6350 | ret = r600_get_platform_caps(rdev); | ||
6351 | if (ret) | ||
6352 | return ret; | ||
6353 | |||
6353 | ret = si_parse_power_table(rdev); | 6354 | ret = si_parse_power_table(rdev); |
6354 | if (ret) | 6355 | if (ret) |
6355 | return ret; | 6356 | return ret; |