Lines Matching full:epp

212  *			(EPP) or energy performance bias (EPB),
214 * @epp_policy: Last saved policy used to set EPP/EPB
633 s16 epp; in intel_pstate_get_epp() local
638 * MSR_HWP_REQUEST, so need to read and get EPP. in intel_pstate_get_epp()
641 epp = rdmsrl_on_cpu(cpu_data->cpu, MSR_HWP_REQUEST, in intel_pstate_get_epp()
643 if (epp) in intel_pstate_get_epp()
644 return epp; in intel_pstate_get_epp()
646 epp = (hwp_req_data >> 24) & 0xff; in intel_pstate_get_epp()
648 /* When there is no EPP present, HWP uses EPB settings */ in intel_pstate_get_epp()
649 epp = intel_pstate_get_epb(cpu_data); in intel_pstate_get_epp()
652 return epp; in intel_pstate_get_epp()
674 * EPP/EPB display strings corresponding to EPP index in the
711 s16 epp; in intel_pstate_get_energy_pref_index() local
715 epp = intel_pstate_get_epp(cpu_data, 0); in intel_pstate_get_energy_pref_index()
716 if (epp < 0) in intel_pstate_get_energy_pref_index()
717 return epp; in intel_pstate_get_energy_pref_index()
720 if (epp == epp_values[EPP_INDEX_PERFORMANCE]) in intel_pstate_get_energy_pref_index()
722 if (epp == epp_values[EPP_INDEX_BALANCE_PERFORMANCE]) in intel_pstate_get_energy_pref_index()
724 if (epp == epp_values[EPP_INDEX_BALANCE_POWERSAVE]) in intel_pstate_get_energy_pref_index()
726 if (epp == epp_values[EPP_INDEX_POWERSAVE]) in intel_pstate_get_energy_pref_index()
728 *raw_epp = epp; in intel_pstate_get_energy_pref_index()
741 index = (epp >> 2) + 1; in intel_pstate_get_energy_pref_index()
747 static int intel_pstate_set_epp(struct cpudata *cpu, u32 epp) in intel_pstate_set_epp() argument
759 value |= (u64)epp << 24; in intel_pstate_set_epp()
768 cpu->epp_cached = epp; in intel_pstate_set_epp()
777 int epp = -EINVAL; in intel_pstate_set_energy_pref_index() local
781 epp = cpu_data->epp_default; in intel_pstate_set_energy_pref_index()
785 epp = raw_epp; in intel_pstate_set_energy_pref_index()
786 else if (epp == -EINVAL) in intel_pstate_set_energy_pref_index()
787 epp = epp_values[pref_index]; in intel_pstate_set_energy_pref_index()
790 * To avoid confusion, refuse to set EPP to any values different in intel_pstate_set_energy_pref_index()
794 if (epp > 0 && cpu_data->policy == CPUFREQ_POLICY_PERFORMANCE) in intel_pstate_set_energy_pref_index()
797 ret = intel_pstate_set_epp(cpu_data, epp); in intel_pstate_set_energy_pref_index()
799 if (epp == -EINVAL) in intel_pstate_set_energy_pref_index()
800 epp = (pref_index - 1) << 2; in intel_pstate_set_energy_pref_index()
801 ret = intel_pstate_set_epb(cpu_data->cpu, epp); in intel_pstate_set_energy_pref_index()
832 u32 epp = 0; in store_energy_performance_preference() local
843 ret = kstrtouint(buf, 10, &epp); in store_energy_performance_preference()
847 if (epp > 255) in store_energy_performance_preference()
864 ret = intel_pstate_set_energy_pref_index(cpu, ret, raw, epp); in store_energy_performance_preference()
868 * target CPU before the EPP update and restarted after it, in store_energy_performance_preference()
873 epp = ret ? epp_values[ret] : cpu->epp_default; in store_energy_performance_preference()
875 if (cpu->epp_cached != epp) { in store_energy_performance_preference()
879 ret = intel_pstate_set_epp(cpu, epp); in store_energy_performance_preference()
973 s16 epp; in intel_pstate_hwp_set() local
995 epp = intel_pstate_get_epp(cpu_data, value); in intel_pstate_hwp_set()
996 cpu_data->epp_powersave = epp; in intel_pstate_hwp_set()
997 /* If EPP read was failed, then don't try to write */ in intel_pstate_hwp_set()
998 if (epp < 0) in intel_pstate_hwp_set()
1001 epp = 0; in intel_pstate_hwp_set()
1003 /* skip setting EPP, when saved value is invalid */ in intel_pstate_hwp_set()
1008 * No need to restore EPP when it is not zero. This in intel_pstate_hwp_set()
1014 epp = intel_pstate_get_epp(cpu_data, value); in intel_pstate_hwp_set()
1015 if (epp) in intel_pstate_hwp_set()
1018 epp = cpu_data->epp_powersave; in intel_pstate_hwp_set()
1022 value |= (u64)epp << 24; in intel_pstate_hwp_set()
1024 intel_pstate_set_epb(cpu, epp); in intel_pstate_hwp_set()
1042 * In case the EPP has been set to "performance" by the in intel_pstate_hwp_offline()
1044 * temporary value with the cached EPP one. in intel_pstate_hwp_offline()
1049 * However, make sure that EPP will be set to "performance" when in intel_pstate_hwp_offline()
1071 /* Set EPP to min */ in intel_pstate_hwp_offline()
1723 * If the EPP is set by firmware, which means that firmware enabled HWP in intel_pstate_update_epp_defaults()
1724 * - Is equal or less than 0x80 (default balance_perf EPP) in intel_pstate_update_epp_defaults()
1725 * - But less performance oriented than performance EPP in intel_pstate_update_epp_defaults()
1726 * then use this as new balance_perf EPP. in intel_pstate_update_epp_defaults()
1736 * EPP return. in intel_pstate_update_epp_defaults()
1743 * and default EPP. in intel_pstate_update_epp_defaults()
3412 * Set EPP value as 102, this is the max suggested EPP
3446 * Avoid enabling HWP for processors without EPP support, in intel_pstate_init()