Lines Matching +full:0 +full:x255
38 #define MC_CG_ARB_FREQ_F0 0x0a
39 #define MC_CG_ARB_FREQ_F1 0x0b
40 #define MC_CG_ARB_FREQ_F2 0x0c
41 #define MC_CG_ARB_FREQ_F3 0x0d
43 #define SMC_RAM_END 0x40000
51 1, 0xF, 0xFD, 0x19, 5, 0x14, 0, 0xB0000,
52 …{ 0x2E, 0x00, 0x00, 0x88, 0x00, 0x00, 0x72, 0x60, 0x51, 0xA7, 0x79, 0x6B, 0x90, 0xBD,…
53 …{ 0x217, 0x217, 0x217, 0x242, 0x242, 0x242, 0x269, 0x269, 0x269, 0x2A1, 0x2A1, 0x2A1, 0x2C9, 0x2C9…
58 1, 0xF, 0xFD, 0x19, 5, 0x14, 0, 0x65062,
59 …{ 0x2E, 0x00, 0x00, 0x88, 0x00, 0x00, 0x72, 0x60, 0x51, 0xA7, 0x79, 0x6B, 0x90, 0xBD,…
60 …{ 0x217, 0x217, 0x217, 0x242, 0x242, 0x242, 0x269, 0x269, 0x269, 0x2A1, 0x2A1, 0x2A1, 0x2C9, 0x2C9…
65 1, 0xF, 0xFD, 0x19, 5, 45, 0, 0xB0000,
66 …{ 0x79, 0x253, 0x25D, 0xAE, 0x72, 0x80, 0x83, 0x86, 0x6F, 0xC8, 0xC9, 0xC9, 0x2F, 0x4D,…
67 …{ 0x17C, 0x172, 0x180, 0x1BC, 0x1B3, 0x1BD, 0x206, 0x200, 0x203, 0x25D, 0x25A, 0x255, 0x2C3, 0x2C5…
72 1, 0xF, 0xFD, 0x19, 5, 55, 0, 0x70000,
73 …{ 0x8C, 0x247, 0x249, 0xA6, 0x80, 0x81, 0x8B, 0x89, 0x86, 0xC9, 0xCA, 0xC9, 0x4D, 0x4D,…
74 …{ 0x187, 0x187, 0x187, 0x1C7, 0x1C7, 0x1C7, 0x210, 0x210, 0x210, 0x266, 0x266, 0x266, 0x2C9, 0x2C9…
79 { 0x10, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
80 { 0x10, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
81 { 0x10, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
82 { 0x10, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
83 { 0x11, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
84 { 0x11, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
85 { 0x11, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
86 { 0x11, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
87 { 0x12, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
88 { 0x12, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
89 { 0x12, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
90 { 0x12, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
91 { 0x2, 0x00003fff, 0, 0x4, CISLANDS_CONFIGREG_DIDT_IND },
92 { 0x2, 0x03ff0000, 16, 0x80, CISLANDS_CONFIGREG_DIDT_IND },
93 { 0x2, 0x78000000, 27, 0x3, CISLANDS_CONFIGREG_DIDT_IND },
94 { 0x1, 0x0000ffff, 0, 0x3FFF, CISLANDS_CONFIGREG_DIDT_IND },
95 { 0x1, 0xffff0000, 16, 0x3FFF, CISLANDS_CONFIGREG_DIDT_IND },
96 { 0x0, 0x00000001, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
97 { 0x30, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
98 { 0x30, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
99 { 0x30, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
100 { 0x30, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
101 { 0x31, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
102 { 0x31, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
103 { 0x31, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
104 { 0x31, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
105 { 0x32, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
106 { 0x32, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
107 { 0x32, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
108 { 0x32, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
109 { 0x22, 0x00003fff, 0, 0x4, CISLANDS_CONFIGREG_DIDT_IND },
110 { 0x22, 0x03ff0000, 16, 0x80, CISLANDS_CONFIGREG_DIDT_IND },
111 { 0x22, 0x78000000, 27, 0x3, CISLANDS_CONFIGREG_DIDT_IND },
112 { 0x21, 0x0000ffff, 0, 0x3FFF, CISLANDS_CONFIGREG_DIDT_IND },
113 { 0x21, 0xffff0000, 16, 0x3FFF, CISLANDS_CONFIGREG_DIDT_IND },
114 { 0x20, 0x00000001, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
115 { 0x50, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
116 { 0x50, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
117 { 0x50, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
118 { 0x50, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
119 { 0x51, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
120 { 0x51, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
121 { 0x51, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
122 { 0x51, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
123 { 0x52, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
124 { 0x52, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
125 { 0x52, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
126 { 0x52, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
127 { 0x42, 0x00003fff, 0, 0x4, CISLANDS_CONFIGREG_DIDT_IND },
128 { 0x42, 0x03ff0000, 16, 0x80, CISLANDS_CONFIGREG_DIDT_IND },
129 { 0x42, 0x78000000, 27, 0x3, CISLANDS_CONFIGREG_DIDT_IND },
130 { 0x41, 0x0000ffff, 0, 0x3FFF, CISLANDS_CONFIGREG_DIDT_IND },
131 { 0x41, 0xffff0000, 16, 0x3FFF, CISLANDS_CONFIGREG_DIDT_IND },
132 { 0x40, 0x00000001, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
133 { 0x70, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
134 { 0x70, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
135 { 0x70, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
136 { 0x70, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
137 { 0x71, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
138 { 0x71, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
139 { 0x71, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
140 { 0x71, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
141 { 0x72, 0x000000ff, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
142 { 0x72, 0x0000ff00, 8, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
143 { 0x72, 0x00ff0000, 16, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
144 { 0x72, 0xff000000, 24, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
145 { 0x62, 0x00003fff, 0, 0x4, CISLANDS_CONFIGREG_DIDT_IND },
146 { 0x62, 0x03ff0000, 16, 0x80, CISLANDS_CONFIGREG_DIDT_IND },
147 { 0x62, 0x78000000, 27, 0x3, CISLANDS_CONFIGREG_DIDT_IND },
148 { 0x61, 0x0000ffff, 0, 0x3FFF, CISLANDS_CONFIGREG_DIDT_IND },
149 { 0x61, 0xffff0000, 16, 0x3FFF, CISLANDS_CONFIGREG_DIDT_IND },
150 { 0x60, 0x00000001, 0, 0x0, CISLANDS_CONFIGREG_DIDT_IND },
151 { 0xFFFFFFFF }
191 case 0x6649: in ci_initialize_powertune_defaults()
192 case 0x6650: in ci_initialize_powertune_defaults()
193 case 0x6651: in ci_initialize_powertune_defaults()
194 case 0x6658: in ci_initialize_powertune_defaults()
195 case 0x665C: in ci_initialize_powertune_defaults()
196 case 0x665D: in ci_initialize_powertune_defaults()
200 case 0x6640: in ci_initialize_powertune_defaults()
201 case 0x6641: in ci_initialize_powertune_defaults()
202 case 0x6646: in ci_initialize_powertune_defaults()
203 case 0x6647: in ci_initialize_powertune_defaults()
206 case 0x67B8: in ci_initialize_powertune_defaults()
207 case 0x67B0: in ci_initialize_powertune_defaults()
210 case 0x67BA: in ci_initialize_powertune_defaults()
211 case 0x67B1: in ci_initialize_powertune_defaults()
214 case 0x67A0: in ci_initialize_powertune_defaults()
215 case 0x67A1: in ci_initialize_powertune_defaults()
216 case 0x67A2: in ci_initialize_powertune_defaults()
217 case 0x67A8: in ci_initialize_powertune_defaults()
218 case 0x67A9: in ci_initialize_powertune_defaults()
219 case 0x67AA: in ci_initialize_powertune_defaults()
220 case 0x67B9: in ci_initialize_powertune_defaults()
221 case 0x67BE: in ci_initialize_powertune_defaults()
226 pi->dte_tj_offset = 0; in ci_initialize_powertune_defaults()
267 for (i = 0; i < rdev->pm.dpm.dyn_state.cac_leakage_table.count; i++) { in ci_populate_bapm_vddc_vid_sidd()
277 return 0; in ci_populate_bapm_vddc_vid_sidd()
289 for (i = 0; i < pi->vddc_voltage_table.count; i++) in ci_populate_vddc_vid()
292 return 0; in ci_populate_vddc_vid()
303 pi->smc_powertune_table.SviLoadLineOffsetVddC = 0; in ci_populate_svi_load_line()
305 return 0; in ci_populate_svi_load_line()
320 return 0; in ci_populate_tdc_limit()
340 return 0; in ci_populate_dw8()
348 (rdev->pm.dpm.fan.fan_output_sensitivity == 0)) in ci_populate_fuzzy_fan()
355 return 0; in ci_populate_fuzzy_fan()
365 min = max = hi_vid[0]; in ci_min_max_v_gnbl_pm_lid_from_bapm_vddc()
366 for (i = 0; i < 8; i++) { in ci_min_max_v_gnbl_pm_lid_from_bapm_vddc()
367 if (0 != hi_vid[i]) { in ci_min_max_v_gnbl_pm_lid_from_bapm_vddc()
374 if (0 != lo_vid[i]) { in ci_min_max_v_gnbl_pm_lid_from_bapm_vddc()
382 if ((min == 0) || (max == 0)) in ci_min_max_v_gnbl_pm_lid_from_bapm_vddc()
387 return 0; in ci_min_max_v_gnbl_pm_lid_from_bapm_vddc()
403 return 0; in ci_populate_bapm_vddc_base_leakage_sidd()
432 dpm_table->PPM_PkgPwrLimit = cpu_to_be16(0); in ci_populate_bapm_parameters_in_dpm_table()
433 dpm_table->PPM_TemperatureLimit = cpu_to_be16(0); in ci_populate_bapm_parameters_in_dpm_table()
440 for (i = 0; i < SMU7_DTE_ITERATIONS; i++) { in ci_populate_bapm_parameters_in_dpm_table()
441 for (j = 0; j < SMU7_DTE_SOURCES; j++) { in ci_populate_bapm_parameters_in_dpm_table()
442 for (k = 0; k < SMU7_DTE_SINKS; k++) { in ci_populate_bapm_parameters_in_dpm_table()
451 return 0; in ci_populate_bapm_parameters_in_dpm_table()
498 return 0; in ci_populate_pm_base()
548 u32 cache = 0; in ci_program_pt_config_registers()
553 while (config_regs->offset != 0xFFFFFFFF) { in ci_program_pt_config_registers()
584 cache = 0; in ci_program_pt_config_registers()
588 return 0; in ci_program_pt_config_registers()
613 return 0; in ci_enable_didt()
620 int ret = 0; in ci_enable_power_containment()
623 pi->power_containment_features = 0; in ci_enable_power_containment()
667 pi->power_containment_features = 0; in ci_enable_power_containment()
678 int ret = 0; in ci_enable_smc_cac()
712 return 0; in ci_enable_thermal_based_sclk_dpm()
724 int ret = 0; in ci_power_control_set_level()
784 rps->evclk = 0; in ci_apply_state_adjust_rules()
785 rps->ecclk = 0; in ci_apply_state_adjust_rules()
805 for (i = 0; i < ps->performance_level_count; i++) { in ci_apply_state_adjust_rules()
817 sclk = ps->performance_levels[0].sclk; in ci_apply_state_adjust_rules()
819 mclk = ps->performance_levels[0].mclk; in ci_apply_state_adjust_rules()
820 sclk = ps->performance_levels[0].sclk; in ci_apply_state_adjust_rules()
830 ps->performance_levels[0].sclk = sclk; in ci_apply_state_adjust_rules()
831 ps->performance_levels[0].mclk = mclk; in ci_apply_state_adjust_rules()
833 if (ps->performance_levels[1].sclk < ps->performance_levels[0].sclk) in ci_apply_state_adjust_rules()
834 ps->performance_levels[1].sclk = ps->performance_levels[0].sclk; in ci_apply_state_adjust_rules()
837 if (ps->performance_levels[0].mclk < ps->performance_levels[1].mclk) in ci_apply_state_adjust_rules()
838 ps->performance_levels[0].mclk = ps->performance_levels[1].mclk; in ci_apply_state_adjust_rules()
840 if (ps->performance_levels[1].mclk < ps->performance_levels[0].mclk) in ci_apply_state_adjust_rules()
841 ps->performance_levels[1].mclk = ps->performance_levels[0].mclk; in ci_apply_state_adjust_rules()
848 int low_temp = 0 * 1000; in ci_thermal_set_temperature_range()
867 #if 0 in ci_thermal_set_temperature_range()
878 return 0; in ci_thermal_set_temperature_range()
907 return 0; in ci_thermal_enable_alert()
924 tmp |= TMIN(0); in ci_fan_ctrl_set_static_mode()
945 return 0; in ci_thermal_setup_fan_table()
950 if (duty100 == 0) { in ci_thermal_setup_fan_table()
952 return 0; in ci_thermal_setup_fan_table()
1006 return 0; in ci_thermal_setup_fan_table()
1034 return 0; in ci_fan_ctrl_start_smc_fan_control()
1045 return 0; in ci_fan_ctrl_stop_smc_fan_control()
1062 if (duty100 == 0) in ci_fan_ctrl_get_fan_speed_percent()
1072 return 0; in ci_fan_ctrl_get_fan_speed_percent()
1094 if (duty100 == 0) in ci_fan_ctrl_set_fan_speed_percent()
1105 return 0; in ci_fan_ctrl_set_fan_speed_percent()
1130 return 0; in ci_fan_ctrl_get_mode()
1136 #if 0
1146 if (rdev->pm.fan_pulses_per_revolution == 0)
1150 if (tach_period == 0)
1155 return 0;
1167 if (rdev->pm.fan_pulses_per_revolution == 0)
1184 return 0;
1224 tmp |= TACH_PWM_RESP_RATE(0x28); in ci_thermal_initialize()
1246 return 0; in ci_thermal_start_thermal_controller()
1255 #if 0
1296 int ret = 0; in ci_update_sclk_t()
1297 u32 low_sclk_interrupt_t = 0; in ci_update_sclk_t()
1320 pi->vddc_leakage.count = 0; in ci_get_leakage_voltages()
1321 pi->vddci_leakage.count = 0; in ci_get_leakage_voltages()
1324 for (i = 0; i < CISLANDS_MAX_LEAKAGE_COUNT; i++) { in ci_get_leakage_voltages()
1326 if (radeon_atom_get_voltage_evv(rdev, virtual_voltage_id, &vddc) != 0) in ci_get_leakage_voltages()
1328 if (vddc != 0 && vddc != virtual_voltage_id) { in ci_get_leakage_voltages()
1334 } else if (radeon_atom_get_leakage_id_from_vbios(rdev, &leakage_id) == 0) { in ci_get_leakage_voltages()
1335 for (i = 0; i < CISLANDS_MAX_LEAKAGE_COUNT; i++) { in ci_get_leakage_voltages()
1339 leakage_id) == 0) { in ci_get_leakage_voltages()
1340 if (vddc != 0 && vddc != virtual_voltage_id) { in ci_get_leakage_voltages()
1345 if (vddci != 0 && vddci != virtual_voltage_id) { in ci_get_leakage_voltages()
1362 case 0: in ci_set_dpm_event_sources()
1423 return 0; in ci_unfreeze_sclk_mclk_dpm()
1439 pi->need_update_smu7_dpm_table = 0; in ci_unfreeze_sclk_mclk_dpm()
1440 return 0; in ci_unfreeze_sclk_mclk_dpm()
1462 WREG32_SMC(LCAC_MC0_CNTL, 0x05); in ci_enable_sclk_mclk_dpm()
1463 WREG32_SMC(LCAC_MC1_CNTL, 0x05); in ci_enable_sclk_mclk_dpm()
1464 WREG32_SMC(LCAC_CPL_CNTL, 0x100005); in ci_enable_sclk_mclk_dpm()
1468 WREG32_SMC(LCAC_MC0_CNTL, 0x400005); in ci_enable_sclk_mclk_dpm()
1469 WREG32_SMC(LCAC_MC1_CNTL, 0x400005); in ci_enable_sclk_mclk_dpm()
1470 WREG32_SMC(LCAC_CPL_CNTL, 0x500005); in ci_enable_sclk_mclk_dpm()
1486 return 0; in ci_enable_sclk_mclk_dpm()
1504 ci_write_smc_soft_register(rdev, offsetof(SMU7_SoftRegisters, VoltageChangeTimeout), 0x1000); in ci_start_dpm()
1506 WREG32_P(BIF_LNCNT_RESET, 0, ~RESET_LNCNT_EN); in ci_start_dpm()
1522 return 0; in ci_start_dpm()
1531 return 0; in ci_freeze_sclk_mclk_dpm()
1547 return 0; in ci_freeze_sclk_mclk_dpm()
1579 return 0; in ci_stop_dpm()
1593 #if 0
1616 return 0;
1630 for (i = 0; i < rdev->usec_timeout; i++) { in ci_send_msg_to_smc()
1632 if (tmp != 0) in ci_send_msg_to_smc()
1672 return 0; in ci_dpm_force_state_sclk()
1686 return 0; in ci_dpm_force_state_mclk()
1700 return 0; in ci_dpm_force_state_pcie()
1714 return 0; in ci_set_power_limit()
1724 return 0; in ci_set_overdrive_target_tdp()
1727 #if 0
1742 sclk_freq = 0; in ci_get_average_sclk_freq()
1755 mclk_freq = 0; in ci_get_average_mclk_freq()
1767 for (i = 0; i < rdev->usec_timeout; i++) { in ci_dpm_start_smc()
1830 return 0; in ci_process_firmware_header()
1864 pi->low_sclk_interrupt_t = 0; in ci_init_sclk_t()
1888 #if 0
1896 return 0;
1907 for (i = 0; i < rdev->usec_timeout; i++) {
1913 return 0;
1922 return (ci_send_msg_to_smc(rdev, msg) == PPSMC_Result_OK) ? 0 : -EINVAL; in ci_notify_smc_display_change()
1945 return 0; in ci_enable_ds_master_switch()
1958 if (rdev->pm.dpm.new_active_crtc_count > 0) in ci_program_display_gap()
1964 if (refresh_rate == 0) in ci_program_display_gap()
1966 if (vblank_time == 0xffffffff) in ci_program_display_gap()
1974 ci_write_smc_soft_register(rdev, offsetof(SMU7_SoftRegisters, PreVBlankGap), 0x64); in ci_program_display_gap()
2046 WREG32_SMC(CG_FTV_0, 0); in ci_clear_vc()
2047 WREG32_SMC(CG_FTV_1, 0); in ci_clear_vc()
2048 WREG32_SMC(CG_FTV_2, 0); in ci_clear_vc()
2049 WREG32_SMC(CG_FTV_3, 0); in ci_clear_vc()
2050 WREG32_SMC(CG_FTV_4, 0); in ci_clear_vc()
2051 WREG32_SMC(CG_FTV_5, 0); in ci_clear_vc()
2052 WREG32_SMC(CG_FTV_6, 0); in ci_clear_vc()
2053 WREG32_SMC(CG_FTV_7, 0); in ci_clear_vc()
2061 for (i = 0; i < rdev->usec_timeout; i++) { in ci_upload_firmware()
2083 voltage_table->mask_low = 0; in ci_get_svi2_voltage_table()
2084 voltage_table->phase_delay = 0; in ci_get_svi2_voltage_table()
2087 for (i = 0; i < voltage_table->count; i++) { in ci_get_svi2_voltage_table()
2089 voltage_table->entries[i].smio_low = 0; in ci_get_svi2_voltage_table()
2092 return 0; in ci_get_svi2_voltage_table()
2154 return 0; in ci_construct_voltage_tables()
2186 for (count = 0; count < table->VddcLevelCount; count++) { in ci_populate_smc_vddc_table()
2195 table->VddcLevel[count].Smio = 0; in ci_populate_smc_vddc_table()
2199 return 0; in ci_populate_smc_vddc_table()
2209 for (count = 0; count < table->VddciLevelCount; count++) { in ci_populate_smc_vddci_table()
2218 table->VddciLevel[count].Smio = 0; in ci_populate_smc_vddci_table()
2222 return 0; in ci_populate_smc_vddci_table()
2232 for (count = 0; count < table->MvddLevelCount; count++) { in ci_populate_smc_mvdd_table()
2241 table->MvddLevel[count].Smio = 0; in ci_populate_smc_mvdd_table()
2245 return 0; in ci_populate_smc_mvdd_table()
2265 return 0; in ci_populate_smc_voltage_tables()
2272 u32 i = 0; in ci_populate_mvdd_value()
2275 for (i = 0; i < rdev->pm.dpm.dyn_state.mvdd_dependency_on_mclk.count; i++) { in ci_populate_mvdd_value()
2302 …for (v_index = 0; (u32)v_index < rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.count; v_index++) { in ci_get_std_voltage_value_sidd()
2319 …for (v_index = 0; (u32)v_index < rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.count; v_index++) { in ci_get_std_voltage_value_sidd()
2337 return 0; in ci_get_std_voltage_value_sidd()
2349 for (i = 0; i < limits->count; i++) { in ci_populate_phase_value_based_on_sclk()
2366 for (i = 0; i < limits->count; i++) { in ci_populate_phase_value_based_on_mclk()
2385 tmp &= 0x00FFFFFF; in ci_init_arb_table_index()
2396 u32 i = 0; in ci_get_dependency_volt_by_clk()
2398 if (allowed_clock_voltage_table->count == 0) in ci_get_dependency_volt_by_clk()
2401 for (i = 0; i < allowed_clock_voltage_table->count; i++) { in ci_get_dependency_volt_by_clk()
2404 return 0; in ci_get_dependency_volt_by_clk()
2410 return 0; in ci_get_dependency_volt_by_clk()
2422 return 0; in ci_get_sleep_divider_id_from_clock()
2426 if (tmp >= min || i == 0) in ci_get_sleep_divider_id_from_clock()
2441 0 : -EINVAL; in ci_reset_to_default()
2448 tmp = (RREG32_SMC(SMC_SCRATCH9) & 0x0000ff00) >> 8; in ci_force_switch_to_arb_f0()
2451 return 0; in ci_force_switch_to_arb_f0()
2465 patch = ((tmp & 0x0000f00) == 0x300) ? true : false; in ci_register_patching_mc_arb()
2468 ((rdev->pdev->device == 0x67B0) || in ci_register_patching_mc_arb()
2469 (rdev->pdev->device == 0x67B1))) { in ci_register_patching_mc_arb()
2471 tmp2 = (((0x31 * engine_clock) / 125000) - 1) & 0xff; in ci_register_patching_mc_arb()
2472 *dram_timimg2 &= ~0x00ff0000; in ci_register_patching_mc_arb()
2475 tmp2 = (((0x36 * engine_clock) / 137500) - 1) & 0xff; in ci_register_patching_mc_arb()
2476 *dram_timimg2 &= ~0x00ff0000; in ci_register_patching_mc_arb()
2504 return 0; in ci_populate_memory_timing_parameters()
2512 int ret = 0; in ci_do_program_memory_timing_parameters()
2514 memset(&arb_regs, 0, sizeof(SMU7_Discrete_MCArbDramTimingTable)); in ci_do_program_memory_timing_parameters()
2516 for (i = 0; i < pi->dpm_table.sclk_table.count; i++) { in ci_do_program_memory_timing_parameters()
2517 for (j = 0; j < pi->dpm_table.mclk_table.count; j++) { in ci_do_program_memory_timing_parameters()
2527 if (ret == 0) in ci_do_program_memory_timing_parameters()
2541 if (pi->need_update_smu7_dpm_table == 0) in ci_program_memory_timing_parameters()
2542 return 0; in ci_program_memory_timing_parameters()
2552 u32 level = 0; in ci_populate_smc_initial_state()
2554 for (level = 0; level < rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.count; level++) { in ci_populate_smc_initial_state()
2556 boot_state->performance_levels[0].sclk) { in ci_populate_smc_initial_state()
2562 for (level = 0; level < rdev->pm.dpm.dyn_state.vddc_dependency_on_mclk.count; level++) { in ci_populate_smc_initial_state()
2564 boot_state->performance_levels[0].mclk) { in ci_populate_smc_initial_state()
2574 u32 mask_value = 0; in ci_get_dpm_level_enable_mask_value()
2576 for (i = dpm_table->count; i > 0; i--) { in ci_get_dpm_level_enable_mask_value()
2579 mask_value |= 0x1; in ci_get_dpm_level_enable_mask_value()
2581 mask_value &= 0xFFFFFFFE; in ci_get_dpm_level_enable_mask_value()
2594 for (i = 0; i < dpm_table->pcie_speed_table.count; i++) { in ci_populate_smc_link_level()
2619 for (count = 0; count < table->UvdLevelCount; count++) { in ci_populate_smc_uvd_level()
2662 for (count = 0; count < table->VceLevelCount; count++) { in ci_populate_smc_vce_level()
2695 for (count = 0; count < table->AcpLevelCount; count++) { in ci_populate_smc_acp_level()
2727 for (count = 0; count < table->SamuLevelCount; count++) { in ci_populate_smc_samu_level()
2833 return 0; in ci_calculate_mclk_params()
2877 memory_level->UpH = 0; in ci_populate_single_memory_level()
2879 memory_level->VoltageDownH = 0; in ci_populate_single_memory_level()
2914 ((RREG32(MC_SEQ_MISC7) >> 16) & 0xf)) in ci_populate_single_memory_level()
2915 dll_state_on = ((RREG32(MC_SEQ_MISC5) >> 1) & 0x1) ? true : false; in ci_populate_single_memory_level()
2917 dll_state_on = ((RREG32(MC_SEQ_MISC6) >> 1) & 0x1) ? true : false; in ci_populate_single_memory_level()
2923 dll_state_on = ((RREG32(MC_SEQ_MISC5) >> 1) & 0x1) ? true : false; in ci_populate_single_memory_level()
2947 return 0; in ci_populate_single_memory_level()
2969 table->ACPILevel.MinVddcPhases = pi->vddc_phase_shed_control ? 0 : 1; in ci_populate_smc_acpi_level()
2981 table->ACPILevel.DeepSleepDivId = 0; in ci_populate_smc_acpi_level()
2995 table->ACPILevel.CcPwrDynRm = 0; in ci_populate_smc_acpi_level()
2996 table->ACPILevel.CcPwrDynRm1 = 0; in ci_populate_smc_acpi_level()
3022 if (ci_populate_mvdd_value(rdev, 0, &voltage_level)) in ci_populate_smc_acpi_level()
3023 table->MemoryACPILevel.MinMvdd = 0; in ci_populate_smc_acpi_level()
3048 table->MemoryACPILevel.EnabledForThrottle = 0; in ci_populate_smc_acpi_level()
3049 table->MemoryACPILevel.EnabledForActivity = 0; in ci_populate_smc_acpi_level()
3050 table->MemoryACPILevel.UpH = 0; in ci_populate_smc_acpi_level()
3052 table->MemoryACPILevel.VoltageDownH = 0; in ci_populate_smc_acpi_level()
3062 return 0; in ci_populate_smc_acpi_level()
3074 0 : -EINVAL; in ci_enable_ulv()
3077 0 : -EINVAL; in ci_enable_ulv()
3080 return 0; in ci_enable_ulv()
3089 state->CcPwrDynRm = 0; in ci_populate_ulv_level()
3090 state->CcPwrDynRm1 = 0; in ci_populate_ulv_level()
3092 if (ulv_voltage == 0) { in ci_populate_ulv_level()
3094 return 0; in ci_populate_ulv_level()
3098 if (ulv_voltage > rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries[0].v) in ci_populate_ulv_level()
3099 state->VddcOffset = 0; in ci_populate_ulv_level()
3102 rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries[0].v - ulv_voltage; in ci_populate_ulv_level()
3104 if (ulv_voltage > rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries[0].v) in ci_populate_ulv_level()
3105 state->VddcOffsetVid = 0; in ci_populate_ulv_level()
3108 ((rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries[0].v - ulv_voltage) * in ci_populate_ulv_level()
3111 state->VddcPhase = pi->vddc_phase_shed_control ? 0 : 1; in ci_populate_ulv_level()
3117 return 0; in ci_populate_ulv_level()
3142 fbdiv = dividers.fb_div & 0x3FFFFFF; in ci_calculate_sclk_params()
3173 return 0; in ci_calculate_sclk_params()
3196 graphic_level->Flags = 0; in ci_populate_single_graphic_level()
3207 graphic_level->CcPwrDynRm = 0; in ci_populate_single_graphic_level()
3208 graphic_level->CcPwrDynRm1 = 0; in ci_populate_single_graphic_level()
3210 graphic_level->UpH = 0; in ci_populate_single_graphic_level()
3211 graphic_level->DownH = 0; in ci_populate_single_graphic_level()
3212 graphic_level->VoltageDownH = 0; in ci_populate_single_graphic_level()
3213 graphic_level->PowerThrottle = 0; in ci_populate_single_graphic_level()
3234 return 0; in ci_populate_single_graphic_level()
3248 memset(levels, 0, level_array_size); in ci_populate_all_graphic_levels()
3250 for (i = 0; i < dpm_table->sclk_table.count; i++) { in ci_populate_all_graphic_levels()
3258 pi->smc_state_table.GraphicsLevel[i].DeepSleepDivId = 0; in ci_populate_all_graphic_levels()
3263 pi->smc_state_table.GraphicsLevel[0].EnabledForActivity = 1; in ci_populate_all_graphic_levels()
3275 return 0; in ci_populate_all_graphic_levels()
3295 memset(levels, 0, level_array_size); in ci_populate_all_memory_levels()
3297 for (i = 0; i < dpm_table->mclk_table.count; i++) { in ci_populate_all_memory_levels()
3298 if (dpm_table->mclk_table.dpm_levels[i].value == 0) in ci_populate_all_memory_levels()
3307 pi->smc_state_table.MemoryLevel[0].EnabledForActivity = 1; in ci_populate_all_memory_levels()
3310 ((rdev->pdev->device == 0x67B0) || (rdev->pdev->device == 0x67B1))) { in ci_populate_all_memory_levels()
3312 pi->smc_state_table.MemoryLevel[0].MinVddc; in ci_populate_all_memory_levels()
3314 pi->smc_state_table.MemoryLevel[0].MinVddcPhases; in ci_populate_all_memory_levels()
3317 pi->smc_state_table.MemoryLevel[0].ActivityLevel = cpu_to_be16(0x1F); in ci_populate_all_memory_levels()
3332 return 0; in ci_populate_all_memory_levels()
3342 for (i = 0; i < MAX_REGULAR_DPM_NUMBER; i++) in ci_reset_single_dpm_table()
3374 ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 0, in ci_setup_default_pcie_tables()
3378 ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 0, in ci_setup_default_pcie_tables()
3399 return 0; in ci_setup_default_pcie_tables()
3422 memset(&pi->dpm_table, 0, sizeof(struct ci_dpm_table)); in ci_setup_default_dpm_tables()
3440 pi->dpm_table.sclk_table.count = 0; in ci_setup_default_dpm_tables()
3441 for (i = 0; i < allowed_sclk_vddc_table->count; i++) { in ci_setup_default_dpm_tables()
3442 if ((i == 0) || in ci_setup_default_dpm_tables()
3448 (i == 0) ? true : false; in ci_setup_default_dpm_tables()
3453 pi->dpm_table.mclk_table.count = 0; in ci_setup_default_dpm_tables()
3454 for (i = 0; i < allowed_mclk_table->count; i++) { in ci_setup_default_dpm_tables()
3455 if ((i == 0) || in ci_setup_default_dpm_tables()
3461 (i == 0) ? true : false; in ci_setup_default_dpm_tables()
3466 for (i = 0; i < allowed_sclk_vddc_table->count; i++) { in ci_setup_default_dpm_tables()
3477 for (i = 0; i < allowed_mclk_table->count; i++) { in ci_setup_default_dpm_tables()
3487 for (i = 0; i < allowed_mclk_table->count; i++) { in ci_setup_default_dpm_tables()
3497 return 0; in ci_setup_default_dpm_tables()
3506 for(i = 0; i < table->count; i++) { in ci_find_boot_level()
3509 ret = 0; in ci_find_boot_level()
3583 table->UvdBootLevel = 0; in ci_init_smc_table()
3584 table->VceBootLevel = 0; in ci_init_smc_table()
3585 table->AcpBootLevel = 0; in ci_init_smc_table()
3586 table->SamuBootLevel = 0; in ci_init_smc_table()
3587 table->GraphicsBootLevel = 0; in ci_init_smc_table()
3588 table->MemoryBootLevel = 0; in ci_init_smc_table()
3623 table->VoltageResponseTime = 0; in ci_init_smc_table()
3625 table->PhaseResponseTime = 0; in ci_init_smc_table()
3632 table->SVI2Enable = 0; in ci_init_smc_table()
3635 table->SclkStepSize = 0x4000; in ci_init_smc_table()
3661 return 0; in ci_init_smc_table()
3670 for (i = 0; i < dpm_table->count; i++) { in ci_trim_single_dpm_states()
3687 for (i = 0; i < pcie_table->count; i++) { in ci_trim_pcie_dpm_states()
3697 for (i = 0; i < pcie_table->count; i++) { in ci_trim_pcie_dpm_states()
3721 high_limit_count = 0; in ci_trim_dpm_states()
3727 state->performance_levels[0].sclk, in ci_trim_dpm_states()
3732 state->performance_levels[0].mclk, in ci_trim_dpm_states()
3736 state->performance_levels[0].pcie_gen, in ci_trim_dpm_states()
3737 state->performance_levels[0].pcie_lane, in ci_trim_dpm_states()
3741 return 0; in ci_trim_dpm_states()
3750 u32 requested_voltage = 0; in ci_apply_disp_minimum_voltage_request()
3758 for (i = 0; i < disp_voltage_table->count; i++) { in ci_apply_disp_minimum_voltage_request()
3763 for (i = 0; i < vddc_table->count; i++) { in ci_apply_disp_minimum_voltage_request()
3769 0 : -EINVAL; in ci_apply_disp_minimum_voltage_request()
3802 #if 0 in ci_upload_dpm_level_enable_mask()
3813 return 0; in ci_upload_dpm_level_enable_mask()
3827 pi->need_update_smu7_dpm_table = 0; in ci_find_dpm_states_clocks_in_dpm_table()
3829 for (i = 0; i < sclk_table->count; i++) { in ci_find_dpm_states_clocks_in_dpm_table()
3845 for (i = 0; i < mclk_table->count; i++) { in ci_find_dpm_states_clocks_in_dpm_table()
3869 return 0; in ci_populate_and_upload_sclk_mclk_dpm_levels()
3889 return 0; in ci_populate_and_upload_sclk_mclk_dpm_levels()
3904 pi->dpm_level_enable_mask.uvd_dpm_enable_mask = 0; in ci_enable_uvd_dpm()
3906 for (i = rdev->pm.dpm.dyn_state.uvd_clock_voltage_dependency_table.count - 1; i >= 0; i--) { in ci_enable_uvd_dpm()
3919 if (pi->last_mclk_dpm_enable_mask & 0x1) { in ci_enable_uvd_dpm()
3921 pi->dpm_level_enable_mask.mclk_dpm_enable_mask &= 0xFFFFFFFE; in ci_enable_uvd_dpm()
3927 if (pi->last_mclk_dpm_enable_mask & 0x1) { in ci_enable_uvd_dpm()
3938 0 : -EINVAL; in ci_enable_uvd_dpm()
3953 pi->dpm_level_enable_mask.vce_dpm_enable_mask = 0; in ci_enable_vce_dpm()
3954 for (i = rdev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.count - 1; i >= 0; i--) { in ci_enable_vce_dpm()
3970 0 : -EINVAL; in ci_enable_vce_dpm()
3973 #if 0
3986 pi->dpm_level_enable_mask.samu_dpm_enable_mask = 0;
3987 for (i = rdev->pm.dpm.dyn_state.samu_clock_voltage_dependency_table.count - 1; i >= 0; i--) {
4002 0 : -EINVAL;
4017 pi->dpm_level_enable_mask.acp_dpm_enable_mask = 0;
4018 for (i = rdev->pm.dpm.dyn_state.acp_clock_voltage_dependency_table.count - 1; i >= 0; i--) {
4034 0 : -EINVAL;
4045 (rdev->pm.dpm.dyn_state.uvd_clock_voltage_dependency_table.count <= 0)) in ci_update_uvd_dpm()
4046 pi->smc_state_table.UvdBootLevel = 0; in ci_update_uvd_dpm()
4067 for (i = 0; i < table->count; i++) { in ci_get_vce_boot_level()
4080 int ret = 0; in ci_update_vce_dpm()
4105 #if 0
4117 pi->smc_state_table.AcpBootLevel = 0;
4147 pi->dpm_level_enable_mask.mclk_dpm_enable_mask &= 0xFFFFFFFE; in ci_generate_dpm_level_enable_mask()
4152 return 0; in ci_generate_dpm_level_enable_mask()
4158 u32 level = 0; in ci_get_lowest_enabled_level()
4160 while ((level_mask & (1 << level)) == 0) in ci_get_lowest_enabled_level()
4177 levels = 0; in ci_dpm_force_performance_level()
4185 for (i = 0; i < rdev->usec_timeout; i++) { in ci_dpm_force_performance_level()
4196 levels = 0; in ci_dpm_force_performance_level()
4204 for (i = 0; i < rdev->usec_timeout; i++) { in ci_dpm_force_performance_level()
4215 levels = 0; in ci_dpm_force_performance_level()
4223 for (i = 0; i < rdev->usec_timeout; i++) { in ci_dpm_force_performance_level()
4240 for (i = 0; i < rdev->usec_timeout; i++) { in ci_dpm_force_performance_level()
4255 for (i = 0; i < rdev->usec_timeout; i++) { in ci_dpm_force_performance_level()
4270 for (i = 0; i < rdev->usec_timeout; i++) { in ci_dpm_force_performance_level()
4294 return 0; in ci_dpm_force_performance_level()
4304 for (i = 0, j = table->last; i < table->last; i++) { in ci_set_mc_special_registers()
4312 for (k = 0; k < table->num_entries; k++) { in ci_set_mc_special_registers()
4314 ((temp_reg & 0xffff0000)) | ((table->mc_reg_table_entry[k].mc_data[i] & 0xffff0000) >> 16); in ci_set_mc_special_registers()
4323 for (k = 0; k < table->num_entries; k++) { in ci_set_mc_special_registers()
4325 (temp_reg & 0xffff0000) | (table->mc_reg_table_entry[k].mc_data[i] & 0x0000ffff); in ci_set_mc_special_registers()
4327 table->mc_reg_table_entry[k].mc_data[j] |= 0x100; in ci_set_mc_special_registers()
4336 for (k = 0; k < table->num_entries; k++) { in ci_set_mc_special_registers()
4338 (table->mc_reg_table_entry[k].mc_data[i] & 0xffff0000) >> 16; in ci_set_mc_special_registers()
4349 for (k = 0; k < table->num_entries; k++) { in ci_set_mc_special_registers()
4351 (temp_reg & 0xffff0000) | (table->mc_reg_table_entry[k].mc_data[i] & 0x0000ffff); in ci_set_mc_special_registers()
4365 return 0; in ci_set_mc_special_registers()
4445 for (i = 0; i < table->last; i++) { in ci_set_valid_flag()
4461 for (i = 0; i < table->last; i++) { in ci_set_s0_mc_reg_index()
4478 for (i = 0; i < table->last; i++) in ci_copy_vbios_mc_reg_table()
4483 for (i = 0; i < table->num_entries; i++) { in ci_copy_vbios_mc_reg_table()
4486 for (j = 0; j < table->last; j++) in ci_copy_vbios_mc_reg_table()
4492 return 0; in ci_copy_vbios_mc_reg_table()
4503 patch = ((tmp & 0x0000f00) == 0x300) ? true : false; in ci_register_patching_mc_seq()
4506 ((rdev->pdev->device == 0x67B0) || in ci_register_patching_mc_seq()
4507 (rdev->pdev->device == 0x67B1))) { in ci_register_patching_mc_seq()
4508 for (i = 0; i < table->last; i++) { in ci_register_patching_mc_seq()
4513 for (k = 0; k < table->num_entries; k++) { in ci_register_patching_mc_seq()
4517 (table->mc_reg_table_entry[k].mc_data[i] & 0xFFFFFFF8) | in ci_register_patching_mc_seq()
4518 0x00000007; in ci_register_patching_mc_seq()
4522 for (k = 0; k < table->num_entries; k++) { in ci_register_patching_mc_seq()
4526 (table->mc_reg_table_entry[k].mc_data[i] & 0xFFFF0F00) | in ci_register_patching_mc_seq()
4527 0x0000D0DD; in ci_register_patching_mc_seq()
4531 for (k = 0; k < table->num_entries; k++) { in ci_register_patching_mc_seq()
4535 (table->mc_reg_table_entry[k].mc_data[i] & 0xFFFF0F00) | in ci_register_patching_mc_seq()
4536 0x0000D0DD; in ci_register_patching_mc_seq()
4540 for (k = 0; k < table->num_entries; k++) { in ci_register_patching_mc_seq()
4543 table->mc_reg_table_entry[k].mc_data[i] = 0; in ci_register_patching_mc_seq()
4547 for (k = 0; k < table->num_entries; k++) { in ci_register_patching_mc_seq()
4550 (table->mc_reg_table_entry[k].mc_data[i] & 0xFFE0FE0F) | in ci_register_patching_mc_seq()
4551 0x000C0140; in ci_register_patching_mc_seq()
4554 (table->mc_reg_table_entry[k].mc_data[i] & 0xFFE0FE0F) | in ci_register_patching_mc_seq()
4555 0x000C0150; in ci_register_patching_mc_seq()
4559 for (k = 0; k < table->num_entries; k++) { in ci_register_patching_mc_seq()
4562 (table->mc_reg_table_entry[k].mc_data[i] & 0xFFFFFFE0) | in ci_register_patching_mc_seq()
4563 0x00000030; in ci_register_patching_mc_seq()
4566 (table->mc_reg_table_entry[k].mc_data[i] & 0xFFFFFFE0) | in ci_register_patching_mc_seq()
4567 0x00000035; in ci_register_patching_mc_seq()
4577 tmp = (tmp & 0xFFF8FFFF) | (1 << 16); in ci_register_patching_mc_seq()
4582 return 0; in ci_register_patching_mc_seq()
4650 for (i = 0, j = 0; j < pi->mc_reg_table.last; j++) { in ci_populate_mc_reg_addresses()
4662 return 0; in ci_populate_mc_reg_addresses()
4671 for (i = 0, j = 0; j < num_entries; j++) { in ci_convert_mc_registers()
4684 u32 i = 0; in ci_convert_mc_reg_table_entry_to_smc()
4686 for(i = 0; i < pi->mc_reg_table.num_entries; i++) { in ci_convert_mc_reg_table_entry_to_smc()
4691 if ((i == pi->mc_reg_table.num_entries) && (i > 0)) in ci_convert_mc_reg_table_entry_to_smc()
4705 for (i = 0; i < pi->dpm_table.mclk_table.count; i++) in ci_convert_mc_reg_table_to_smc()
4716 memset(&pi->smc_mc_reg_table, 0, sizeof(SMU7_Discrete_MCRegisters)); in ci_populate_initial_mc_reg_table()
4735 return 0; in ci_update_and_upload_mc_reg_table()
4737 memset(&pi->smc_mc_reg_table, 0, sizeof(SMU7_Discrete_MCRegisters)); in ci_update_and_upload_mc_reg_table()
4743 offsetof(SMU7_Discrete_MCRegisters, data[0]), in ci_update_and_upload_mc_reg_table()
4744 (u8 *)&pi->smc_mc_reg_table.data[0], in ci_update_and_upload_mc_reg_table()
4763 u16 pcie_speed, max_speed = 0; in ci_get_maximum_link_speed()
4765 for (i = 0; i < state->performance_level_count; i++) { in ci_get_maximum_link_speed()
4776 u32 speed_cntl = 0; in ci_get_current_pcie_speed()
4786 u32 link_width = 0; in ci_get_current_pcie_lane_number()
4830 if (radeon_acpi_pcie_performance_request(rdev, PCIE_PERF_REQ_PECI_GEN3, false) == 0) in ci_request_link_speed_change_before_state_change()
4837 if (radeon_acpi_pcie_performance_request(rdev, PCIE_PERF_REQ_PECI_GEN2, false) == 0) in ci_request_link_speed_change_before_state_change()
4869 (ci_get_current_pcie_speed(rdev) > 0)) in ci_notify_link_speed_change_after_state_change()
4901 pi->min_vddc_in_pp_table = allowed_sclk_vddc_table->entries[0].v; in ci_set_private_data_variables_based_on_pptable()
4905 pi->min_vddci_in_pp_table = allowed_mclk_vddci_table->entries[0].v; in ci_set_private_data_variables_based_on_pptable()
4918 return 0; in ci_set_private_data_variables_based_on_pptable()
4927 for (leakage_index = 0; leakage_index < leakage_table->count; leakage_index++) { in ci_patch_with_vddc_leakage()
4941 for (leakage_index = 0; leakage_index < leakage_table->count; leakage_index++) { in ci_patch_with_vddci_leakage()
4955 for (i = 0; i < table->count; i++) in ci_patch_clock_voltage_dependency_table_with_vddc_leakage()
4966 for (i = 0; i < table->count; i++) in ci_patch_clock_voltage_dependency_table_with_vddci_leakage()
4977 for (i = 0; i < table->count; i++) in ci_patch_vce_clock_voltage_dependency_table_with_vddc_leakage()
4988 for (i = 0; i < table->count; i++) in ci_patch_uvd_clock_voltage_dependency_table_with_vddc_leakage()
4999 for (i = 0; i < table->count; i++) in ci_patch_vddc_phase_shed_limit_table_with_vddc_leakage()
5019 for (i = 0; i < table->count; i++) in ci_patch_cac_leakage_table_with_vddc_leakage()
5101 return 0; in ci_dpm_pre_set_power_state()
5248 return 0; in ci_dpm_enable()
5278 return 0; in ci_dpm_late_enable()
5374 return 0; in ci_dpm_set_power_state()
5377 #if 0
5425 rps->vclk = 0; in ci_parse_pplib_non_clock_info()
5426 rps->dclk = 0; in ci_parse_pplib_non_clock_info()
5542 rdev->pm.dpm.num_ps = 0; in ci_parse_power_table()
5543 for (i = 0; i < state_array->ucNumEntries; i++) { in ci_parse_power_table()
5558 k = 0; in ci_parse_power_table()
5559 idx = (u8 *)&power_state->v2.clockInfoIndex[0]; in ci_parse_power_table()
5560 for (j = 0; j < power_state->v2.ucNumDPMLevels; j++) { in ci_parse_power_table()
5567 ((u8 *)&clock_info_array->clockInfo[0] + in ci_parse_power_table()
5579 for (i = 0; i < RADEON_MAX_VCE_LEVELS; i++) { in ci_parse_power_table()
5592 return 0; in ci_parse_power_table()
5617 return 0; in ci_get_vbios_boot_values()
5626 for (i = 0; i < rdev->pm.dpm.num_ps; i++) { in ci_dpm_fini()
5655 pi->sys_pcie_mask = 0; in ci_dpm_init()
5674 pi->pcie_lane_performance.max = 0; in ci_dpm_init()
5676 pi->pcie_lane_powersaving.max = 0; in ci_dpm_init()
5706 pi->activity_target[0] = CISLAND_TARGETACTIVITY_DFLT; in ci_dpm_init()
5717 pi->sclk_dpm_key_disabled = 0; in ci_dpm_init()
5718 pi->mclk_dpm_key_disabled = 0; in ci_dpm_init()
5719 pi->pcie_dpm_key_disabled = 0; in ci_dpm_init()
5720 pi->thermal_sclk_dpm_enabled = 0; in ci_dpm_init()
5723 if ((rdev->pdev->device == 0x6658) && in ci_dpm_init()
5757 rdev->pm.dpm.dyn_state.vddc_dependency_on_dispclk.entries[0].clk = 0; in ci_dpm_init()
5758 rdev->pm.dpm.dyn_state.vddc_dependency_on_dispclk.entries[0].v = 0; in ci_dpm_init()
5770 rdev->pm.dpm.dyn_state.valid_sclk_values.count = 0; in ci_dpm_init()
5772 rdev->pm.dpm.dyn_state.valid_mclk_values.count = 0; in ci_dpm_init()
5812 case 0: in ci_dpm_init()
5892 if ((rdev->pm.dpm.dyn_state.max_clock_voltage_on_dc.sclk == 0) || in ci_dpm_init()
5893 (rdev->pm.dpm.dyn_state.max_clock_voltage_on_dc.mclk == 0)) in ci_dpm_init()
5899 return 0; in ci_dpm_init()
5926 for (i = 0; i < ps->performance_level_count; i++) { in ci_dpm_print_power_state()
5954 return requested_state->performance_levels[0].sclk; in ci_dpm_get_sclk()
5965 return requested_state->performance_levels[0].mclk; in ci_dpm_get_mclk()