Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/pp_psm.c psm_adjust_power_state_dynamic() -> (struct pp_hwmgr_func)->set_power_profile_mode()

Type Parameter Key Value
PARAM_VALUE 0 hwmgr 4096-ptr_max
PARAM_VALUE 0 hwmgr->dpm_level 0-1,3-u32max
PARAM_VALUE 0 hwmgr->hwmgr_func 4096-ptr_max
PARAM_VALUE 0 hwmgr->hwmgr_func->apply_clocks_adjust_rules 0,1984136137715445760,8412420676598710272
PARAM_VALUE 0 hwmgr->hwmgr_func->disable_smc_firmware_ctf 0,320402144971874304,4235145329258029056,5340594925240430592,8565130193669922816
PARAM_VALUE 0 hwmgr->hwmgr_func->set_cpu_power_state 0,5856536315792371712,9134132896884461568
PARAM_VALUE 0 hwmgr->hwmgr_func->set_power_profile_mode 587172374736793600,2266565664121556992,2897528509675454464,3866390541259759616
PARAM_VALUE 0 hwmgr->hwmgr_func->stop_thermal_controller 0,1506093590029230080,3693573413439086592,5406745503785533440,5881162152740569088
PARAM_VALUE 0 hwmgr->workload_setting 4096-ptr_max
PARAM_VALUE 0 *hwmgr->platform_descriptor.platformCaps 0-4294967295
PARAM_VALUE 1 input 4096-ptr_max
PARAM_VALUE 2 size 0
BUF_SIZE 0 hwmgr (-1),1256,3968,3984
BUF_SIZE 0 hwmgr (-1),1256,3968,3984
DATA_SOURCE 0 hwmgr $0
CONTAINER 0 -528-752+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 hwmgr->backend->force_pcie_gen 0-3[c]
HOST_DATA 0 hwmgr->backend->gfx_actual_soft_max_freq 0-4294967295
HOST_DATA 0 hwmgr->backend->gfx_actual_soft_min_freq 0-4294967295
HOST_DATA 0 hwmgr->fan_ctrl_default_mode 0-7[c]
HOST_DATA 0 hwmgr->microcode_version_info.MC 0-u32max
HOST_DATA 0 hwmgr->tmin 0-255[c]
NO_OVERFLOW_SIMPLE 0 hwmgr->boot_ps->classification.bios_index
NO_OVERFLOW_SIMPLE 0 hwmgr->current_ps->classification.bios_index
NO_OVERFLOW_SIMPLE 0 hwmgr->request_ps->classification.bios_index
NO_OVERFLOW_SIMPLE 0 hwmgr->uvd_ps->classification.bios_index
HALF_LOCKED2 &adev->pm.mutex

drivers/gpu/drm/amd/amdgpu/../pm/powerplay/amd_powerplay.c pp_dpm_switch_power_profile() -> (struct pp_hwmgr_func)->set_power_profile_mode()

Type Parameter Key Value
PARAM_VALUE 0 hwmgr 4096-ptr_max
PARAM_VALUE 0 hwmgr->dpm_level 0-1,3-u32max
PARAM_VALUE 0 hwmgr->hwmgr_func 4096-ptr_max
PARAM_VALUE 0 hwmgr->hwmgr_func->disable_power_features_for_compute_performance 0,2437339601128853504
PARAM_VALUE 0 hwmgr->hwmgr_func->set_power_profile_mode 587172374736793600,2266565664121556992,2897528509675454464,3866390541259759616
PARAM_VALUE 0 hwmgr->pm_en 1
PARAM_VALUE 0 hwmgr->workload_prority 4096-ptr_max
PARAM_VALUE 0 hwmgr->workload_setting 4096-ptr_max
PARAM_VALUE 1 input 4096-ptr_max
PARAM_VALUE 2 size 0
BUF_SIZE 0 hwmgr 1256,3984
BUF_SIZE 0 hwmgr 1256,3984
DATA_SOURCE 0 hwmgr $0
CONTAINER 0 -528-752+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &adev->pm.mutex
HALF_LOCKED2 &adev->gfx.workload_profile_mutex
HALF_LOCKED2 &adev->vcn.workload_profile_mutex
TYPE_LOCK (struct amdgpu_pm)->mutex

drivers/gpu/drm/amd/amdgpu/../pm/powerplay/amd_powerplay.c pp_set_power_profile_mode() -> (struct pp_hwmgr_func)->set_power_profile_mode()

Type Parameter Key Value
PARAM_VALUE 0 hwmgr 4096-ptr_max
PARAM_VALUE 0 hwmgr->dpm_level 2
PARAM_VALUE 0 hwmgr->hwmgr_func 4096-ptr_max
PARAM_VALUE 0 hwmgr->hwmgr_func->set_power_profile_mode 587172374736793600,2266565664121556992,2897528509675454464,3866390541259759616
PARAM_VALUE 0 hwmgr->pm_en 1
PARAM_VALUE 1 input 2920441983570579456
BUF_SIZE 0 hwmgr 1256,3984
BUF_SIZE 0 hwmgr 1256,3984
BUF_SIZE 1 input 512
BUF_SIZE 1 input 512
DATA_SOURCE 0 hwmgr $0
DATA_SOURCE 1 input $1
DATA_SOURCE 2 size $2
CONTAINER 0 -528-752+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
LOCK2 &adev->pm.mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct amdgpu_pm)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex