Lines Matching refs:performance_levels
2417 prev_sclk = state->performance_levels[i-1].sclk; in si_populate_power_containment_values()
2418 max_sclk = state->performance_levels[i].sclk; in si_populate_power_containment_values()
2436 if (min_sclk < state->performance_levels[0].sclk) in si_populate_power_containment_values()
2437 min_sclk = state->performance_levels[0].sclk; in si_populate_power_containment_values()
2443 state->performance_levels[i-1].vddc, &vddc); in si_populate_power_containment_values()
2452 state->performance_levels[i].vddc, &vddc); in si_populate_power_containment_values()
2511 if ((state->performance_levels[i].sclk >= adev->pm.dpm.sq_ramping_threshold) && in si_populate_sq_ramping_values()
3178 if (new_state->performance_levels[new_state->performance_level_count - 1].sclk >= in ni_set_uvd_clock_before_set_eng_clock()
3179 current_state->performance_levels[current_state->performance_level_count - 1].sclk) in ni_set_uvd_clock_before_set_eng_clock()
3196 if (new_state->performance_levels[new_state->performance_level_count - 1].sclk < in ni_set_uvd_clock_after_set_eng_clock()
3197 current_state->performance_levels[current_state->performance_level_count - 1].sclk) in ni_set_uvd_clock_after_set_eng_clock()
3485 if (ps->performance_levels[i].vddc > ps->performance_levels[i+1].vddc) in si_apply_state_adjust_rules()
3486 ps->performance_levels[i].vddc = ps->performance_levels[i+1].vddc; in si_apply_state_adjust_rules()
3490 if (ps->performance_levels[i].mclk > max_limits->mclk) in si_apply_state_adjust_rules()
3491 ps->performance_levels[i].mclk = max_limits->mclk; in si_apply_state_adjust_rules()
3492 if (ps->performance_levels[i].sclk > max_limits->sclk) in si_apply_state_adjust_rules()
3493 ps->performance_levels[i].sclk = max_limits->sclk; in si_apply_state_adjust_rules()
3494 if (ps->performance_levels[i].vddc > max_limits->vddc) in si_apply_state_adjust_rules()
3495 ps->performance_levels[i].vddc = max_limits->vddc; in si_apply_state_adjust_rules()
3496 if (ps->performance_levels[i].vddci > max_limits->vddci) in si_apply_state_adjust_rules()
3497 ps->performance_levels[i].vddci = max_limits->vddci; in si_apply_state_adjust_rules()
3511 if (ps->performance_levels[i].sclk > max_sclk_vddc) in si_apply_state_adjust_rules()
3512 ps->performance_levels[i].sclk = max_sclk_vddc; in si_apply_state_adjust_rules()
3515 if (ps->performance_levels[i].mclk > max_mclk_vddci) in si_apply_state_adjust_rules()
3516 ps->performance_levels[i].mclk = max_mclk_vddci; in si_apply_state_adjust_rules()
3519 if (ps->performance_levels[i].mclk > max_mclk_vddc) in si_apply_state_adjust_rules()
3520 ps->performance_levels[i].mclk = max_mclk_vddc; in si_apply_state_adjust_rules()
3523 if (ps->performance_levels[i].mclk > max_mclk) in si_apply_state_adjust_rules()
3524 ps->performance_levels[i].mclk = max_mclk; in si_apply_state_adjust_rules()
3527 if (ps->performance_levels[i].sclk > max_sclk) in si_apply_state_adjust_rules()
3528 ps->performance_levels[i].sclk = max_sclk; in si_apply_state_adjust_rules()
3535 mclk = ps->performance_levels[ps->performance_level_count - 1].mclk; in si_apply_state_adjust_rules()
3536 vddci = ps->performance_levels[ps->performance_level_count - 1].vddci; in si_apply_state_adjust_rules()
3538 mclk = ps->performance_levels[0].mclk; in si_apply_state_adjust_rules()
3539 vddci = ps->performance_levels[0].vddci; in si_apply_state_adjust_rules()
3543 sclk = ps->performance_levels[ps->performance_level_count - 1].sclk; in si_apply_state_adjust_rules()
3544 vddc = ps->performance_levels[ps->performance_level_count - 1].vddc; in si_apply_state_adjust_rules()
3546 sclk = ps->performance_levels[0].sclk; in si_apply_state_adjust_rules()
3547 vddc = ps->performance_levels[0].vddc; in si_apply_state_adjust_rules()
3558 ps->performance_levels[0].sclk = sclk; in si_apply_state_adjust_rules()
3559 ps->performance_levels[0].mclk = mclk; in si_apply_state_adjust_rules()
3560 ps->performance_levels[0].vddc = vddc; in si_apply_state_adjust_rules()
3561 ps->performance_levels[0].vddci = vddci; in si_apply_state_adjust_rules()
3564 sclk = ps->performance_levels[0].sclk; in si_apply_state_adjust_rules()
3566 if (sclk < ps->performance_levels[i].sclk) in si_apply_state_adjust_rules()
3567 sclk = ps->performance_levels[i].sclk; in si_apply_state_adjust_rules()
3570 ps->performance_levels[i].sclk = sclk; in si_apply_state_adjust_rules()
3571 ps->performance_levels[i].vddc = vddc; in si_apply_state_adjust_rules()
3575 if (ps->performance_levels[i].sclk < ps->performance_levels[i - 1].sclk) in si_apply_state_adjust_rules()
3576 ps->performance_levels[i].sclk = ps->performance_levels[i - 1].sclk; in si_apply_state_adjust_rules()
3577 if (ps->performance_levels[i].vddc < ps->performance_levels[i - 1].vddc) in si_apply_state_adjust_rules()
3578 ps->performance_levels[i].vddc = ps->performance_levels[i - 1].vddc; in si_apply_state_adjust_rules()
3583 mclk = ps->performance_levels[0].mclk; in si_apply_state_adjust_rules()
3585 if (mclk < ps->performance_levels[i].mclk) in si_apply_state_adjust_rules()
3586 mclk = ps->performance_levels[i].mclk; in si_apply_state_adjust_rules()
3589 ps->performance_levels[i].mclk = mclk; in si_apply_state_adjust_rules()
3590 ps->performance_levels[i].vddci = vddci; in si_apply_state_adjust_rules()
3594 if (ps->performance_levels[i].mclk < ps->performance_levels[i - 1].mclk) in si_apply_state_adjust_rules()
3595 ps->performance_levels[i].mclk = ps->performance_levels[i - 1].mclk; in si_apply_state_adjust_rules()
3596 if (ps->performance_levels[i].vddci < ps->performance_levels[i - 1].vddci) in si_apply_state_adjust_rules()
3597 ps->performance_levels[i].vddci = ps->performance_levels[i - 1].vddci; in si_apply_state_adjust_rules()
3603 &ps->performance_levels[i]); in si_apply_state_adjust_rules()
3606 if (ps->performance_levels[i].vddc < min_vce_voltage) in si_apply_state_adjust_rules()
3607 ps->performance_levels[i].vddc = min_vce_voltage; in si_apply_state_adjust_rules()
3609 ps->performance_levels[i].sclk, in si_apply_state_adjust_rules()
3610 max_limits->vddc, &ps->performance_levels[i].vddc); in si_apply_state_adjust_rules()
3612 ps->performance_levels[i].mclk, in si_apply_state_adjust_rules()
3613 max_limits->vddci, &ps->performance_levels[i].vddci); in si_apply_state_adjust_rules()
3615 ps->performance_levels[i].mclk, in si_apply_state_adjust_rules()
3616 max_limits->vddc, &ps->performance_levels[i].vddc); in si_apply_state_adjust_rules()
3619 max_limits->vddc, &ps->performance_levels[i].vddc); in si_apply_state_adjust_rules()
3625 &ps->performance_levels[i].vddc, in si_apply_state_adjust_rules()
3626 &ps->performance_levels[i].vddci); in si_apply_state_adjust_rules()
3631 if (ps->performance_levels[i].vddc > adev->pm.dpm.dyn_state.max_clock_voltage_on_dc.vddc) in si_apply_state_adjust_rules()
4787 ret = si_populate_memory_timing_parameters(adev, &state->performance_levels[i], &arb_regs); in si_do_program_memory_timing_parameters()
4855 cpu_to_be32(initial_state->performance_levels[0].mclk); in si_populate_smc_initial_state()
4871 cpu_to_be32(initial_state->performance_levels[0].sclk); in si_populate_smc_initial_state()
4879 initial_state->performance_levels[0].vddc, in si_populate_smc_initial_state()
4897 initial_state->performance_levels[0].vddci, in si_populate_smc_initial_state()
4903 initial_state->performance_levels[0].vddc, in si_populate_smc_initial_state()
4904 initial_state->performance_levels[0].sclk, in si_populate_smc_initial_state()
4905 initial_state->performance_levels[0].mclk, in si_populate_smc_initial_state()
4918 initial_state->performance_levels[0].mclk); in si_populate_smc_initial_state()
4920 if (initial_state->performance_levels[0].mclk > pi->mclk_edc_enable_threshold) in si_populate_smc_initial_state()
5595 state->performance_levels[i + 1].sclk, in si_populate_smc_t()
5596 state->performance_levels[i].sclk, in si_populate_smc_t()
5638 if (state->performance_levels[0].mclk != ulv->pl.mclk) in si_is_state_ulv_compatible()
5687 threshold = state->performance_levels[state->performance_level_count-1].sclk * 100 / 100; in si_convert_power_state_to_smc()
5711 ret = si_convert_power_level_to_smc(adev, &state->performance_levels[i], in si_convert_power_state_to_smc()
5721 (state->performance_levels[i].sclk < threshold) ? in si_convert_power_state_to_smc()
6119 &state->performance_levels[i], in si_convert_mc_reg_table_to_smc()
6138 si_convert_mc_reg_table_entry_to_smc(adev, &boot_state->performance_levels[0], in si_populate_mc_reg_table()
6198 pcie_speed = state->performance_levels[i].pcie_gen; in si_get_maximum_link_speed()
7188 struct rv7xx_pl *pl = &ps->performance_levels[index]; in si_parse_pplib_clock_info()
7542 pl = &ps->performance_levels[current_index]; in si_dpm_debugfs_print_current_performance_level()
7908 return requested_state->performance_levels[0].sclk; in si_dpm_get_sclk()
7910 return requested_state->performance_levels[requested_state->performance_level_count - 1].sclk; in si_dpm_get_sclk()
7920 return requested_state->performance_levels[0].mclk; in si_dpm_get_mclk()
7922 return requested_state->performance_levels[requested_state->performance_level_count - 1].mclk; in si_dpm_get_mclk()
7938 pl = &ps->performance_levels[i]; in si_dpm_print_power_state()
8000 if (!si_are_power_levels_equal(&(si_cps->performance_levels[i]), in si_check_state_equal()
8001 &(si_rps->performance_levels[i]))) { in si_check_state_equal()
8033 sclk = ps->performance_levels[pl_index].sclk; in si_dpm_read_sensor()
8041 mclk = ps->performance_levels[pl_index].mclk; in si_dpm_read_sensor()