/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_dpm.h | 257 ((adev)->powerplay.pp_funcs->pre_set_power_state((adev)->powerplay.pp_handle)) 260 ((adev)->powerplay.pp_funcs->set_power_state((adev)->powerplay.pp_handle)) 263 ((adev)->powerplay.pp_funcs->post_set_power_state((adev)->powerplay.pp_handle)) 266 ((adev)->powerplay.pp_funcs->display_configuration_changed((adev)->powerplay.pp_handle)) 269 ((adev)->powerplay.pp_funcs->print_power_state((adev)->powerplay.pp_handle, (ps))) 272 ((adev)->powerplay.pp_funcs->vblank_too_short((adev)->powerplay.pp_handle)) 275 ((adev)->powerplay.pp_funcs->enable_bapm((adev)->powerplay.pp_handle, (e))) 278 ((adev)->powerplay.pp_funcs->set_fan_control_mode((adev)->powerplay.pp_handle, (m))) 281 ((adev)->powerplay.pp_funcs->get_fan_control_mode((adev)->powerplay.pp_handle)) 284 ((adev)->powerplay.pp_funcs->set_fan_speed_percent((adev)->powerplay.pp_handle, (s))) [all …]
|
D | amdgpu_pm.c | 93 if (adev->powerplay.pp_funcs->enable_bapm) in amdgpu_pm_acpi_event_handler() 110 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->read_sensor) in amdgpu_dpm_read_sensor() 111 ret = adev->powerplay.pp_funcs->read_sensor((adev)->powerplay.pp_handle, in amdgpu_dpm_read_sensor() 167 } else if (adev->powerplay.pp_funcs->get_current_power_state) { in amdgpu_get_dpm_state() 202 } else if (adev->powerplay.pp_funcs->dispatch_tasks) { in amdgpu_set_dpm_state() 295 else if (adev->powerplay.pp_funcs->get_performance_level) in amdgpu_get_dpm_forced_performance_level() 366 else if (adev->powerplay.pp_funcs->get_performance_level) in amdgpu_set_dpm_forced_performance_level() 386 } else if (adev->powerplay.pp_funcs->force_performance_level) { in amdgpu_set_dpm_forced_performance_level() 418 } else if (adev->powerplay.pp_funcs->get_pp_num_states) in amdgpu_get_pp_num_states() 448 } else if (adev->powerplay.pp_funcs->get_current_power_state in amdgpu_get_pp_cur_state() [all …]
|
D | soc15.c | 479 const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; in soc15_asic_get_baco_capability() local 481 if (!pp_funcs || !pp_funcs->get_asic_baco_capability) { in soc15_asic_get_baco_capability() 486 return pp_funcs->get_asic_baco_capability(pp_handle, cap); in soc15_asic_get_baco_capability() 492 const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; in soc15_asic_baco_reset() local 494 if (!pp_funcs ||!pp_funcs->get_asic_baco_state ||!pp_funcs->set_asic_baco_state) in soc15_asic_baco_reset() 498 if (pp_funcs->set_asic_baco_state(pp_handle, 1)) in soc15_asic_baco_reset() 502 if (pp_funcs->set_asic_baco_state(pp_handle, 0)) in soc15_asic_baco_reset() 514 if (!adev->powerplay.pp_funcs || in soc15_mode2_reset() 515 !adev->powerplay.pp_funcs->asic_reset_mode_2) in soc15_mode2_reset() 518 return adev->powerplay.pp_funcs->asic_reset_mode_2(adev->powerplay.pp_handle); in soc15_mode2_reset()
|
D | amdgpu_acp.c | 139 if (adev->powerplay.pp_funcs && in acp_poweroff() 140 adev->powerplay.pp_funcs->set_powergating_by_smu) in acp_poweroff() 160 if (adev->powerplay.pp_funcs->set_powergating_by_smu) in acp_poweron() 532 if (adev->powerplay.pp_funcs && in acp_set_powergating_state() 533 adev->powerplay.pp_funcs->set_powergating_by_smu) in acp_set_powergating_state()
|
D | smu_v11_0_i2c.c | 513 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access) in smu_v11_0_i2c_bus_lock() 517 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access(adev->powerplay.pp_handle, true)) in smu_v11_0_i2c_bus_lock() 529 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access) in smu_v11_0_i2c_bus_unlock() 533 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access(adev->powerplay.pp_handle, in smu_v11_0_i2c_bus_unlock()
|
D | amdgpu_amdkfd.c | 448 else if (adev->powerplay.pp_funcs) { in amdgpu_amdkfd_get_local_mem_info() 473 else if (adev->powerplay.pp_funcs) in amdgpu_amdkfd_get_max_engine_clock_in_mhz() 663 else if (adev->powerplay.pp_funcs && in amdgpu_amdkfd_set_compute_idle() 664 adev->powerplay.pp_funcs->switch_power_profile) in amdgpu_amdkfd_set_compute_idle()
|
D | vi.c | 1466 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu() 1485 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu() 1504 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu() 1519 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu() 1532 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu() 1547 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu() 1562 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
|
D | amdgpu_dpm.c | 920 return (adev)->powerplay.pp_funcs->get_sclk((adev)->powerplay.pp_handle, (low)); in amdgpu_dpm_get_sclk() 937 return (adev)->powerplay.pp_funcs->get_mclk((adev)->powerplay.pp_handle, (low)); in amdgpu_dpm_get_mclk() 955 ret = ((adev)->powerplay.pp_funcs->set_powergating_by_smu( in amdgpu_dpm_set_powergating_by_smu() 960 ret = ((adev)->powerplay.pp_funcs->set_powergating_by_smu( in amdgpu_dpm_set_powergating_by_smu()
|
D | amdgpu_gfx.c | 551 (!adev->powerplay.pp_funcs || in amdgpu_gfx_off_ctrl() 552 !adev->powerplay.pp_funcs->set_powergating_by_smu)) in amdgpu_gfx_off_ctrl()
|
D | mmhub_v1_0.c | 302 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->set_powergating_by_smu) in mmhub_v1_0_update_power_gating()
|
D | sdma_v4_0.c | 1893 if ((adev->asic_type == CHIP_RAVEN && adev->powerplay.pp_funcs && in sdma_v4_0_hw_init() 1894 adev->powerplay.pp_funcs->set_powergating_by_smu) || in sdma_v4_0_hw_init() 1922 if ((adev->asic_type == CHIP_RAVEN && adev->powerplay.pp_funcs in sdma_v4_0_hw_fini() 1923 && adev->powerplay.pp_funcs->set_powergating_by_smu) || in sdma_v4_0_hw_fini()
|
D | amdgpu_device.c | 1979 adev->powerplay.pp_funcs && in amdgpu_device_enable_mgpu_fan_boost() 1980 adev->powerplay.pp_funcs->enable_mgpu_fan_boost) { in amdgpu_device_enable_mgpu_fan_boost() 2235 } else if (adev->powerplay.pp_funcs && in amdgpu_device_ip_suspend_phase2() 2236 adev->powerplay.pp_funcs->set_mp1_state) { in amdgpu_device_ip_suspend_phase2() 2237 r = adev->powerplay.pp_funcs->set_mp1_state( in amdgpu_device_ip_suspend_phase2()
|
D | gfx_v8_0.c | 5364 adev->powerplay.pp_funcs->set_powergating_by_smu) in gfx_v8_0_enable_gfx_static_mg_power_gating() 5879 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_tonga_update_gfx_clock_gating() 5901 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_tonga_update_gfx_clock_gating() 5931 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating() 5951 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating() 5973 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating() 5989 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating() 6004 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating()
|
D | amdgpu.h | 769 const struct amd_pm_funcs *pp_funcs; member
|
D | kv_dpm.c | 2971 adev->powerplay.pp_funcs = &kv_dpm_funcs; in kv_dpm_early_init()
|
D | si_dpm.c | 7923 adev->powerplay.pp_funcs = &si_dpm_funcs; in si_dpm_early_init()
|
/Linux-v5.4/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_pp_smu.c | 105 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->display_configuration_change) in dm_pp_apply_display_requirements() 106 adev->powerplay.pp_funcs->display_configuration_change( in dm_pp_apply_display_requirements() 342 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_clock_by_type) { in dm_pp_get_clock_levels_by_type() 343 if (adev->powerplay.pp_funcs->get_clock_by_type(pp_handle, in dm_pp_get_clock_levels_by_type() 359 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_display_mode_validation_clocks) { in dm_pp_get_clock_levels_by_type() 360 if (adev->powerplay.pp_funcs->get_display_mode_validation_clocks( in dm_pp_get_clock_levels_by_type() 424 const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; in dm_pp_get_clock_levels_by_type_with_latency() local 427 if (pp_funcs && pp_funcs->get_clock_by_type_with_latency) { in dm_pp_get_clock_levels_by_type_with_latency() 428 ret = pp_funcs->get_clock_by_type_with_latency(pp_handle, in dm_pp_get_clock_levels_by_type_with_latency() 454 const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; in dm_pp_get_clock_levels_by_type_with_voltage() local [all …]
|
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/ |
D | amd_powerplay.c | 59 adev->powerplay.pp_funcs = &pp_dpm_funcs; in amd_powerplay_create()
|