diff --git a/drivers/gpu/drm/radeon/rv770_dpm.c b/drivers/gpu/drm/radeon/rv770_dpm.c index 755a8f9..3663716 100644 --- a/drivers/gpu/drm/radeon/rv770_dpm.c +++ b/drivers/gpu/drm/radeon/rv770_dpm.c @@ -2090,14 +2090,6 @@ void rv770_dpm_reset_asic(struct radeon_device *rdev) void rv770_dpm_setup_asic(struct radeon_device *rdev) { - struct rv7xx_power_info *pi = rv770_get_pi(rdev); - - r7xx_read_clock_registers(rdev); - rv770_read_voltage_smio_registers(rdev); - rv770_get_memory_type(rdev); - if (pi->dcodt) - rv770_get_mclk_odt_threshold(rdev); - rv770_get_pcie_gen2_status(rdev); rv770_enable_acpi_pm(rdev); @@ -2258,6 +2250,13 @@ static void rv7xx_parse_pplib_clock_info(struct radeon_device *rdev, rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.vddc = pl->vddc; rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.vddci = pl->vddci; } + + r7xx_read_clock_registers(rdev); + rv770_read_voltage_smio_registers(rdev); + rv770_get_memory_type(rdev); + if (pi->dcodt) + rv770_get_mclk_odt_threshold(rdev); + rv770_get_pcie_gen2_status(rdev); } int rv7xx_parse_power_table(struct radeon_device *rdev)