Home
last modified time | relevance | path

Searched refs:powerplay (Results 1 – 20 of 20) sorted by relevance

/netbsd/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_dpm.h259 ((adev)->powerplay.pp_funcs->pre_set_power_state((adev)->powerplay.pp_handle))
262 ((adev)->powerplay.pp_funcs->set_power_state((adev)->powerplay.pp_handle))
265 ((adev)->powerplay.pp_funcs->post_set_power_state((adev)->powerplay.pp_handle))
274 ((adev)->powerplay.pp_funcs->vblank_too_short((adev)->powerplay.pp_handle))
277 ((adev)->powerplay.pp_funcs->enable_bapm((adev)->powerplay.pp_handle, (e)))
283 ((adev)->powerplay.pp_funcs->get_fan_control_mode((adev)->powerplay.pp_handle))
307 ((adev)->powerplay.pp_funcs->get_pp_table((adev)->powerplay.pp_handle, table))
319 ((adev)->powerplay.pp_funcs->get_sclk_od((adev)->powerplay.pp_handle))
322 ((adev)->powerplay.pp_funcs->set_sclk_od((adev)->powerplay.pp_handle, value))
325 ((adev)->powerplay.pp_funcs->get_mclk_od((adev)->powerplay.pp_handle))
[all …]
H A Damdgpu_pm.c118 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->read_sensor) in amdgpu_dpm_read_sensor()
119 ret = adev->powerplay.pp_funcs->read_sensor((adev)->powerplay.pp_handle, in amdgpu_dpm_read_sensor()
2482 } else if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_power_limit) { in amdgpu_hwmon_show_power_cap_max()
2483 adev->powerplay.pp_funcs->get_power_limit(adev->powerplay.pp_handle, &limit, true); in amdgpu_hwmon_show_power_cap_max()
2511 } else if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_power_limit) { in amdgpu_hwmon_show_power_cap()
2512 adev->powerplay.pp_funcs->get_power_limit(adev->powerplay.pp_handle, &limit, false); in amdgpu_hwmon_show_power_cap()
2550 else if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->set_power_limit) in amdgpu_hwmon_set_power_cap()
2551 err = adev->powerplay.pp_funcs->set_power_limit(adev->powerplay.pp_handle, value); in amdgpu_hwmon_set_power_cap()
3235 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->load_firmware) { in amdgpu_pm_load_smu_firmware()
3236 r = adev->powerplay.pp_funcs->load_firmware(adev->powerplay.pp_handle); in amdgpu_pm_load_smu_firmware()
[all …]
H A Damdgpu_dpm.c926 return (adev)->powerplay.pp_funcs->get_sclk((adev)->powerplay.pp_handle, (low)); in amdgpu_dpm_get_sclk()
944 return (adev)->powerplay.pp_funcs->get_mclk((adev)->powerplay.pp_handle, (low)); in amdgpu_dpm_get_mclk()
958 } else if (adev->powerplay.pp_funcs && in amdgpu_dpm_set_powergating_by_smu()
997 else if (adev->powerplay.pp_funcs && in amdgpu_dpm_set_powergating_by_smu()
1008 if (adev->powerplay.pp_funcs && in amdgpu_dpm_set_powergating_by_smu()
1067 } else if (adev->powerplay.pp_funcs && in amdgpu_dpm_set_mp1_state()
1070 adev->powerplay.pp_handle, in amdgpu_dpm_set_mp1_state()
1157 else if (adev->powerplay.pp_funcs && in amdgpu_dpm_switch_power_profile()
1160 adev->powerplay.pp_handle, type, en); in amdgpu_dpm_switch_power_profile()
1172 else if (adev->powerplay.pp_funcs && in amdgpu_dpm_set_xgmi_pstate()
[all …]
H A Damdgpu_smu_v11_0_i2c.c518 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access) in smu_v11_0_i2c_bus_lock()
522 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access(adev->powerplay.pp_handle, true)) in smu_v11_0_i2c_bus_lock()
534 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access) in smu_v11_0_i2c_bus_unlock()
538 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access(adev->powerplay.pp_handle, in smu_v11_0_i2c_bus_unlock()
H A Damdgpu_acp.c146 if (adev->powerplay.pp_funcs && in acp_poweroff()
147 adev->powerplay.pp_funcs->set_powergating_by_smu) in acp_poweroff()
167 if (adev->powerplay.pp_funcs->set_powergating_by_smu) in acp_poweron()
559 if (adev->powerplay.pp_funcs && in acp_set_powergating_state()
560 adev->powerplay.pp_funcs->set_powergating_by_smu) in acp_set_powergating_state()
H A DMakefile33 -I$(FULL_AMD_PATH)/powerplay/inc \
209 include $(FULL_AMD_PATH)/powerplay/Makefile
H A Damdgpu_vi.c1534 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1553 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1572 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1587 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1600 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1615 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1630 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
H A Damdgpu_amdkfd.c414 else if (adev->powerplay.pp_funcs) { in amdgpu_amdkfd_get_local_mem_info()
439 else if (adev->powerplay.pp_funcs) in amdgpu_amdkfd_get_max_engine_clock_in_mhz()
H A Damdgpu_mmhub_v1_0.c305 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->set_powergating_by_smu) in mmhub_v1_0_update_power_gating()
H A Damdgpu_sdma_v4_0.c1913 if ((adev->asic_type == CHIP_RAVEN && adev->powerplay.pp_funcs && in sdma_v4_0_hw_init()
1914 adev->powerplay.pp_funcs->set_powergating_by_smu) || in sdma_v4_0_hw_init()
1942 if ((adev->asic_type == CHIP_RAVEN && adev->powerplay.pp_funcs in sdma_v4_0_hw_fini()
1943 && adev->powerplay.pp_funcs->set_powergating_by_smu) || in sdma_v4_0_hw_fini()
H A Damdgpu_gfx_v8_0.c5336 adev->powerplay.pp_funcs->set_powergating_by_smu) in gfx_v8_0_enable_gfx_static_mg_power_gating()
5851 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_tonga_update_gfx_clock_gating()
5873 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_tonga_update_gfx_clock_gating()
5903 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating()
5923 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating()
5945 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating()
5961 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating()
5976 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating()
H A Damdgpu.h878 struct amd_powerplay powerplay; member
H A Damdgpu_kv_dpm.c2979 adev->powerplay.pp_funcs = &kv_dpm_funcs; in kv_dpm_early_init()
2980 adev->powerplay.pp_handle = adev; in kv_dpm_early_init()
H A Damdgpu_device.c2212 adev->powerplay.pp_funcs && in amdgpu_device_enable_mgpu_fan_boost()
2213 adev->powerplay.pp_funcs->enable_mgpu_fan_boost) { in amdgpu_device_enable_mgpu_fan_boost()
H A Damdgpu_si_dpm.c7930 adev->powerplay.pp_funcs = &si_dpm_funcs; in si_dpm_early_init()
7931 adev->powerplay.pp_handle = adev; in si_dpm_early_init()
/netbsd/sys/external/bsd/drm2/dist/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_pp_smu.c110 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->display_configuration_change) in dm_pp_apply_display_requirements()
112 adev->powerplay.pp_handle, in dm_pp_apply_display_requirements()
342 void *pp_handle = adev->powerplay.pp_handle; in dm_pp_get_clock_levels_by_type()
347 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_clock_by_type) { in dm_pp_get_clock_levels_by_type()
365 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_display_mode_validation_clocks) { in dm_pp_get_clock_levels_by_type()
428 void *pp_handle = adev->powerplay.pp_handle; in dm_pp_get_clock_levels_by_type_with_latency()
458 void *pp_handle = adev->powerplay.pp_handle; in dm_pp_get_clock_levels_by_type_with_voltage()
511 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->display_clock_voltage_request) in dm_pp_apply_clock_for_voltage_request()
513 adev->powerplay.pp_handle, in dm_pp_apply_clock_for_voltage_request()
532 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_current_clocks) in dm_pp_get_static_clocks()
[all …]
/netbsd/sys/external/bsd/drm2/dist/drm/amd/powerplay/
H A DMakefile24 -I$(FULL_AMD_PATH)/powerplay/inc/ \
27 -I$(FULL_AMD_PATH)/powerplay/smumgr\
28 -I$(FULL_AMD_PATH)/powerplay/hwmgr
30 AMD_PP_PATH = ../powerplay
34 AMD_POWERPLAY = $(addsuffix /Makefile,$(addprefix $(FULL_AMD_PATH)/powerplay/,$(PP_LIBS)))
H A Damdgpu_amd_powerplay.c63 adev->powerplay.pp_handle = hwmgr; in amd_powerplay_create()
64 adev->powerplay.pp_funcs = &pp_dpm_funcs; in amd_powerplay_create()
71 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in amd_powerplay_destroy()
91 ret = hwmgr_early_init(adev->powerplay.pp_handle); in pp_early_init()
101 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_sw_init()
114 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_sw_fini()
128 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_hw_init()
141 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_hw_fini()
153 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_reserve_vram_for_smu()
182 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; in pp_late_init()
[all …]
/netbsd/sys/external/bsd/drm2/amdgpu/
H A Dfiles.amdgpu20 makeoptions amdgpu "CPPFLAGS.amdgpu"+="-I$S/external/bsd/drm2/dist/drm/amd/powerplay/inc"
21 makeoptions amdgpu "CPPFLAGS.amdgpu"+="-I$S/external/bsd/drm2/dist/drm/amd/powerplay/smumgr"
22 makeoptions amdgpu "CPPFLAGS.amdgpu"+="-I$S/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr"
298 file external/bsd/drm2/dist/drm/amd/amdgpu/../powerplay/amdgpu_arcturus_ppt.c amdgpu
299 file external/bsd/drm2/dist/drm/amd/amdgpu/../powerplay/amdgpu_navi10_ppt.c amdgpu
300 file external/bsd/drm2/dist/drm/amd/amdgpu/../powerplay/amdgpu_renoir_ppt.c amdgpu
301 file external/bsd/drm2/dist/drm/amd/amdgpu/../powerplay/amdgpu_smu.c amdgpu
302 file external/bsd/drm2/dist/drm/amd/amdgpu/../powerplay/amdgpu_smu_v11_0.c amdgpu
303 file external/bsd/drm2/dist/drm/amd/amdgpu/../powerplay/amdgpu_smu_v12_0.c amdgpu
304 file external/bsd/drm2/dist/drm/amd/amdgpu/../powerplay/amdgpu_vega20_ppt.c amdgpu
[all …]
/netbsd/sys/modules/amdgpu/
H A DMakefile23 CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/powerplay/inc
24 CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/powerplay/smumgr
25 CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr
140 .PATH: ${S}/external/bsd/drm2/dist/drm/amd/amdgpu/../powerplay
141 .PATH: ${S}/external/bsd/drm2/dist/drm/amd/amdgpu/../powerplay/hwmgr
142 .PATH: ${S}/external/bsd/drm2/dist/drm/amd/amdgpu/../powerplay/smumgr