Home
last modified time | relevance | path

Searched refs:PP_ASSERT_WITH_CODE (Results 1 – 25 of 32) sorted by relevance

12

/linux-5.19.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dvega20_smumgr.c171 PP_ASSERT_WITH_CODE(table_id < TABLE_COUNT, in vega20_copy_table_from_smc()
173 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega20_copy_table_from_smc()
175 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega20_copy_table_from_smc()
178 PP_ASSERT_WITH_CODE((ret = smum_send_msg_to_smc_with_parameter(hwmgr, in vega20_copy_table_from_smc()
184 PP_ASSERT_WITH_CODE((ret = smum_send_msg_to_smc_with_parameter(hwmgr, in vega20_copy_table_from_smc()
190 PP_ASSERT_WITH_CODE((ret = smum_send_msg_to_smc_with_parameter(hwmgr, in vega20_copy_table_from_smc()
216 PP_ASSERT_WITH_CODE(table_id < TABLE_COUNT, in vega20_copy_table_to_smc()
218 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega20_copy_table_to_smc()
220 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega20_copy_table_to_smc()
228 PP_ASSERT_WITH_CODE((ret = smum_send_msg_to_smc_with_parameter(hwmgr, in vega20_copy_table_to_smc()
[all …]
Dvega12_smumgr.c47 PP_ASSERT_WITH_CODE(table_id < TABLE_COUNT, in vega12_copy_table_from_smc()
49 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega12_copy_table_from_smc()
51 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_from_smc()
53 PP_ASSERT_WITH_CODE(smum_send_msg_to_smc_with_parameter(hwmgr, in vega12_copy_table_from_smc()
58 PP_ASSERT_WITH_CODE(smum_send_msg_to_smc_with_parameter(hwmgr, in vega12_copy_table_from_smc()
64 PP_ASSERT_WITH_CODE(smum_send_msg_to_smc_with_parameter(hwmgr, in vega12_copy_table_from_smc()
91 PP_ASSERT_WITH_CODE(table_id < TABLE_COUNT, in vega12_copy_table_to_smc()
93 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega12_copy_table_to_smc()
95 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_to_smc()
103 PP_ASSERT_WITH_CODE(smum_send_msg_to_smc_with_parameter(hwmgr, in vega12_copy_table_to_smc()
[all …]
Dsmu7_smumgr.c40 PP_ASSERT_WITH_CODE((0 == (3 & smc_addr)), "SMC address must be 4 byte aligned.", return -EINVAL); in smu7_set_smc_sram_address()
41PP_ASSERT_WITH_CODE((limit > (smc_addr + 3)), "SMC addr is beyond the SMC RAM area.", return -EINV… in smu7_set_smc_sram_address()
57PP_ASSERT_WITH_CODE((0 == (3 & smc_start_address)), "SMC address must be 4 byte aligned.", return … in smu7_copy_bytes_from_smc()
58PP_ASSERT_WITH_CODE((limit > (smc_start_address + byte_count)), "SMC address is beyond the SMC RAM… in smu7_copy_bytes_from_smc()
94PP_ASSERT_WITH_CODE((0 == (3 & smc_start_address)), "SMC address must be 4 byte aligned.", return … in smu7_copy_bytes_to_smc()
95PP_ASSERT_WITH_CODE((limit > (smc_start_address + byte_count)), "SMC address is beyond the SMC RAM… in smu7_copy_bytes_to_smc()
379 PP_ASSERT_WITH_CODE(0 == smu7_populate_single_firmware_entry(hwmgr, in smu7_request_smu_load_fw()
382 PP_ASSERT_WITH_CODE(0 == smu7_populate_single_firmware_entry(hwmgr, in smu7_request_smu_load_fw()
385 PP_ASSERT_WITH_CODE(0 == smu7_populate_single_firmware_entry(hwmgr, in smu7_request_smu_load_fw()
388 PP_ASSERT_WITH_CODE(0 == smu7_populate_single_firmware_entry(hwmgr, in smu7_request_smu_load_fw()
[all …]
Diceland_smumgr.c164PP_ASSERT_WITH_CODE((limit >= byte_count), "SMC address is beyond the SMC RAM area.", return -EINV… in iceland_upload_smc_firmware_data()
178 PP_ASSERT_WITH_CODE((0 == byte_count), "SMC size must be divisible by 4.", return -EINVAL); in iceland_upload_smc_firmware_data()
345 PP_ASSERT_WITH_CODE(false, in iceland_populate_dw8()
396 PP_ASSERT_WITH_CODE(NULL != hwmgr->dyn_state.cac_leakage_table, in iceland_populate_bapm_vddc_vid_sidd()
398 PP_ASSERT_WITH_CODE(hwmgr->dyn_state.cac_leakage_table->count <= 8, in iceland_populate_bapm_vddc_vid_sidd()
400PP_ASSERT_WITH_CODE(hwmgr->dyn_state.cac_leakage_table->count == hwmgr->dyn_state.vddc_dependency_… in iceland_populate_bapm_vddc_vid_sidd()
409 PP_ASSERT_WITH_CODE(false, "Iceland should always support EVV", return -EINVAL); in iceland_populate_bapm_vddc_vid_sidd()
422 PP_ASSERT_WITH_CODE(data->vddc_voltage_table.count <= 8, in iceland_populate_vddc_vid()
446 PP_ASSERT_WITH_CODE(false, in iceland_populate_pm_fuses()
452 PP_ASSERT_WITH_CODE(false, in iceland_populate_pm_fuses()
[all …]
Dvegam_smumgr.c139 PP_ASSERT_WITH_CODE(false, "SMU Firmware start failed!", return -1); in vegam_start_smu_in_protection_mode()
211 PP_ASSERT_WITH_CODE(0, "Failed to load SMU ucode.", return result); in vegam_start_smu()
798 PP_ASSERT_WITH_CODE((clock >= min), in vegam_get_sleep_divider_id_from_clock()
828 PP_ASSERT_WITH_CODE((0 == result), in vegam_populate_single_graphic_level()
919 PP_ASSERT_WITH_CODE((1 <= pcie_entry_cnt), in vegam_populate_all_graphic_levels()
969 PP_ASSERT_WITH_CODE(!atomctrl_get_memory_pll_dividers_ai(hwmgr, in vegam_calculate_mclk_params()
996 PP_ASSERT_WITH_CODE(!result, in vegam_populate_single_memory_level()
1002 PP_ASSERT_WITH_CODE(!result, in vegam_populate_single_memory_level()
1051 PP_ASSERT_WITH_CODE((0 != dpm_table->mclk_table.dpm_levels[i].value), in vegam_populate_all_memory_levels()
1102 PP_ASSERT_WITH_CODE(i < table_info->vdd_dep_on_mclk->count, in vegam_populate_mvdd_value()
[all …]
Dfiji_smumgr.c149 PP_ASSERT_WITH_CODE(false, in fiji_start_smu_in_protection_mode()
229 PP_ASSERT_WITH_CODE(0 == smu7_read_smc_sram_dword(hwmgr, in fiji_setup_graphics_level_structure()
244 PP_ASSERT_WITH_CODE(0 == smu7_copy_bytes_to_smc(hwmgr, vr_config_addr, in fiji_setup_graphics_level_structure()
252 PP_ASSERT_WITH_CODE(0 == smu7_copy_bytes_to_smc(hwmgr, level_addr, in fiji_setup_graphics_level_structure()
265 PP_ASSERT_WITH_CODE(0 == fiji_setup_graphics_level_structure(hwmgr), in fiji_avfs_event_mgr()
269 PP_ASSERT_WITH_CODE(0 == smu7_setup_pwr_virus(hwmgr), in fiji_avfs_event_mgr()
273 PP_ASSERT_WITH_CODE(0 == fiji_start_avfs_btc(hwmgr), in fiji_avfs_event_mgr()
507 PP_ASSERT_WITH_CODE(cac_dtp_table->usTargetOperatingTemp <= 255, in fiji_populate_bapm_parameters_in_dpm_table()
613 PP_ASSERT_WITH_CODE(false, in fiji_populate_dw8()
700 PP_ASSERT_WITH_CODE(false, in fiji_populate_pm_fuses()
[all …]
Dpolaris10_smumgr.c131 PP_ASSERT_WITH_CODE(0 == smu7_read_smc_sram_dword(hwmgr, in polaris10_setup_graphics_level_structure()
142 PP_ASSERT_WITH_CODE(0 == smu7_copy_bytes_to_smc(hwmgr, vr_config_address, in polaris10_setup_graphics_level_structure()
149 PP_ASSERT_WITH_CODE(0 == smu7_copy_bytes_to_smc(hwmgr, graphics_level_address, in polaris10_setup_graphics_level_structure()
157 PP_ASSERT_WITH_CODE(0 == smu7_copy_bytes_to_smc(hwmgr, graphics_level_address, in polaris10_setup_graphics_level_structure()
166 PP_ASSERT_WITH_CODE(0 == smu7_copy_bytes_to_smc(hwmgr, graphics_level_address, in polaris10_setup_graphics_level_structure()
182 PP_ASSERT_WITH_CODE(0 == polaris10_setup_graphics_level_structure(hwmgr), in polaris10_avfs_event_mgr()
188 PP_ASSERT_WITH_CODE(0 == smu7_setup_pwr_virus(hwmgr), in polaris10_avfs_event_mgr()
193 PP_ASSERT_WITH_CODE(0 == polaris10_perform_btc(hwmgr), in polaris10_avfs_event_mgr()
239 PP_ASSERT_WITH_CODE(false, "SMU Firmware start failed!", return -1); in polaris10_start_smu_in_protection_mode()
309 PP_ASSERT_WITH_CODE(0, "Failed to load SMU ucode.", return result); in polaris10_start_smu()
[all …]
Dtonga_smumgr.c452 PP_ASSERT_WITH_CODE(!result, in tonga_populate_smc_voltage_tables()
457 PP_ASSERT_WITH_CODE(!result, in tonga_populate_smc_voltage_tables()
462 PP_ASSERT_WITH_CODE(!result, in tonga_populate_smc_voltage_tables()
467 PP_ASSERT_WITH_CODE(!result, in tonga_populate_smc_voltage_tables()
472 PP_ASSERT_WITH_CODE(!result, in tonga_populate_smc_voltage_tables()
556 PP_ASSERT_WITH_CODE(result == 0, in tonga_calculate_sclk_params()
638 PP_ASSERT_WITH_CODE((!result), in tonga_populate_single_graphic_level()
736 PP_ASSERT_WITH_CODE((pcie_entry_count >= 1), in tonga_populate_all_graphic_levels()
812 PP_ASSERT_WITH_CODE( in tonga_calculate_mclk_params()
987 PP_ASSERT_WITH_CODE( in tonga_populate_single_memory_level()
[all …]
Dci_smumgr.c316 PP_ASSERT_WITH_CODE(result == 0, in ci_calculate_sclk_params()
553 PP_ASSERT_WITH_CODE(false, in ci_populate_dw8()
586 PP_ASSERT_WITH_CODE(NULL != hwmgr->dyn_state.cac_leakage_table, in ci_populate_bapm_vddc_vid_sidd()
588 PP_ASSERT_WITH_CODE(hwmgr->dyn_state.cac_leakage_table->count <= 8, in ci_populate_bapm_vddc_vid_sidd()
590PP_ASSERT_WITH_CODE(hwmgr->dyn_state.cac_leakage_table->count == hwmgr->dyn_state.vddc_dependency_… in ci_populate_bapm_vddc_vid_sidd()
614 PP_ASSERT_WITH_CODE(data->vddc_voltage_table.count <= 8, in ci_populate_vddc_vid()
774 PP_ASSERT_WITH_CODE(NULL != hwmgr->dyn_state.vddc_dependency_on_sclk, in ci_get_std_voltage_value_sidd()
854 PP_ASSERT_WITH_CODE(0 == result, "do not populate SMC VDDC voltage table", return -EINVAL); in ci_populate_smc_vddc_table()
884 PP_ASSERT_WITH_CODE(result == 0, "do not populate SMC VDDCI voltage table", return -EINVAL); in ci_populate_smc_vdd_ci_table()
912 PP_ASSERT_WITH_CODE(result == 0, "do not populate SMC mvdd voltage table", return -EINVAL); in ci_populate_smc_mvdd_table()
[all …]
Dvega10_smumgr.c44 PP_ASSERT_WITH_CODE(table_id < MAX_SMU_TABLE, in vega10_copy_table_from_smc()
46 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_from_smc()
48 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_from_smc()
83 PP_ASSERT_WITH_CODE(table_id < MAX_SMU_TABLE, in vega10_copy_table_to_smc()
85 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_to_smc()
87 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_to_smc()
181 PP_ASSERT_WITH_CODE(!smum_send_msg_to_smc(hwmgr, in vega10_verify_smc_interface()
360 PP_ASSERT_WITH_CODE(!vega10_verify_smc_interface(hwmgr), in vega10_start_smu()
Dsmu10_smumgr.c123 PP_ASSERT_WITH_CODE(table_id < MAX_SMU_TABLE, in smu10_copy_table_from_smc()
125 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in smu10_copy_table_from_smc()
127 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in smu10_copy_table_from_smc()
157 PP_ASSERT_WITH_CODE(table_id < MAX_SMU_TABLE, in smu10_copy_table_to_smc()
159 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in smu10_copy_table_to_smc()
161 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in smu10_copy_table_to_smc()
/linux-5.19.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega12_hwmgr.c463 PP_ASSERT_WITH_CODE(!vega12_init_sclk_threshold(hwmgr), in vega12_setup_asic_task()
533 PP_ASSERT_WITH_CODE(!ret, in vega12_override_pcie_parameters()
550 PP_ASSERT_WITH_CODE(!ret, in vega12_override_pcie_parameters()
560 PP_ASSERT_WITH_CODE(!ret, in vega12_override_pcie_parameters()
578 PP_ASSERT_WITH_CODE(!ret, in vega12_get_number_of_dpm_level()
592 PP_ASSERT_WITH_CODE(smum_send_msg_to_smc_with_parameter(hwmgr, in vega12_get_dpm_frequency_by_index()
608 PP_ASSERT_WITH_CODE(!ret, in vega12_setup_single_dpm_table()
616 PP_ASSERT_WITH_CODE(!ret, in vega12_setup_single_dpm_table()
648 PP_ASSERT_WITH_CODE(!ret, in vega12_setup_default_dpm_tables()
661 PP_ASSERT_WITH_CODE(!ret, in vega12_setup_default_dpm_tables()
[all …]
Dvega20_hwmgr.c498 PP_ASSERT_WITH_CODE(!ret, in vega20_setup_asic_task()
535 PP_ASSERT_WITH_CODE(!ret, in vega20_get_number_of_dpm_level()
551 PP_ASSERT_WITH_CODE(!ret, in vega20_get_dpm_frequency_by_index()
565 PP_ASSERT_WITH_CODE(!ret, in vega20_setup_single_dpm_table()
573 PP_ASSERT_WITH_CODE(!ret, in vega20_setup_single_dpm_table()
593 PP_ASSERT_WITH_CODE(!ret, in vega20_setup_gfxclk_dpm_table()
614 PP_ASSERT_WITH_CODE(!ret, in vega20_setup_memclk_dpm_table()
646 PP_ASSERT_WITH_CODE(!ret, in vega20_setup_default_dpm_tables()
673 PP_ASSERT_WITH_CODE(!ret, in vega20_setup_default_dpm_tables()
686 PP_ASSERT_WITH_CODE(!ret, in vega20_setup_default_dpm_tables()
[all …]
Dvega12_processpptables.c68 PP_ASSERT_WITH_CODE((powerplay_table->sHeader.format_revision >= in check_powerplay_tables()
71 PP_ASSERT_WITH_CODE(powerplay_table->sHeader.structuresize > 0, in check_powerplay_tables()
106 PP_ASSERT_WITH_CODE( in append_vbios_pptable()
271 PP_ASSERT_WITH_CODE((hwmgr->pptable != NULL), in vega12_pp_tables_initialize()
275 PP_ASSERT_WITH_CODE((powerplay_table != NULL), in vega12_pp_tables_initialize()
279 PP_ASSERT_WITH_CODE((result == 0), in vega12_pp_tables_initialize()
284 PP_ASSERT_WITH_CODE((result == 0), in vega12_pp_tables_initialize()
288 PP_ASSERT_WITH_CODE((result == 0), in vega12_pp_tables_initialize()
366 PP_ASSERT_WITH_CODE(pp_table, "Missing PowerPlay Table!",
376 PP_ASSERT_WITH_CODE(pp_table->usStateArrayOffset > 0,
[all …]
Dprocess_pptables_v1_0.c57 PP_ASSERT_WITH_CODE((~powerplay_caps & ____RETIRE16____), in set_platform_caps()
59 PP_ASSERT_WITH_CODE((~powerplay_caps & ____RETIRE64____), in set_platform_caps()
61 PP_ASSERT_WITH_CODE((~powerplay_caps & ____RETIRE512____), in set_platform_caps()
63 PP_ASSERT_WITH_CODE((~powerplay_caps & ____RETIRE1024____), in set_platform_caps()
65 PP_ASSERT_WITH_CODE((~powerplay_caps & ____RETIRE2048____), in set_platform_caps()
165 PP_ASSERT_WITH_CODE((0 != vddc_lookup_pp_tables->ucNumEntries), in get_vddc_lookup_table()
321 PP_ASSERT_WITH_CODE((0 != clk_volt_pp_table->count), in get_valid_clk()
348 PP_ASSERT_WITH_CODE((0 != limitable->ucNumEntries), "Invalid PowerPlay Table!", return -1); in get_hard_limits()
371 PP_ASSERT_WITH_CODE((0 != mclk_dep_table->ucNumEntries), in get_mclk_voltage_dependency_table()
415 PP_ASSERT_WITH_CODE((0 != tonga_table->ucNumEntries), in get_sclk_voltage_dependency_table()
[all …]
Dvega10_hwmgr.c99 PP_ASSERT_WITH_CODE((PhwVega10_Magic == hw_ps->magic), in cast_phw_vega10_power_state()
109 PP_ASSERT_WITH_CODE((PhwVega10_Magic == hw_ps->magic), in cast_const_phw_vega10_power_state()
525 PP_ASSERT_WITH_CODE(lookup_table->count != 0, in vega10_get_socclk_for_voltage_evv()
536 PP_ASSERT_WITH_CODE(entry_id < table_info->vdd_dep_on_socclk->count, in vega10_get_socclk_for_voltage_evv()
580 PP_ASSERT_WITH_CODE(!atomctrl_get_voltage_evv_on_sclk_ai(hwmgr, in vega10_get_evv_voltages()
587 PP_ASSERT_WITH_CODE((vddc < 2000 && vddc != 0), in vega10_get_evv_voltages()
717 PP_ASSERT_WITH_CODE(lookup_table && lookup_table->count, in vega10_sort_lookup_table()
776 PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table, in vega10_set_private_data_based_on_pptable()
778 PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table->count >= 1, in vega10_set_private_data_based_on_pptable()
781 PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table, in vega10_set_private_data_based_on_pptable()
[all …]
Dsmu7_hwmgr.c181 PP_ASSERT_WITH_CODE((PhwVIslands_Magic == hw_ps->magic), in cast_phw_smu7_power_state()
191 PP_ASSERT_WITH_CODE((PhwVIslands_Magic == hw_ps->magic), in cast_const_phw_smu7_power_state()
232 PP_ASSERT_WITH_CODE((7 >= link_width), in smu7_get_current_pcie_lane_number()
294 PP_ASSERT_WITH_CODE((NULL != voltage_table), in phm_get_svi2_voltage_table_v0()
329 PP_ASSERT_WITH_CODE((0 == result), in smu7_construct_voltage_tables()
340 PP_ASSERT_WITH_CODE((0 == result), in smu7_construct_voltage_tables()
349 PP_ASSERT_WITH_CODE((0 == result), in smu7_construct_voltage_tables()
359 PP_ASSERT_WITH_CODE((0 == result), in smu7_construct_voltage_tables()
368 PP_ASSERT_WITH_CODE((0 == result), in smu7_construct_voltage_tables()
377 PP_ASSERT_WITH_CODE((0 == result), in smu7_construct_voltage_tables()
[all …]
Dvega10_processpptables.c76 PP_ASSERT_WITH_CODE((powerplay_table->sHeader.format_revision >= in check_powerplay_tables()
79 PP_ASSERT_WITH_CODE(powerplay_table->usStateArrayOffset, in check_powerplay_tables()
81 PP_ASSERT_WITH_CODE(powerplay_table->sHeader.structuresize > 0, in check_powerplay_tables()
83 PP_ASSERT_WITH_CODE(state_arrays->ucNumEntries > 0, in check_powerplay_tables()
133 PP_ASSERT_WITH_CODE((powerplay_table->usThermalControllerOffset != 0), in init_thermal_controller()
171 PP_ASSERT_WITH_CODE((fan_table_v1->ucRevId >= 8), in init_thermal_controller()
351 PP_ASSERT_WITH_CODE((mm_dependency_table->ucNumEntries != 0), in get_mm_clock_voltage_table()
574 PP_ASSERT_WITH_CODE(clk_dep_table->ucNumEntries, in get_socclk_voltage_dependency_table()
604 PP_ASSERT_WITH_CODE(mclk_dep_table->ucNumEntries, in get_mclk_voltage_dependency_table()
641 PP_ASSERT_WITH_CODE((clk_dep_table->ucNumEntries != 0), in get_gfxclk_voltage_dependency_table()
[all …]
Dvega12_thermal.c34 PP_ASSERT_WITH_CODE(!smum_send_msg_to_smc(hwmgr, in vega12_get_current_rpm()
74 PP_ASSERT_WITH_CODE(!vega12_enable_smc_features( in vega12_enable_fan_control_feature()
92 PP_ASSERT_WITH_CODE(!vega12_enable_smc_features( in vega12_disable_fan_control_feature()
109 PP_ASSERT_WITH_CODE( in vega12_fan_ctrl_start_smc_fan_control()
123 PP_ASSERT_WITH_CODE(!vega12_disable_fan_control_feature(hwmgr), in vega12_fan_ctrl_stop_smc_fan_control()
Dsmu_helper.c211 PP_ASSERT_WITH_CODE((NULL != vol_table), in phm_trim_voltage_table()
254 PP_ASSERT_WITH_CODE((0 != dep_table->count), in phm_get_svi2_mvdd_voltage_table()
257 PP_ASSERT_WITH_CODE((NULL != vol_table), in phm_get_svi2_mvdd_voltage_table()
270 PP_ASSERT_WITH_CODE((0 == result), in phm_get_svi2_mvdd_voltage_table()
282 PP_ASSERT_WITH_CODE((0 != dep_table->count), in phm_get_svi2_vddci_voltage_table()
285 PP_ASSERT_WITH_CODE((NULL != vol_table), in phm_get_svi2_vddci_voltage_table()
298 PP_ASSERT_WITH_CODE((0 == result), in phm_get_svi2_vddci_voltage_table()
309 PP_ASSERT_WITH_CODE((0 != lookup_table->count), in phm_get_svi2_vdd_voltage_table()
312 PP_ASSERT_WITH_CODE((NULL != vol_table), in phm_get_svi2_vdd_voltage_table()
395 PP_ASSERT_WITH_CODE((NULL != lookup_table), in phm_get_voltage_index()
[all …]
Dvega10_powertune.c780PP_ASSERT_WITH_CODE((config_regs != NULL), "[vega10_program_didt_config_registers] Invalid config … in vega10_program_didt_config_registers()
1164PP_ASSERT_WITH_CODE((0 == result), "[DisableDiDtConfig] Pre DIDT disable clock gating failed!", re… in vega10_disable_se_edc_force_stall_config()
1181PP_ASSERT_WITH_CODE((0 == result), "[EnableDiDt] Attempt to enable DiDt Mode 0 Failed!", return re… in vega10_enable_didt_config()
1185PP_ASSERT_WITH_CODE((0 == result), "[EnableDiDt] Attempt to enable DiDt Mode 2 Failed!", return re… in vega10_enable_didt_config()
1189PP_ASSERT_WITH_CODE((0 == result), "[EnableDiDt] Attempt to enable DiDt Mode 3 Failed!", return re… in vega10_enable_didt_config()
1195PP_ASSERT_WITH_CODE((0 == result), "[EnableDiDt] Attempt to enable DiDt Mode 5 Failed!", return re… in vega10_enable_didt_config()
1199PP_ASSERT_WITH_CODE((0 == result), "[EnableDiDt] Attempt to enable DiDt Mode 6 Failed!", return re… in vega10_enable_didt_config()
1208PP_ASSERT_WITH_CODE((0 == result), "[EnableDiDtConfig] Attempt to Enable DiDt feature Failed!", re… in vega10_enable_didt_config()
1228PP_ASSERT_WITH_CODE((0 == result), "[DisableDiDt] Attempt to disable DiDt Mode 0 Failed!", return … in vega10_disable_didt_config()
1232PP_ASSERT_WITH_CODE((0 == result), "[DisableDiDt] Attempt to disable DiDt Mode 2 Failed!", return … in vega10_disable_didt_config()
[all …]
Dsmu7_powertune.c907 PP_ASSERT_WITH_CODE((config_regs != NULL), "Invalid config register table.", return -EINVAL); in smu7_program_pt_config_registers()
988 PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", goto error); in smu7_enable_didt_config()
990 PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", goto error); in smu7_enable_didt_config()
993 PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", goto error); in smu7_enable_didt_config()
1000 PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", goto error); in smu7_enable_didt_config()
1003 PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", goto error); in smu7_enable_didt_config()
1005 PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", goto error); in smu7_enable_didt_config()
1008 PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", goto error); in smu7_enable_didt_config()
1010 PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", goto error); in smu7_enable_didt_config()
1016 PP_ASSERT_WITH_CODE((result == 0), "EnableDiDt failed.", goto error); in smu7_enable_didt_config()
[all …]
Dvega10_thermal.c186 PP_ASSERT_WITH_CODE(!vega10_enable_smc_features( in vega10_enable_fan_control_feature()
203 PP_ASSERT_WITH_CODE(!vega10_enable_smc_features( in vega10_disable_fan_control_feature()
220 PP_ASSERT_WITH_CODE(!vega10_enable_fan_control_feature(hwmgr), in vega10_fan_ctrl_start_smc_fan_control()
236 PP_ASSERT_WITH_CODE(!vega10_disable_fan_control_feature(hwmgr), in vega10_fan_ctrl_stop_smc_fan_control()
443 PP_ASSERT_WITH_CODE(!vega10_enable_smc_features(hwmgr, in vega10_thermal_enable_alert()
474 PP_ASSERT_WITH_CODE(!vega10_enable_smc_features(hwmgr, in vega10_thermal_disable_alert()
Dppatomfwctrl.c64 PP_ASSERT_WITH_CODE(table_address, in pp_atomfwctrl_get_voltage_info_table()
85 PP_ASSERT_WITH_CODE(voltage_info, in pp_atomfwctrl_is_voltage_controlled_by_gpio_v4()
106 PP_ASSERT_WITH_CODE(voltage_info, in pp_atomfwctrl_get_voltage_table_v4()
118 PP_ASSERT_WITH_CODE( in pp_atomfwctrl_get_voltage_table_v4()
154 PP_ASSERT_WITH_CODE(false, in pp_atomfwctrl_get_voltage_table_v4()
171 PP_ASSERT_WITH_CODE(table_address, in pp_atomfwctrl_get_gpio_lookup_table()
217 PP_ASSERT_WITH_CODE(gpio_lookup_table, in pp_atomfwctrl_get_pp_assign_pin()
Dvega20_thermal.c42 PP_ASSERT_WITH_CODE(!ret, in vega20_disable_fan_control_feature()
71 PP_ASSERT_WITH_CODE(!ret, in vega20_enable_fan_control_feature()
108 PP_ASSERT_WITH_CODE((ret = smum_send_msg_to_smc(hwmgr, in vega20_get_current_rpm()

12