Home
last modified time | relevance | path

Searched refs:dpm (Results 1 – 25 of 41) sorted by relevance

12

/openbmc/linux/drivers/gpu/drm/amd/pm/legacy-dpm/
H A Dlegacy_dpm.c131 if (rps == adev->pm.dpm.boot_ps) in amdgpu_dpm_print_ps_status()
358 adev->pm.dpm.near_tdp_limit_adjusted = adev->pm.dpm.near_tdp_limit; in amdgpu_parse_extended_power_table()
821 ps = &adev->pm.dpm.ps[i]; in amdgpu_dpm_pick_power_state()
854 if (adev->pm.dpm.uvd_ps) in amdgpu_dpm_pick_power_state()
904 if (adev->pm.dpm.uvd_ps) { in amdgpu_dpm_pick_power_state()
905 return adev->pm.dpm.uvd_ps; in amdgpu_dpm_pick_power_state()
940 if (adev->pm.dpm.user_state != adev->pm.dpm.state) { in amdgpu_dpm_change_power_state_locked()
944 adev->pm.dpm.state = adev->pm.dpm.user_state; in amdgpu_dpm_change_power_state_locked()
983 adev->pm.dpm.current_active_crtcs = adev->pm.dpm.new_active_crtcs; in amdgpu_dpm_change_power_state_locked()
984 adev->pm.dpm.current_active_crtc_count = adev->pm.dpm.new_active_crtc_count; in amdgpu_dpm_change_power_state_locked()
[all …]
H A Dsi_dpm.c3461 rps->evclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].evclk; in si_apply_state_adjust_rules()
3551 if (sclk < adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].sclk) in si_apply_state_adjust_rules()
3552 sclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].sclk; in si_apply_state_adjust_rules()
3553 if (mclk < adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].mclk) in si_apply_state_adjust_rules()
3554 mclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].mclk; in si_apply_state_adjust_rules()
6511 t_diff1 = adev->pm.dpm.fan.t_med - adev->pm.dpm.fan.t_min; in si_thermal_setup_fan_table()
6512 t_diff2 = adev->pm.dpm.fan.t_high - adev->pm.dpm.fan.t_med; in si_thermal_setup_fan_table()
6514 pwm_diff1 = adev->pm.dpm.fan.pwm_med - adev->pm.dpm.fan.pwm_min; in si_thermal_setup_fan_table()
6515 pwm_diff2 = adev->pm.dpm.fan.pwm_high - adev->pm.dpm.fan.pwm_med; in si_thermal_setup_fan_table()
7759 adev->pm.dpm.current_ps = adev->pm.dpm.requested_ps = adev->pm.dpm.boot_ps; in si_dpm_sw_init()
[all …]
H A Dkv_dpm.c2213 new_rps->evclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].evclk; in kv_apply_state_adjust_rules()
2214 new_rps->ecclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].ecclk; in kv_apply_state_adjust_rules()
2240 if (sclk < adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].sclk) in kv_apply_state_adjust_rules()
2241 sclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].sclk; in kv_apply_state_adjust_rules()
2668 adev->pm.dpm.uvd_ps = rps; in kv_parse_pplib_non_clock_info()
2730 if (!adev->pm.dpm.ps) in kv_parse_power_table()
2789 adev->pm.dpm.priv = pi; in kv_dpm_init()
2908 kfree(adev->pm.dpm.ps); in kv_dpm_fini()
2909 kfree(adev->pm.dpm.priv); in kv_dpm_fini()
3014 adev->pm.dpm.current_ps = adev->pm.dpm.requested_ps = adev->pm.dpm.boot_ps; in kv_dpm_sw_init()
[all …]
H A DMakefile23 AMD_LEGACYDPM_PATH = ../pm/legacy-dpm
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dr600_dpm.c147 if (rps == rdev->pm.dpm.current_ps) in r600_dpm_print_ps_status()
149 if (rps == rdev->pm.dpm.requested_ps) in r600_dpm_print_ps_status()
151 if (rps == rdev->pm.dpm.boot_ps) in r600_dpm_print_ps_status()
905 rdev->pm.dpm.fan.t_max = 10900; in r600_parse_extended_power_table()
1022 rdev->pm.dpm.near_tdp_limit_adjusted = rdev->pm.dpm.near_tdp_limit; in r600_parse_extended_power_table()
1024 if (rdev->pm.dpm.tdp_od_limit) in r600_parse_extended_power_table()
1025 rdev->pm.dpm.power_control = true; in r600_parse_extended_power_table()
1027 rdev->pm.dpm.power_control = false; in r600_parse_extended_power_table()
1028 rdev->pm.dpm.tdp_adjustment = 0; in r600_parse_extended_power_table()
1122 rdev->pm.dpm.vce_states[i].evclk = in r600_parse_extended_power_table()
[all …]
H A Dradeon_pm.c1066 if (rdev->pm.dpm.user_state != rdev->pm.dpm.state) { in radeon_dpm_change_power_state_locked()
1070 rdev->pm.dpm.state = rdev->pm.dpm.user_state; in radeon_dpm_change_power_state_locked()
1081 if (rdev->pm.dpm.current_ps == rdev->pm.dpm.requested_ps) { in radeon_dpm_change_power_state_locked()
1158 rdev->pm.dpm.current_ps = rdev->pm.dpm.requested_ps; in radeon_dpm_change_power_state_locked()
1203 if ((rdev->pm.dpm.sd == 1) && (rdev->pm.dpm.hd == 0)) in radeon_dpm_enable_uvd()
1205 else if ((rdev->pm.dpm.sd == 2) && (rdev->pm.dpm.hd == 0)) in radeon_dpm_enable_uvd()
1207 else if ((rdev->pm.dpm.sd == 0) && (rdev->pm.dpm.hd == 1)) in radeon_dpm_enable_uvd()
1209 else if ((rdev->pm.dpm.sd == 0) && (rdev->pm.dpm.hd == 2)) in radeon_dpm_enable_uvd()
1261 rdev->pm.dpm.current_ps = rdev->pm.dpm.requested_ps = rdev->pm.dpm.boot_ps; in radeon_pm_suspend_dpm()
1317 rdev->pm.dpm.current_ps = rdev->pm.dpm.requested_ps = rdev->pm.dpm.boot_ps; in radeon_pm_resume_dpm()
[all …]
H A Dbtc_dpm.c2108 if (rdev->pm.dpm.ac_power) in btc_apply_state_adjust_rules()
2113 if (rdev->pm.dpm.ac_power == false) { in btc_apply_state_adjust_rules()
2560 rdev->pm.dpm.priv = eg_pi; in btc_dpm_init()
2600 if (rdev->pm.dpm.voltage_response_time == 0) in btc_dpm_init()
2602 if (rdev->pm.dpm.backbias_response_time == 0) in btc_dpm_init()
2698 rdev->pm.dpm.dyn_state.mclk_sclk_ratio = 4; in btc_dpm_init()
2699 rdev->pm.dpm.dyn_state.vddc_vddci_delta = 200; in btc_dpm_init()
2724 for (i = 0; i < rdev->pm.dpm.num_ps; i++) { in btc_dpm_fini()
2725 kfree(rdev->pm.dpm.ps[i].ps_priv); in btc_dpm_fini()
2727 kfree(rdev->pm.dpm.ps); in btc_dpm_fini()
[all …]
H A Dci_dpm.c729 rdev->pm.dpm.tdp_adjustment : (-1 * rdev->pm.dpm.tdp_adjustment); in ci_power_control_set_level()
781 rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk; in ci_apply_state_adjust_rules()
782 rps->ecclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].ecclk; in ci_apply_state_adjust_rules()
824 if (sclk < rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk) in ci_apply_state_adjust_rules()
825 sclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk; in ci_apply_state_adjust_rules()
826 if (mclk < rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].mclk) in ci_apply_state_adjust_rules()
827 mclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].mclk; in ci_apply_state_adjust_rules()
959 t_diff1 = rdev->pm.dpm.fan.t_med - rdev->pm.dpm.fan.t_min; in ci_thermal_setup_fan_table()
960 t_diff2 = rdev->pm.dpm.fan.t_high - rdev->pm.dpm.fan.t_med; in ci_thermal_setup_fan_table()
962 pwm_diff1 = rdev->pm.dpm.fan.pwm_med - rdev->pm.dpm.fan.pwm_min; in ci_thermal_setup_fan_table()
[all …]
H A Dsi_dpm.c2988 rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk; in si_apply_state_adjust_rules()
2989 rps->ecclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].ecclk; in si_apply_state_adjust_rules()
3078 if (sclk < rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk) in si_apply_state_adjust_rules()
3079 sclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk; in si_apply_state_adjust_rules()
3080 if (mclk < rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].mclk) in si_apply_state_adjust_rules()
3081 mclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].mclk; in si_apply_state_adjust_rules()
6037 t_diff1 = rdev->pm.dpm.fan.t_med - rdev->pm.dpm.fan.t_min; in si_thermal_setup_fan_table()
6038 t_diff2 = rdev->pm.dpm.fan.t_high - rdev->pm.dpm.fan.t_med; in si_thermal_setup_fan_table()
6040 pwm_diff1 = rdev->pm.dpm.fan.pwm_med - rdev->pm.dpm.fan.pwm_min; in si_thermal_setup_fan_table()
6041 pwm_diff2 = rdev->pm.dpm.fan.pwm_high - rdev->pm.dpm.fan.pwm_med; in si_thermal_setup_fan_table()
[all …]
H A Dkv_dpm.c1952 new_rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk; in kv_apply_state_adjust_rules()
1953 new_rps->ecclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].ecclk; in kv_apply_state_adjust_rules()
1979 if (sclk < rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk) in kv_apply_state_adjust_rules()
1980 sclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk; in kv_apply_state_adjust_rules()
2400 rdev->pm.dpm.boot_ps = rps; in kv_parse_pplib_non_clock_info()
2404 rdev->pm.dpm.uvd_ps = rps; in kv_parse_pplib_non_clock_info()
2464 if (!rdev->pm.dpm.ps) in kv_parse_power_table()
2477 kfree(rdev->pm.dpm.ps); in kv_parse_power_table()
2527 rdev->pm.dpm.priv = pi; in kv_dpm_init()
2670 kfree(rdev->pm.dpm.ps); in kv_dpm_fini()
[all …]
H A Drv6xx_dpm.c1811 rdev->pm.dpm.boot_ps = rps; in rv6xx_parse_pplib_non_clock_info()
1813 rdev->pm.dpm.uvd_ps = rps; in rv6xx_parse_pplib_non_clock_info()
1893 if (!rdev->pm.dpm.ps) in rv6xx_parse_power_table()
1910 kfree(rdev->pm.dpm.ps); in rv6xx_parse_power_table()
1913 rdev->pm.dpm.ps[i].ps_priv = ps; in rv6xx_parse_power_table()
1923 &rdev->pm.dpm.ps[i], j, in rv6xx_parse_power_table()
1942 rdev->pm.dpm.priv = pi; in rv6xx_dpm_init()
2104 kfree(rdev->pm.dpm.ps[i].ps_priv); in rv6xx_dpm_fini()
2106 kfree(rdev->pm.dpm.ps); in rv6xx_dpm_fini()
2107 kfree(rdev->pm.dpm.priv); in rv6xx_dpm_fini()
[all …]
H A Drs780_dpm.c742 rdev->pm.dpm.boot_ps = rps; in rs780_parse_pplib_non_clock_info()
744 rdev->pm.dpm.uvd_ps = rps; in rs780_parse_pplib_non_clock_info()
810 if (!rdev->pm.dpm.ps) in rs780_parse_power_table()
831 kfree(rdev->pm.dpm.ps); in rs780_parse_power_table()
834 rdev->pm.dpm.ps[i].ps_priv = ps; in rs780_parse_power_table()
839 &rdev->pm.dpm.ps[i], in rs780_parse_power_table()
859 rdev->pm.dpm.priv = pi; in rs780_dpm_init()
958 kfree(rdev->pm.dpm.ps[i].ps_priv); in rs780_dpm_fini()
960 kfree(rdev->pm.dpm.ps); in rs780_dpm_fini()
961 kfree(rdev->pm.dpm.priv); in rs780_dpm_fini()
[all …]
H A Dni_dpm.c801 if (rdev->pm.dpm.ac_power) in ni_apply_state_adjust_rules()
1443 *near_tdp_limit = rdev->pm.dpm.near_tdp_limit + (*tdp_limit - rdev->pm.dpm.tdp_limit); in ni_calculate_adjusted_tdp_limits()
1446 *near_tdp_limit = rdev->pm.dpm.near_tdp_limit - (rdev->pm.dpm.tdp_limit - *tdp_limit); in ni_calculate_adjusted_tdp_limits()
3918 rdev->pm.dpm.boot_ps = rps; in ni_parse_pplib_non_clock_info()
3920 rdev->pm.dpm.uvd_ps = rps; in ni_parse_pplib_non_clock_info()
4009 if (!rdev->pm.dpm.ps) in ni_parse_power_table()
4026 kfree(rdev->pm.dpm.ps); in ni_parse_power_table()
4040 &rdev->pm.dpm.ps[i], j, in ni_parse_power_table()
4060 rdev->pm.dpm.priv = ni_pi; in ni_dpm_init()
4279 kfree(rdev->pm.dpm.ps); in ni_dpm_fini()
[all …]
H A Dtrinity_dpm.c1511 new_rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk; in trinity_apply_state_adjust_rules()
1512 new_rps->ecclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].ecclk; in trinity_apply_state_adjust_rules()
1529 if (ps->levels[i].sclk < rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk) in trinity_apply_state_adjust_rules()
1530 ps->levels[i].sclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk; in trinity_apply_state_adjust_rules()
1660 rdev->pm.dpm.uvd_ps = rps; in trinity_parse_pplib_non_clock_info()
1720 if (!rdev->pm.dpm.ps) in trinity_parse_power_table()
1730 kfree(rdev->pm.dpm.ps); in trinity_parse_power_table()
1735 kfree(rdev->pm.dpm.ps); in trinity_parse_power_table()
1913 rdev->pm.dpm.priv = pi; in trinity_dpm_init()
2043 kfree(rdev->pm.dpm.ps); in trinity_dpm_fini()
[all …]
H A Drv770_dpm.c1500 rdev->pm.dpm.forced_level = level; in rv770_dpm_force_performance_level()
2170 rdev->pm.dpm.boot_ps = rps; in rv7xx_parse_pplib_non_clock_info()
2172 rdev->pm.dpm.uvd_ps = rps; in rv7xx_parse_pplib_non_clock_info()
2289 if (!rdev->pm.dpm.ps) in rv7xx_parse_power_table()
2306 kfree(rdev->pm.dpm.ps); in rv7xx_parse_power_table()
2309 rdev->pm.dpm.ps[i].ps_priv = ps; in rv7xx_parse_power_table()
2320 &rdev->pm.dpm.ps[i], j, in rv7xx_parse_power_table()
2354 rdev->pm.dpm.priv = pi; in rv770_dpm_init()
2546 kfree(rdev->pm.dpm.ps[i].ps_priv); in rv770_dpm_fini()
2548 kfree(rdev->pm.dpm.ps); in rv770_dpm_fini()
[all …]
H A Dsumo_dpm.c1422 rdev->pm.dpm.boot_ps = rps; in sumo_parse_pplib_non_clock_info()
1426 rdev->pm.dpm.uvd_ps = rps; in sumo_parse_pplib_non_clock_info()
1487 if (!rdev->pm.dpm.ps) in sumo_parse_power_table()
1497 kfree(rdev->pm.dpm.ps); in sumo_parse_power_table()
1502 kfree(rdev->pm.dpm.ps); in sumo_parse_power_table()
1505 rdev->pm.dpm.ps[i].ps_priv = ps; in sumo_parse_power_table()
1517 &rdev->pm.dpm.ps[i], k, in sumo_parse_power_table()
1753 rdev->pm.dpm.priv = pi; in sumo_dpm_init()
1901 kfree(rdev->pm.dpm.ps); in sumo_dpm_fini()
1902 kfree(rdev->pm.dpm.priv); in sumo_dpm_fini()
[all …]
H A Dcypress_dpm.c1751 if (rdev->pm.dpm.new_active_crtc_count > 0) in cypress_program_display_gap()
1756 if (rdev->pm.dpm.new_active_crtc_count > 1) in cypress_program_display_gap()
1766 if ((rdev->pm.dpm.new_active_crtc_count > 0) && in cypress_program_display_gap()
1770 if (rdev->pm.dpm.new_active_crtcs & (1 << i)) in cypress_program_display_gap()
2034 rdev->pm.dpm.priv = eg_pi; in cypress_dpm_init()
2053 if (rdev->pm.dpm.voltage_response_time == 0) in cypress_dpm_init()
2055 if (rdev->pm.dpm.backbias_response_time == 0) in cypress_dpm_init()
2149 for (i = 0; i < rdev->pm.dpm.num_ps; i++) { in cypress_dpm_fini()
2150 kfree(rdev->pm.dpm.ps[i].ps_priv); in cypress_dpm_fini()
2152 kfree(rdev->pm.dpm.ps); in cypress_dpm_fini()
[all …]
H A Dradeon.h1647 struct radeon_dpm dpm; member
1985 } dpm; member
2761 #define radeon_dpm_init(rdev) rdev->asic->dpm.init((rdev))
2762 #define radeon_dpm_setup_asic(rdev) rdev->asic->dpm.setup_asic((rdev))
2763 #define radeon_dpm_enable(rdev) rdev->asic->dpm.enable((rdev))
2764 #define radeon_dpm_late_enable(rdev) rdev->asic->dpm.late_enable((rdev))
2765 #define radeon_dpm_disable(rdev) rdev->asic->dpm.disable((rdev))
2767 #define radeon_dpm_set_power_state(rdev) rdev->asic->dpm.set_power_state((rdev))
2770 #define radeon_dpm_fini(rdev) rdev->asic->dpm.fini((rdev))
2771 #define radeon_dpm_get_sclk(rdev, l) rdev->asic->dpm.get_sclk((rdev), (l))
[all …]
H A Dradeon_uvd.c867 radeon_uvd_count_handles(rdev, &rdev->pm.dpm.sd, in radeon_uvd_idle_work_handler()
868 &rdev->pm.dpm.hd); in radeon_uvd_idle_work_handler()
889 if ((rdev->pm.dpm.sd != sd) || in radeon_uvd_note_usage()
890 (rdev->pm.dpm.hd != hd)) { in radeon_uvd_note_usage()
891 rdev->pm.dpm.sd = sd; in radeon_uvd_note_usage()
892 rdev->pm.dpm.hd = hd; in radeon_uvd_note_usage()
/openbmc/linux/drivers/gpu/drm/amd/pm/
H A Damdgpu_dpm_internal.c36 adev->pm.dpm.new_active_crtcs = 0; in amdgpu_dpm_get_active_displays()
37 adev->pm.dpm.new_active_crtc_count = 0; in amdgpu_dpm_get_active_displays()
43 adev->pm.dpm.new_active_crtcs |= (1 << amdgpu_crtc->crtc_id); in amdgpu_dpm_get_active_displays()
44 adev->pm.dpm.new_active_crtc_count++; in amdgpu_dpm_get_active_displays()
H A DMakefile36 -I$(FULL_AMD_PATH)/pm/legacy-dpm
40 PM_LIBS = swsmu powerplay legacy-dpm
H A Damdgpu_dpm.c521 adev->pm.dpm.uvd_active = true; in amdgpu_dpm_enable_uvd()
524 adev->pm.dpm.uvd_active = false; in amdgpu_dpm_enable_uvd()
545 adev->pm.dpm.vce_active = true; in amdgpu_dpm_enable_vce()
549 adev->pm.dpm.vce_active = false; in amdgpu_dpm_enable_vce()
846 *state = adev->pm.dpm.user_state; in amdgpu_dpm_get_current_power_state()
853 *state = adev->pm.dpm.user_state; in amdgpu_dpm_get_current_power_state()
863 adev->pm.dpm.user_state = state; in amdgpu_dpm_set_power_state()
906 if (adev->pm.dpm.thermal_active) in amdgpu_dpm_force_performance_level()
956 adev->pm.dpm.forced_level = level; in amdgpu_dpm_force_performance_level()
1179 adev->pm.dpm.current_ps = adev->pm.dpm.boot_ps; in amdgpu_dpm_set_sclk_od()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dhardwaremanager.c260 adev->pm.dpm.thermal.min_temp = range.min; in phm_start_thermal_controller()
261 adev->pm.dpm.thermal.max_temp = range.max; in phm_start_thermal_controller()
262 adev->pm.dpm.thermal.max_edge_emergency_temp = range.edge_emergency_max; in phm_start_thermal_controller()
263 adev->pm.dpm.thermal.min_hotspot_temp = range.hotspot_min; in phm_start_thermal_controller()
264 adev->pm.dpm.thermal.max_hotspot_crit_temp = range.hotspot_crit_max; in phm_start_thermal_controller()
265 adev->pm.dpm.thermal.max_hotspot_emergency_temp = range.hotspot_emergency_max; in phm_start_thermal_controller()
266 adev->pm.dpm.thermal.min_mem_temp = range.mem_min; in phm_start_thermal_controller()
267 adev->pm.dpm.thermal.max_mem_crit_temp = range.mem_crit_max; in phm_start_thermal_controller()
268 adev->pm.dpm.thermal.max_mem_emergency_temp = range.mem_emergency_max; in phm_start_thermal_controller()
269 adev->pm.dpm.thermal.sw_ctf_threshold = range.sw_ctf_threshold; in phm_start_thermal_controller()
/openbmc/linux/drivers/net/can/
H A Djanz-ican3.c229 void __iomem *dpm; member
316 peer = ioread8(mod->dpm + MSYNC_PEER); in ican3_old_recv_msg()
406 dst = mod->dpm; in ican3_init_new_host_interface()
424 dst = mod->dpm; in ican3_init_new_host_interface()
445 dst = mod->dpm; in ican3_init_new_host_interface()
455 dst = mod->dpm; in ican3_init_new_host_interface()
501 dst = mod->dpm + addr; in ican3_init_fast_host_interface()
537 dst = mod->dpm + addr; in ican3_init_fast_host_interface()
1963 if (!mod->dpm) { in ican3_probe()
2019 iounmap(mod->dpm); in ican3_probe()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/power/supply/
H A Dbq24257.yaml67 ti,in-dpm-voltage:
122 ti,in-dpm-voltage = <4440000>;

12