Lines Matching full:epp
210 * (EPP) or energy performance bias (EPB),
212 * @epp_policy: Last saved policy used to set EPP/EPB
634 s16 epp; in intel_pstate_get_epp() local
639 * MSR_HWP_REQUEST, so need to read and get EPP. in intel_pstate_get_epp()
642 epp = rdmsrl_on_cpu(cpu_data->cpu, MSR_HWP_REQUEST, in intel_pstate_get_epp()
644 if (epp) in intel_pstate_get_epp()
645 return epp; in intel_pstate_get_epp()
647 epp = (hwp_req_data >> 24) & 0xff; in intel_pstate_get_epp()
649 /* When there is no EPP present, HWP uses EPB settings */ in intel_pstate_get_epp()
650 epp = intel_pstate_get_epb(cpu_data); in intel_pstate_get_epp()
653 return epp; in intel_pstate_get_epp()
675 * EPP/EPB display strings corresponding to EPP index in the
712 s16 epp; in intel_pstate_get_energy_pref_index() local
716 epp = intel_pstate_get_epp(cpu_data, 0); in intel_pstate_get_energy_pref_index()
717 if (epp < 0) in intel_pstate_get_energy_pref_index()
718 return epp; in intel_pstate_get_energy_pref_index()
721 if (epp == epp_values[EPP_INDEX_PERFORMANCE]) in intel_pstate_get_energy_pref_index()
723 if (epp == epp_values[EPP_INDEX_BALANCE_PERFORMANCE]) in intel_pstate_get_energy_pref_index()
725 if (epp == epp_values[EPP_INDEX_BALANCE_POWERSAVE]) in intel_pstate_get_energy_pref_index()
727 if (epp == epp_values[EPP_INDEX_POWERSAVE]) in intel_pstate_get_energy_pref_index()
729 *raw_epp = epp; in intel_pstate_get_energy_pref_index()
742 index = (epp >> 2) + 1; in intel_pstate_get_energy_pref_index()
748 static int intel_pstate_set_epp(struct cpudata *cpu, u32 epp) in intel_pstate_set_epp() argument
760 value |= (u64)epp << 24; in intel_pstate_set_epp()
769 cpu->epp_cached = epp; in intel_pstate_set_epp()
778 int epp = -EINVAL; in intel_pstate_set_energy_pref_index() local
782 epp = cpu_data->epp_default; in intel_pstate_set_energy_pref_index()
786 epp = raw_epp; in intel_pstate_set_energy_pref_index()
787 else if (epp == -EINVAL) in intel_pstate_set_energy_pref_index()
788 epp = epp_values[pref_index]; in intel_pstate_set_energy_pref_index()
791 * To avoid confusion, refuse to set EPP to any values different in intel_pstate_set_energy_pref_index()
795 if (epp > 0 && cpu_data->policy == CPUFREQ_POLICY_PERFORMANCE) in intel_pstate_set_energy_pref_index()
798 ret = intel_pstate_set_epp(cpu_data, epp); in intel_pstate_set_energy_pref_index()
800 if (epp == -EINVAL) in intel_pstate_set_energy_pref_index()
801 epp = (pref_index - 1) << 2; in intel_pstate_set_energy_pref_index()
802 ret = intel_pstate_set_epb(cpu_data->cpu, epp); in intel_pstate_set_energy_pref_index()
833 u32 epp = 0; in store_energy_performance_preference() local
844 ret = kstrtouint(buf, 10, &epp); in store_energy_performance_preference()
848 if (epp > 255) in store_energy_performance_preference()
865 ret = intel_pstate_set_energy_pref_index(cpu, ret, raw, epp); in store_energy_performance_preference()
869 * target CPU before the EPP update and restarted after it, in store_energy_performance_preference()
874 epp = ret ? epp_values[ret] : cpu->epp_default; in store_energy_performance_preference()
876 if (cpu->epp_cached != epp) { in store_energy_performance_preference()
880 ret = intel_pstate_set_epp(cpu, epp); in store_energy_performance_preference()
1153 s16 epp; in intel_pstate_hwp_set() local
1175 epp = intel_pstate_get_epp(cpu_data, value); in intel_pstate_hwp_set()
1176 cpu_data->epp_powersave = epp; in intel_pstate_hwp_set()
1177 /* If EPP read was failed, then don't try to write */ in intel_pstate_hwp_set()
1178 if (epp < 0) in intel_pstate_hwp_set()
1181 epp = 0; in intel_pstate_hwp_set()
1183 /* skip setting EPP, when saved value is invalid */ in intel_pstate_hwp_set()
1188 * No need to restore EPP when it is not zero. This in intel_pstate_hwp_set()
1194 epp = intel_pstate_get_epp(cpu_data, value); in intel_pstate_hwp_set()
1195 if (epp) in intel_pstate_hwp_set()
1198 epp = cpu_data->epp_powersave; in intel_pstate_hwp_set()
1202 value |= (u64)epp << 24; in intel_pstate_hwp_set()
1204 intel_pstate_set_epb(cpu, epp); in intel_pstate_hwp_set()
1222 * In case the EPP has been set to "performance" by the in intel_pstate_hwp_offline()
1224 * temporary value with the cached EPP one. in intel_pstate_hwp_offline()
1229 * However, make sure that EPP will be set to "performance" when in intel_pstate_hwp_offline()
1251 /* Set EPP to min */ in intel_pstate_hwp_offline()
1943 * If the EPP is set by firmware, which means that firmware enabled HWP in intel_pstate_update_epp_defaults()
1944 * - Is equal or less than 0x80 (default balance_perf EPP) in intel_pstate_update_epp_defaults()
1945 * - But less performance oriented than performance EPP in intel_pstate_update_epp_defaults()
1946 * then use this as new balance_perf EPP. in intel_pstate_update_epp_defaults()
1956 * EPP return. in intel_pstate_update_epp_defaults()
1963 * and default EPP. in intel_pstate_update_epp_defaults()
3651 * Set EPP value as 102, this is the max suggested EPP
3692 * Avoid enabling HWP for processors without EPP support, in intel_pstate_init()