Searched refs:smu_data (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/gpu/drm/amd/powerplay/smumgr/ |
D | smu7_smumgr.c | 380 struct smu7_smumgr *smu_data = (struct smu7_smumgr *)(hwmgr->smu_backend); in smu7_request_smu_load_fw() local 389 if (smu_data->soft_regs_start) in smu7_request_smu_load_fw() 391 smu_data->soft_regs_start + smum_get_offsetof(hwmgr, in smu7_request_smu_load_fw() 399 upper_32_bits(smu_data->smu_buffer.mc_addr)); in smu7_request_smu_load_fw() 402 lower_32_bits(smu_data->smu_buffer.mc_addr)); in smu7_request_smu_load_fw() 423 if (!smu_data->toc) { in smu7_request_smu_load_fw() 426 smu_data->toc = kzalloc(sizeof(struct SMU_DRAMData_TOC), GFP_KERNEL); in smu7_request_smu_load_fw() 427 if (!smu_data->toc) in smu7_request_smu_load_fw() 429 toc = smu_data->toc; in smu7_request_smu_load_fw() 465 memcpy_toio(smu_data->header_buffer.kaddr, smu_data->toc, in smu7_request_smu_load_fw() [all …]
|
D | polaris10_smumgr.c | 98 struct smu7_smumgr *smu_data = (struct smu7_smumgr *)(hwmgr->smu_backend); in polaris10_perform_btc() local 100 if (0 != smu_data->avfs_btc_param) { in polaris10_perform_btc() 101 …if (0 != smu7_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_PerformBtc, smu_data->avfs_btc_param… in polaris10_perform_btc() 106 if (smu_data->avfs_btc_param > 1) { in polaris10_perform_btc() 175 struct smu7_smumgr *smu_data = (struct smu7_smumgr *)(hwmgr->smu_backend); in polaris10_avfs_event_mgr() local 184 if (smu_data->avfs_btc_param > 1) { in polaris10_avfs_event_mgr() 293 struct polaris10_smumgr *smu_data = (struct polaris10_smumgr *)(hwmgr->smu_backend); in polaris10_start_smu() local 297 …smu_data->protected_mode = (uint8_t) (PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC… in polaris10_start_smu() 298 …smu_data->smu7_data.security_hard_key = (uint8_t) (PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS… in polaris10_start_smu() 301 if (smu_data->protected_mode == 0) in polaris10_start_smu() [all …]
|
D | tonga_smumgr.c | 501 struct tonga_smumgr *smu_data = (struct tonga_smumgr *)(hwmgr->smu_backend); in tonga_populate_smc_link_level() local 520 smu_data->smc_state_table.LinkLevelCount = in tonga_populate_smc_link_level() 679 struct tonga_smumgr *smu_data = (struct tonga_smumgr *)(hwmgr->smu_backend); in tonga_populate_all_graphic_levels() local 684 uint32_t level_array_address = smu_data->smu7_data.dpm_table_start + in tonga_populate_all_graphic_levels() 690 SMU72_Discrete_GraphicsLevel *levels = smu_data->smc_state_table.GraphicsLevel; in tonga_populate_all_graphic_levels() 703 &(smu_data->smc_state_table.GraphicsLevel[i])); in tonga_populate_all_graphic_levels() 709 smu_data->smc_state_table.GraphicsLevel[i].DeepSleepDivId = 0; in tonga_populate_all_graphic_levels() 713 smu_data->smc_state_table.GraphicsLevel[0].EnabledForActivity = 1; in tonga_populate_all_graphic_levels() 717 smu_data->smc_state_table.GraphicsLevel[dpm_table->sclk_table.count-1].DisplayWatermark = in tonga_populate_all_graphic_levels() 720 smu_data->smc_state_table.GraphicsDpmLevelCount = in tonga_populate_all_graphic_levels() [all …]
|
D | vegam_smumgr.c | 85 struct vegam_smumgr *smu_data; in vegam_smu_init() local 87 smu_data = kzalloc(sizeof(struct vegam_smumgr), GFP_KERNEL); in vegam_smu_init() 88 if (smu_data == NULL) in vegam_smu_init() 91 hwmgr->smu_backend = smu_data; in vegam_smu_init() 94 kfree(smu_data); in vegam_smu_init() 196 struct vegam_smumgr *smu_data = (struct vegam_smumgr *)(hwmgr->smu_backend); in vegam_start_smu() local 200 smu_data->protected_mode = (uint8_t)(PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, in vegam_start_smu() 202 smu_data->smu7_data.security_hard_key = (uint8_t)(PHM_READ_VFPF_INDIRECT_FIELD( in vegam_start_smu() 206 if (smu_data->protected_mode == 0) in vegam_start_smu() 218 &(smu_data->smu7_data.soft_regs_start), in vegam_start_smu() [all …]
|
D | fiji_smumgr.c | 203 struct smu7_smumgr *smu_data = (struct smu7_smumgr *)(hwmgr->smu_backend); in fiji_start_avfs_btc() local 205 if (0 != smu_data->avfs_btc_param) { in fiji_start_avfs_btc() 207 PPSMC_MSG_PerformBtc, smu_data->avfs_btc_param)) { in fiji_start_avfs_btc() 481 struct fiji_smumgr *smu_data = (struct fiji_smumgr *)(hwmgr->smu_backend); in fiji_initialize_power_tune_defaults() local 488 smu_data->power_tune_defaults = in fiji_initialize_power_tune_defaults() 492 smu_data->power_tune_defaults = &fiji_power_tune_data_set_array[0]; in fiji_initialize_power_tune_defaults() 499 struct fiji_smumgr *smu_data = (struct fiji_smumgr *)(hwmgr->smu_backend); in fiji_populate_bapm_parameters_in_dpm_table() local 500 const struct fiji_pt_defaults *defaults = smu_data->power_tune_defaults; in fiji_populate_bapm_parameters_in_dpm_table() 502 SMU73_Discrete_DpmTable *dpm_table = &(smu_data->smc_state_table); in fiji_populate_bapm_parameters_in_dpm_table() 582 struct fiji_smumgr *smu_data = (struct fiji_smumgr *)(hwmgr->smu_backend); in fiji_populate_svi_load_line() local [all …]
|
D | iceland_smumgr.c | 282 struct iceland_smumgr *smu_data = (struct iceland_smumgr *)(hwmgr->smu_backend); in iceland_initialize_power_tune_defaults() local 291 smu_data->power_tune_defaults = &defaults_icelandxt; in iceland_initialize_power_tune_defaults() 296 smu_data->power_tune_defaults = &defaults_icelandpro; in iceland_initialize_power_tune_defaults() 299 smu_data->power_tune_defaults = &defaults_iceland; in iceland_initialize_power_tune_defaults() 308 struct iceland_smumgr *smu_data = (struct iceland_smumgr *)(hwmgr->smu_backend); in iceland_populate_svi_load_line() local 309 const struct iceland_pt_defaults *defaults = smu_data->power_tune_defaults; in iceland_populate_svi_load_line() 311 smu_data->power_tune_table.SviLoadLineEn = defaults->svi_load_line_en; in iceland_populate_svi_load_line() 312 smu_data->power_tune_table.SviLoadLineVddC = defaults->svi_load_line_vddc; in iceland_populate_svi_load_line() 313 smu_data->power_tune_table.SviLoadLineTrimVddC = 3; in iceland_populate_svi_load_line() 314 smu_data->power_tune_table.SviLoadLineOffsetVddC = 0; in iceland_populate_svi_load_line() [all …]
|
D | ci_smumgr.c | 233 struct ci_smumgr *smu_data = (struct ci_smumgr *)(hwmgr->smu_backend); in ci_initialize_power_tune_defaults() local 242 smu_data->power_tune_defaults = &defaults_hawaii_pro; in ci_initialize_power_tune_defaults() 246 smu_data->power_tune_defaults = &defaults_hawaii_xt; in ci_initialize_power_tune_defaults() 252 smu_data->power_tune_defaults = &defaults_saturn_xt; in ci_initialize_power_tune_defaults() 269 smu_data->power_tune_defaults = &defaults_bonaire_xt; in ci_initialize_power_tune_defaults() 472 struct ci_smumgr *smu_data = (struct ci_smumgr *)(hwmgr->smu_backend); in ci_populate_all_graphic_levels() local 475 uint32_t array = smu_data->dpm_table_start + in ci_populate_all_graphic_levels() 480 smu_data->smc_state_table.GraphicsLevel; in ci_populate_all_graphic_levels() 490 smu_data->smc_state_table.GraphicsLevel[i].DeepSleepDivId = 0; in ci_populate_all_graphic_levels() 492 smu_data->smc_state_table.GraphicsLevel[i].DisplayWatermark = in ci_populate_all_graphic_levels() [all …]
|