Lines Matching full:epp
211 * (EPP) or energy performance bias (EPB),
213 * @epp_policy: Last saved policy used to set EPP/EPB
635 s16 epp; in intel_pstate_get_epp() local
640 * MSR_HWP_REQUEST, so need to read and get EPP. in intel_pstate_get_epp()
643 epp = rdmsrl_on_cpu(cpu_data->cpu, MSR_HWP_REQUEST, in intel_pstate_get_epp()
645 if (epp) in intel_pstate_get_epp()
646 return epp; in intel_pstate_get_epp()
648 epp = (hwp_req_data >> 24) & 0xff; in intel_pstate_get_epp()
650 /* When there is no EPP present, HWP uses EPB settings */ in intel_pstate_get_epp()
651 epp = intel_pstate_get_epb(cpu_data); in intel_pstate_get_epp()
654 return epp; in intel_pstate_get_epp()
676 * EPP/EPB display strings corresponding to EPP index in the
713 s16 epp; in intel_pstate_get_energy_pref_index() local
717 epp = intel_pstate_get_epp(cpu_data, 0); in intel_pstate_get_energy_pref_index()
718 if (epp < 0) in intel_pstate_get_energy_pref_index()
719 return epp; in intel_pstate_get_energy_pref_index()
722 if (epp == epp_values[EPP_INDEX_PERFORMANCE]) in intel_pstate_get_energy_pref_index()
724 if (epp == epp_values[EPP_INDEX_BALANCE_PERFORMANCE]) in intel_pstate_get_energy_pref_index()
726 if (epp == epp_values[EPP_INDEX_BALANCE_POWERSAVE]) in intel_pstate_get_energy_pref_index()
728 if (epp == epp_values[EPP_INDEX_POWERSAVE]) in intel_pstate_get_energy_pref_index()
730 *raw_epp = epp; in intel_pstate_get_energy_pref_index()
743 index = (epp >> 2) + 1; in intel_pstate_get_energy_pref_index()
749 static int intel_pstate_set_epp(struct cpudata *cpu, u32 epp) in intel_pstate_set_epp() argument
761 value |= (u64)epp << 24; in intel_pstate_set_epp()
770 cpu->epp_cached = epp; in intel_pstate_set_epp()
779 int epp = -EINVAL; in intel_pstate_set_energy_pref_index() local
783 epp = cpu_data->epp_default; in intel_pstate_set_energy_pref_index()
787 epp = raw_epp; in intel_pstate_set_energy_pref_index()
788 else if (epp == -EINVAL) in intel_pstate_set_energy_pref_index()
789 epp = epp_values[pref_index]; in intel_pstate_set_energy_pref_index()
792 * To avoid confusion, refuse to set EPP to any values different in intel_pstate_set_energy_pref_index()
796 if (epp > 0 && cpu_data->policy == CPUFREQ_POLICY_PERFORMANCE) in intel_pstate_set_energy_pref_index()
799 ret = intel_pstate_set_epp(cpu_data, epp); in intel_pstate_set_energy_pref_index()
801 if (epp == -EINVAL) in intel_pstate_set_energy_pref_index()
802 epp = (pref_index - 1) << 2; in intel_pstate_set_energy_pref_index()
803 ret = intel_pstate_set_epb(cpu_data->cpu, epp); in intel_pstate_set_energy_pref_index()
834 u32 epp = 0; in store_energy_performance_preference() local
845 ret = kstrtouint(buf, 10, &epp); in store_energy_performance_preference()
849 if (epp > 255) in store_energy_performance_preference()
866 ret = intel_pstate_set_energy_pref_index(cpu, ret, raw, epp); in store_energy_performance_preference()
870 * target CPU before the EPP update and restarted after it, in store_energy_performance_preference()
875 epp = ret ? epp_values[ret] : cpu->epp_default; in store_energy_performance_preference()
877 if (cpu->epp_cached != epp) { in store_energy_performance_preference()
881 ret = intel_pstate_set_epp(cpu, epp); in store_energy_performance_preference()
1160 s16 epp; in intel_pstate_hwp_set() local
1182 epp = intel_pstate_get_epp(cpu_data, value); in intel_pstate_hwp_set()
1183 cpu_data->epp_powersave = epp; in intel_pstate_hwp_set()
1184 /* If EPP read was failed, then don't try to write */ in intel_pstate_hwp_set()
1185 if (epp < 0) in intel_pstate_hwp_set()
1188 epp = 0; in intel_pstate_hwp_set()
1190 /* skip setting EPP, when saved value is invalid */ in intel_pstate_hwp_set()
1195 * No need to restore EPP when it is not zero. This in intel_pstate_hwp_set()
1201 epp = intel_pstate_get_epp(cpu_data, value); in intel_pstate_hwp_set()
1202 if (epp) in intel_pstate_hwp_set()
1205 epp = cpu_data->epp_powersave; in intel_pstate_hwp_set()
1209 value |= (u64)epp << 24; in intel_pstate_hwp_set()
1211 intel_pstate_set_epb(cpu, epp); in intel_pstate_hwp_set()
1229 * In case the EPP has been set to "performance" by the in intel_pstate_hwp_offline()
1231 * temporary value with the cached EPP one. in intel_pstate_hwp_offline()
1236 * However, make sure that EPP will be set to "performance" when in intel_pstate_hwp_offline()
1258 /* Set EPP to min */ in intel_pstate_hwp_offline()
1950 * If the EPP is set by firmware, which means that firmware enabled HWP in intel_pstate_update_epp_defaults()
1951 * - Is equal or less than 0x80 (default balance_perf EPP) in intel_pstate_update_epp_defaults()
1952 * - But less performance oriented than performance EPP in intel_pstate_update_epp_defaults()
1953 * then use this as new balance_perf EPP. in intel_pstate_update_epp_defaults()
1963 * EPP return. in intel_pstate_update_epp_defaults()
1970 * and default EPP. in intel_pstate_update_epp_defaults()
3656 * Set EPP value as 102, this is the max suggested EPP
3712 * Avoid enabling HWP for processors without EPP support, in intel_pstate_init()