Lines Matching full:pm
49 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_sclk()
52 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_sclk()
65 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_mclk()
68 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_mclk()
79 if (atomic_read(&adev->pm.pwr_state[block_type]) == pwr_state) { in amdgpu_dpm_set_powergating_by_smu()
85 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_powergating_by_smu()
106 atomic_set(&adev->pm.pwr_state[block_type], pwr_state); in amdgpu_dpm_set_powergating_by_smu()
108 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_powergating_by_smu()
118 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_gfx_power_up_by_imu()
120 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_gfx_power_up_by_imu()
136 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_baco_enter()
141 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_baco_enter()
155 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_baco_exit()
160 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_baco_exit()
174 adev->pm.dpm_enabled = false; in amdgpu_dpm_set_mp1_state()
176 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_mp1_state()
182 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_mp1_state()
194 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_notify_rlc_state()
200 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_notify_rlc_state()
226 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_is_baco_supported()
230 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_is_baco_supported()
244 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_mode2_reset()
248 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_mode2_reset()
262 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_enable_gfx_features()
266 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_enable_gfx_features()
280 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_baco_reset()
291 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_baco_reset()
301 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_is_mode1_reset_supported()
303 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_is_mode1_reset_supported()
315 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_mode1_reset()
317 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_mode1_reset()
334 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_switch_power_profile()
337 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_switch_power_profile()
350 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_xgmi_pstate()
353 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_xgmi_pstate()
367 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_df_cstate()
369 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_df_cstate()
382 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_pm_policy_info()
384 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_pm_policy_info()
397 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_pm_policy()
399 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_pm_policy()
413 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_enable_mgpu_fan_boost()
415 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_enable_mgpu_fan_boost()
430 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_clockgating_by_smu()
433 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_clockgating_by_smu()
448 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_smu_i2c_bus_access()
451 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_smu_i2c_bus_access()
459 if (adev->pm.dpm_enabled) { in amdgpu_pm_acpi_event_handler()
460 mutex_lock(&adev->pm.mutex); in amdgpu_pm_acpi_event_handler()
462 adev->pm.ac_power = true; in amdgpu_pm_acpi_event_handler()
464 adev->pm.ac_power = false; in amdgpu_pm_acpi_event_handler()
468 amdgpu_dpm_enable_bapm(adev, adev->pm.ac_power); in amdgpu_pm_acpi_event_handler()
473 mutex_unlock(&adev->pm.mutex); in amdgpu_pm_acpi_event_handler()
487 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_read_sensor()
492 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_read_sensor()
504 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_apu_thermal_limit()
506 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_apu_thermal_limit()
518 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_apu_thermal_limit()
520 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_apu_thermal_limit()
531 if (!adev->pm.dpm_enabled) in amdgpu_dpm_compute_clocks()
546 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_compute_clocks()
548 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_compute_clocks()
556 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_enable_uvd()
558 adev->pm.dpm.uvd_active = true; in amdgpu_dpm_enable_uvd()
559 adev->pm.dpm.state = POWER_STATE_TYPE_INTERNAL_UVD; in amdgpu_dpm_enable_uvd()
561 adev->pm.dpm.uvd_active = false; in amdgpu_dpm_enable_uvd()
563 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_enable_uvd()
580 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_enable_vce()
582 adev->pm.dpm.vce_active = true; in amdgpu_dpm_enable_vce()
584 adev->pm.dpm.vce_level = AMD_VCE_LEVEL_AC_ALL; in amdgpu_dpm_enable_vce()
586 adev->pm.dpm.vce_active = false; in amdgpu_dpm_enable_vce()
588 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_enable_vce()
629 mutex_lock(&adev->pm.mutex); in amdgpu_pm_load_smu_firmware()
637 *smu_version = adev->pm.fw_version; in amdgpu_pm_load_smu_firmware()
640 mutex_unlock(&adev->pm.mutex); in amdgpu_pm_load_smu_firmware()
649 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_handle_passthrough_sbr()
652 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_handle_passthrough_sbr()
666 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_send_hbm_bad_pages_num()
668 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_send_hbm_bad_pages_num()
681 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_send_hbm_bad_channel_flag()
683 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_send_hbm_bad_channel_flag()
696 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_send_rma_reason()
698 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_send_rma_reason()
716 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_dpm_freq_range()
721 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_dpm_freq_range()
740 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_soft_freq_range()
745 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_soft_freq_range()
758 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_write_watermarks_table()
760 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_write_watermarks_table()
775 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_wait_for_event()
777 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_wait_for_event()
790 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_residency_gfxoff()
792 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_residency_gfxoff()
805 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_residency_gfxoff()
807 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_residency_gfxoff()
820 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_entrycount_gfxoff()
822 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_entrycount_gfxoff()
835 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_status_gfxoff()
837 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_status_gfxoff()
860 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_gfx_state_change()
865 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_gfx_state_change()
877 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_ecc_info()
879 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_ecc_info()
893 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_vce_clock_state()
896 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_vce_clock_state()
906 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_current_power_state()
909 *state = adev->pm.dpm.user_state; in amdgpu_dpm_get_current_power_state()
916 *state = adev->pm.dpm.user_state; in amdgpu_dpm_get_current_power_state()
919 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_current_power_state()
925 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_power_state()
926 adev->pm.dpm.user_state = state; in amdgpu_dpm_set_power_state()
927 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_power_state()
946 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_performance_level()
950 level = adev->pm.dpm.forced_level; in amdgpu_dpm_get_performance_level()
951 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_performance_level()
969 if (adev->pm.dpm.thermal_active) in amdgpu_dpm_force_performance_level()
1011 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_force_performance_level()
1015 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_force_performance_level()
1019 adev->pm.dpm.forced_level = level; in amdgpu_dpm_force_performance_level()
1021 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_force_performance_level()
1035 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_pp_num_states()
1038 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_pp_num_states()
1053 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_dispatch_task()
1057 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_dispatch_task()
1070 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_pp_table()
1073 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_pp_table()
1089 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_fine_grain_clk_vol()
1094 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_fine_grain_clk_vol()
1110 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_odn_edit_dpm_table()
1115 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_odn_edit_dpm_table()
1130 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_print_clock_levels()
1134 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_print_clock_levels()
1150 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_emit_clock_levels()
1155 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_emit_clock_levels()
1169 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_ppfeature_status()
1172 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_ppfeature_status()
1185 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_ppfeature_status()
1188 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_ppfeature_status()
1203 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_force_clock_level()
1207 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_force_clock_level()
1220 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_sclk_od()
1222 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_sclk_od()
1234 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_sclk_od()
1237 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_sclk_od()
1242 adev->pm.dpm.current_ps = adev->pm.dpm.boot_ps; in amdgpu_dpm_set_sclk_od()
1257 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_mclk_od()
1259 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_mclk_od()
1271 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_mclk_od()
1274 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_mclk_od()
1279 adev->pm.dpm.current_ps = adev->pm.dpm.boot_ps; in amdgpu_dpm_set_mclk_od()
1295 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_power_profile_mode()
1298 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_power_profile_mode()
1312 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_power_profile_mode()
1316 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_power_profile_mode()
1329 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_gpu_metrics()
1332 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_gpu_metrics()
1346 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_pm_metrics()
1349 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_pm_metrics()
1363 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_fan_control_mode()
1366 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_fan_control_mode()
1380 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_fan_speed_pwm()
1383 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_fan_speed_pwm()
1397 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_fan_speed_pwm()
1400 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_fan_speed_pwm()
1414 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_fan_speed_rpm()
1417 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_fan_speed_rpm()
1431 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_fan_speed_rpm()
1434 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_fan_speed_rpm()
1448 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_fan_control_mode()
1451 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_fan_control_mode()
1467 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_power_limit()
1472 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_power_limit()
1486 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_power_limit()
1489 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_power_limit()
1501 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_is_cclk_dpm_supported()
1503 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_is_cclk_dpm_supported()
1516 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_debugfs_print_current_performance_level()
1519 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_debugfs_print_current_performance_level()
1534 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_smu_prv_buf_details()
1538 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_smu_prv_buf_details()
1575 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_pp_table()
1579 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_pp_table()
1611 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_display_configuration_change()
1614 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_display_configuration_change()
1629 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type()
1633 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type()
1647 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_display_mode_validation_clks()
1650 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_display_mode_validation_clks()
1665 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type_with_latency()
1669 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type_with_latency()
1684 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type_with_voltage()
1688 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type_with_voltage()
1702 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_watermarks_for_clocks_ranges()
1705 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_watermarks_for_clocks_ranges()
1719 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_display_clock_voltage_request()
1722 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_display_clock_voltage_request()
1736 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_current_clocks()
1739 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_current_clocks()
1751 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_notify_smu_enable_pwe()
1753 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_notify_smu_enable_pwe()
1765 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_active_display_count()
1768 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_active_display_count()
1782 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_min_deep_sleep_dcefclk()
1785 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_min_deep_sleep_dcefclk()
1798 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_hard_min_dcefclk_by_freq()
1801 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_hard_min_dcefclk_by_freq()
1812 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_hard_min_fclk_by_freq()
1815 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_hard_min_fclk_by_freq()
1827 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_display_disable_memory_clock_switch()
1830 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_display_disable_memory_clock_switch()
1844 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_max_sustainable_clocks_by_dc()
1847 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_max_sustainable_clocks_by_dc()
1862 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_uclk_dpm_states()
1866 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_uclk_dpm_states()
1880 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_dpm_clock_table()
1883 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_dpm_clock_table()