Lines Matching refs:performance_levels

2259 		prev_sclk = state->performance_levels[i-1].sclk;  in si_populate_power_containment_values()
2260 max_sclk = state->performance_levels[i].sclk; in si_populate_power_containment_values()
2279 if (min_sclk < state->performance_levels[0].sclk) in si_populate_power_containment_values()
2280 min_sclk = state->performance_levels[0].sclk; in si_populate_power_containment_values()
2286 state->performance_levels[i-1].vddc, &vddc); in si_populate_power_containment_values()
2295 state->performance_levels[i].vddc, &vddc); in si_populate_power_containment_values()
2354 if ((state->performance_levels[i].sclk >= rdev->pm.dpm.sq_ramping_threshold) && in si_populate_sq_ramping_values()
2968 if (ps->performance_levels[i].vddc > ps->performance_levels[i+1].vddc) in si_apply_state_adjust_rules()
2969 ps->performance_levels[i].vddc = ps->performance_levels[i+1].vddc; in si_apply_state_adjust_rules()
2973 if (ps->performance_levels[i].mclk > max_limits->mclk) in si_apply_state_adjust_rules()
2974 ps->performance_levels[i].mclk = max_limits->mclk; in si_apply_state_adjust_rules()
2975 if (ps->performance_levels[i].sclk > max_limits->sclk) in si_apply_state_adjust_rules()
2976 ps->performance_levels[i].sclk = max_limits->sclk; in si_apply_state_adjust_rules()
2977 if (ps->performance_levels[i].vddc > max_limits->vddc) in si_apply_state_adjust_rules()
2978 ps->performance_levels[i].vddc = max_limits->vddc; in si_apply_state_adjust_rules()
2979 if (ps->performance_levels[i].vddci > max_limits->vddci) in si_apply_state_adjust_rules()
2980 ps->performance_levels[i].vddci = max_limits->vddci; in si_apply_state_adjust_rules()
2994 if (ps->performance_levels[i].sclk > max_sclk_vddc) in si_apply_state_adjust_rules()
2995 ps->performance_levels[i].sclk = max_sclk_vddc; in si_apply_state_adjust_rules()
2998 if (ps->performance_levels[i].mclk > max_mclk_vddci) in si_apply_state_adjust_rules()
2999 ps->performance_levels[i].mclk = max_mclk_vddci; in si_apply_state_adjust_rules()
3002 if (ps->performance_levels[i].mclk > max_mclk_vddc) in si_apply_state_adjust_rules()
3003 ps->performance_levels[i].mclk = max_mclk_vddc; in si_apply_state_adjust_rules()
3006 if (ps->performance_levels[i].mclk > max_mclk) in si_apply_state_adjust_rules()
3007 ps->performance_levels[i].mclk = max_mclk; in si_apply_state_adjust_rules()
3010 if (ps->performance_levels[i].sclk > max_sclk) in si_apply_state_adjust_rules()
3011 ps->performance_levels[i].sclk = max_sclk; in si_apply_state_adjust_rules()
3018 mclk = ps->performance_levels[ps->performance_level_count - 1].mclk; in si_apply_state_adjust_rules()
3019 vddci = ps->performance_levels[ps->performance_level_count - 1].vddci; in si_apply_state_adjust_rules()
3021 mclk = ps->performance_levels[0].mclk; in si_apply_state_adjust_rules()
3022 vddci = ps->performance_levels[0].vddci; in si_apply_state_adjust_rules()
3026 sclk = ps->performance_levels[ps->performance_level_count - 1].sclk; in si_apply_state_adjust_rules()
3027 vddc = ps->performance_levels[ps->performance_level_count - 1].vddc; in si_apply_state_adjust_rules()
3029 sclk = ps->performance_levels[0].sclk; in si_apply_state_adjust_rules()
3030 vddc = ps->performance_levels[0].vddc; in si_apply_state_adjust_rules()
3041 ps->performance_levels[0].sclk = sclk; in si_apply_state_adjust_rules()
3042 ps->performance_levels[0].mclk = mclk; in si_apply_state_adjust_rules()
3043 ps->performance_levels[0].vddc = vddc; in si_apply_state_adjust_rules()
3044 ps->performance_levels[0].vddci = vddci; in si_apply_state_adjust_rules()
3047 sclk = ps->performance_levels[0].sclk; in si_apply_state_adjust_rules()
3049 if (sclk < ps->performance_levels[i].sclk) in si_apply_state_adjust_rules()
3050 sclk = ps->performance_levels[i].sclk; in si_apply_state_adjust_rules()
3053 ps->performance_levels[i].sclk = sclk; in si_apply_state_adjust_rules()
3054 ps->performance_levels[i].vddc = vddc; in si_apply_state_adjust_rules()
3058 if (ps->performance_levels[i].sclk < ps->performance_levels[i - 1].sclk) in si_apply_state_adjust_rules()
3059 ps->performance_levels[i].sclk = ps->performance_levels[i - 1].sclk; in si_apply_state_adjust_rules()
3060 if (ps->performance_levels[i].vddc < ps->performance_levels[i - 1].vddc) in si_apply_state_adjust_rules()
3061 ps->performance_levels[i].vddc = ps->performance_levels[i - 1].vddc; in si_apply_state_adjust_rules()
3066 mclk = ps->performance_levels[0].mclk; in si_apply_state_adjust_rules()
3068 if (mclk < ps->performance_levels[i].mclk) in si_apply_state_adjust_rules()
3069 mclk = ps->performance_levels[i].mclk; in si_apply_state_adjust_rules()
3072 ps->performance_levels[i].mclk = mclk; in si_apply_state_adjust_rules()
3073 ps->performance_levels[i].vddci = vddci; in si_apply_state_adjust_rules()
3077 if (ps->performance_levels[i].mclk < ps->performance_levels[i - 1].mclk) in si_apply_state_adjust_rules()
3078 ps->performance_levels[i].mclk = ps->performance_levels[i - 1].mclk; in si_apply_state_adjust_rules()
3079 if (ps->performance_levels[i].vddci < ps->performance_levels[i - 1].vddci) in si_apply_state_adjust_rules()
3080 ps->performance_levels[i].vddci = ps->performance_levels[i - 1].vddci; in si_apply_state_adjust_rules()
3086 &ps->performance_levels[i]); in si_apply_state_adjust_rules()
3089 if (ps->performance_levels[i].vddc < min_vce_voltage) in si_apply_state_adjust_rules()
3090 ps->performance_levels[i].vddc = min_vce_voltage; in si_apply_state_adjust_rules()
3092 ps->performance_levels[i].sclk, in si_apply_state_adjust_rules()
3093 max_limits->vddc, &ps->performance_levels[i].vddc); in si_apply_state_adjust_rules()
3095 ps->performance_levels[i].mclk, in si_apply_state_adjust_rules()
3096 max_limits->vddci, &ps->performance_levels[i].vddci); in si_apply_state_adjust_rules()
3098 ps->performance_levels[i].mclk, in si_apply_state_adjust_rules()
3099 max_limits->vddc, &ps->performance_levels[i].vddc); in si_apply_state_adjust_rules()
3102 max_limits->vddc, &ps->performance_levels[i].vddc); in si_apply_state_adjust_rules()
3108 &ps->performance_levels[i].vddc, in si_apply_state_adjust_rules()
3109 &ps->performance_levels[i].vddci); in si_apply_state_adjust_rules()
3114 if (ps->performance_levels[i].vddc > rdev->pm.dpm.dyn_state.max_clock_voltage_on_dc.vddc) in si_apply_state_adjust_rules()
4264 ret = si_populate_memory_timing_parameters(rdev, &state->performance_levels[i], &arb_regs); in si_do_program_memory_timing_parameters()
4332 cpu_to_be32(initial_state->performance_levels[0].mclk); in si_populate_smc_initial_state()
4348 cpu_to_be32(initial_state->performance_levels[0].sclk); in si_populate_smc_initial_state()
4356 initial_state->performance_levels[0].vddc, in si_populate_smc_initial_state()
4374 initial_state->performance_levels[0].vddci, in si_populate_smc_initial_state()
4380 initial_state->performance_levels[0].vddc, in si_populate_smc_initial_state()
4381 initial_state->performance_levels[0].sclk, in si_populate_smc_initial_state()
4382 initial_state->performance_levels[0].mclk, in si_populate_smc_initial_state()
4397 initial_state->performance_levels[0].mclk); in si_populate_smc_initial_state()
4399 if (initial_state->performance_levels[0].mclk > pi->mclk_edc_enable_threshold) in si_populate_smc_initial_state()
5049 state->performance_levels[i + 1].sclk, in si_populate_smc_t()
5050 state->performance_levels[i].sclk, in si_populate_smc_t()
5092 if (state->performance_levels[0].mclk != ulv->pl.mclk) in si_is_state_ulv_compatible()
5141 threshold = state->performance_levels[state->performance_level_count-1].sclk * 100 / 100; in si_convert_power_state_to_smc()
5165 ret = si_convert_power_level_to_smc(rdev, &state->performance_levels[i], in si_convert_power_state_to_smc()
5175 (state->performance_levels[i].sclk < threshold) ? in si_convert_power_state_to_smc()
5582 &state->performance_levels[i], in si_convert_mc_reg_table_to_smc()
5601 si_convert_mc_reg_table_entry_to_smc(rdev, &boot_state->performance_levels[0], in si_populate_mc_reg_table()
5663 pcie_speed = state->performance_levels[i].pcie_gen; in si_get_maximum_link_speed()
6677 struct rv7xx_pl *pl = &ps->performance_levels[index]; in si_parse_pplib_clock_info()
7042 pl = &ps->performance_levels[current_index]; in si_dpm_debugfs_print_current_performance_level()
7062 pl = &ps->performance_levels[current_index]; in si_dpm_get_current_sclk()
7080 pl = &ps->performance_levels[current_index]; in si_dpm_get_current_mclk()