/drivers/gpu/drm/amd/powerplay/smumgr/ |
D | tonga_smumgr.c | 45 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in tonga_start_in_protection_mode() 53 cgs_write_ind_register(smumgr->device, CGS_IND_REG__SMC, in tonga_start_in_protection_mode() 57 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in tonga_start_in_protection_mode() 61 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in tonga_start_in_protection_mode() 65 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in tonga_start_in_protection_mode() 69 cgs_write_ind_register(smumgr->device, CGS_IND_REG__SMC, in tonga_start_in_protection_mode() 86 CGS_IND_REG__SMC, SMU_STATUS, SMU_PASS)) { in tonga_start_in_protection_mode() 108 cgs_write_ind_register(smumgr->device, CGS_IND_REG__SMC, in tonga_start_in_non_protection_mode() 112 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in tonga_start_in_non_protection_mode() 124 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in tonga_start_in_non_protection_mode() [all …]
|
D | polaris10_smumgr.c | 226 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in polaris10_start_smu_in_protection_mode() 234 cgs_write_ind_register(smumgr->device, CGS_IND_REG__SMC, ixSMU_STATUS, 0); in polaris10_start_smu_in_protection_mode() 236 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in polaris10_start_smu_in_protection_mode() 240 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in polaris10_start_smu_in_protection_mode() 255 if (1 != SMUM_READ_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in polaris10_start_smu_in_protection_mode() 259 cgs_write_ind_register(smumgr->device, CGS_IND_REG__SMC, ixFIRMWARE_FLAGS, 0); in polaris10_start_smu_in_protection_mode() 261 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in polaris10_start_smu_in_protection_mode() 264 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in polaris10_start_smu_in_protection_mode() 282 cgs_write_ind_register(smumgr->device, CGS_IND_REG__SMC, in polaris10_start_smu_in_non_protection_mode() 285 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in polaris10_start_smu_in_non_protection_mode() [all …]
|
D | fiji_smumgr.c | 69 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode() 77 cgs_write_ind_register(smumgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode() 80 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode() 84 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode() 92 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode() 96 cgs_write_ind_register(smumgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode() 111 if (SMUM_READ_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode() 133 cgs_write_ind_register(smumgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_non_protection_mode() 137 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_non_protection_mode() 148 SMUM_WRITE_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_non_protection_mode() [all …]
|
D | iceland_smumgr.c | 44 SMUM_WRITE_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in iceland_start_smc() 52 SMUM_WRITE_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in iceland_reset_smc() 60 SMUM_WRITE_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in iceland_stop_smc_clock() 67 SMUM_WRITE_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, in iceland_start_smc_clock() 144 val = cgs_read_ind_register(smumgr->device, CGS_IND_REG__SMC, in iceland_smu_upload_firmware_image() 146 cgs_write_ind_register(smumgr->device, CGS_IND_REG__SMC, in iceland_smu_upload_firmware_image()
|
D | fiji_smc.c | 1507 efuse = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, in fiji_populate_clock_stretcher_data_table() 1509 efuse2 = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, in fiji_populate_clock_stretcher_data_table() 1544 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, PWR_CKS_ENABLE, in fiji_populate_clock_stretcher_data_table() 1546 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, PWR_CKS_ENABLE, in fiji_populate_clock_stretcher_data_table() 1548 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, PWR_CKS_ENABLE, in fiji_populate_clock_stretcher_data_table() 1550 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, PWR_CKS_ENABLE, in fiji_populate_clock_stretcher_data_table() 1566 value = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, in fiji_populate_clock_stretcher_data_table() 1598 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, in fiji_populate_clock_stretcher_data_table() 1639 value = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixPWR_CKS_CNTL); in fiji_populate_clock_stretcher_data_table() 1641 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixPWR_CKS_CNTL, value); in fiji_populate_clock_stretcher_data_table() [all …]
|
D | tonga_smc.c | 1571 efuse = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, in tonga_populate_clock_stretcher_data_table() 1573 efuse2 = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, in tonga_populate_clock_stretcher_data_table() 1618 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, PWR_CKS_ENABLE, in tonga_populate_clock_stretcher_data_table() 1620 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, PWR_CKS_ENABLE, in tonga_populate_clock_stretcher_data_table() 1622 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, PWR_CKS_ENABLE, in tonga_populate_clock_stretcher_data_table() 1624 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, PWR_CKS_ENABLE, in tonga_populate_clock_stretcher_data_table() 1640 value = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, in tonga_populate_clock_stretcher_data_table() 1672 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, in tonga_populate_clock_stretcher_data_table() 1711 value = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, in tonga_populate_clock_stretcher_data_table() 1714 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, in tonga_populate_clock_stretcher_data_table() [all …]
|
D | polaris10_smc.c | 1371 efuse = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, in polaris10_populate_clock_stretcher_data_table() 1423 value = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixPWR_CKS_CNTL); in polaris10_populate_clock_stretcher_data_table() 1425 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixPWR_CKS_CNTL, value); in polaris10_populate_clock_stretcher_data_table() 1471 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, smu_data->smu7_data.soft_regs_start + in polaris10_populate_vr_config() 1692 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, in polaris10_init_smc_table() 1943 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in polaris10_thermal_setup_fan_table() 2000 hwmgr->device, CGS_IND_REG__SMC, in polaris10_thermal_setup_fan_table() 2044 CGS_IND_REG__SMC, mm_boot_level_offset); in polaris10_update_uvd_smc_table() 2048 CGS_IND_REG__SMC, mm_boot_level_offset, mm_boot_level_value); in polaris10_update_uvd_smc_table() 2079 CGS_IND_REG__SMC, mm_boot_level_offset); in polaris10_update_vce_smc_table() [all …]
|
D | smu7_smumgr.c | 161 …return ((0 == SMUM_READ_VFPF_INDIRECT_FIELD(smumgr->device, CGS_IND_REG__SMC, SMC_SYSCON_CLOCK_CNT… in smu7_is_smc_ram_running() 162 && (0x20100 <= cgs_read_ind_register(smumgr->device, CGS_IND_REG__SMC, ixSMC_PC_C))); in smu7_is_smc_ram_running() 405 cgs_write_ind_register(smumgr->device, CGS_IND_REG__SMC, in smu7_request_smu_load_fw()
|
D | iceland_smc.c | 1859 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, in iceland_init_smc_table() 2020 …duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_FDO_CTRL1, FMAX_DUTY100… in iceland_thermal_setup_fan_table() 2063 …fan_table.TempSrc = (uint8_t)PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_MULT… in iceland_thermal_setup_fan_table() 2580 CGS_IND_REG__SMC, FEATURE_STATUS, VOLTAGE_CONTROLLER_ON)) in iceland_is_dpm_running()
|
/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | smu7_thermal.c | 65 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_get_fan_speed_percent() 67 duty = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_get_fan_speed_percent() 94 tach_period = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_get_fan_speed_rpm() 117 PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_set_static_mode() 120 PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_set_static_mode() 125 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_set_static_mode() 127 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_set_static_mode() 141 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_set_default_mode() 143 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_set_default_mode() 216 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_set_fan_speed_percent() [all …]
|
D | smu7_hwmgr.c | 193 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_enable_voltage_control() 346 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_program_static_screen_threshold_parameters() 350 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_program_static_screen_threshold_parameters() 366 cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, in smu7_enable_display_gap() 375 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, in smu7_enable_display_gap() 392 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_program_voting_clients() 394 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_program_voting_clients() 397 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, in smu7_program_voting_clients() 399 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, in smu7_program_voting_clients() 401 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, in smu7_program_voting_clients() [all …]
|
D | cz_hwmgr.c | 1771 CGS_IND_REG__SMC, in cz_print_clock_levels() 1894 CGS_IND_REG__SMC, ixTHM_TCON_CUR_TMP); in cz_thermal_get_temperature() 1919 …uint32_t sclk_index = PHM_GET_FIELD(cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixTARGE… in cz_read_sensor() 1921 …uint32_t uvd_index = PHM_GET_FIELD(cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixTARGET… in cz_read_sensor() 1923 …uint32_t vce_index = PHM_GET_FIELD(cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixTARGET… in cz_read_sensor() 1944 tmp = (cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixSMUSVI_NB_CURRENTVID) & in cz_read_sensor() 1950 tmp = (cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixSMUSVI_GFX_CURRENTVID) & in cz_read_sensor()
|
D | cz_hwmgr.h | 46 cgs_write_ind_register(device, CGS_IND_REG__SMC, ix##reg, value)
|
D | smu7_powertune.c | 739 data = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, config_regs->offset); in smu7_program_pt_config_registers() 761 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, config_regs->offset, data); in smu7_program_pt_config_registers()
|
/drivers/gpu/drm/amd/include/ |
D | cgs_common.h | 49 CGS_IND_REG__SMC, enumerator
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_cgs.c | 235 case CGS_IND_REG__SMC: in amdgpu_cgs_read_ind_register() 263 case CGS_IND_REG__SMC: in amdgpu_cgs_write_ind_register()
|