Lines Matching full:epp
92 * AMD Energy Preference Performance (EPP)
93 * The EPP is used in the CCLK DPM controller to drive
95 * short periods of activity. EPP values will be utilized for
97 * display strings corresponding to EPP index in the
185 u64 epp; in amd_pstate_get_epp() local
190 epp = rdmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, in amd_pstate_get_epp()
192 if (epp) in amd_pstate_get_epp()
193 return epp; in amd_pstate_get_epp()
195 epp = (cppc_req_cached >> 24) & 0xFF; in amd_pstate_get_epp()
197 ret = cppc_get_epp_perf(cpudata->cpu, &epp); in amd_pstate_get_epp()
204 return (s16)(epp & 0xff); in amd_pstate_get_epp()
209 s16 epp; in amd_pstate_get_energy_pref_index() local
212 epp = amd_pstate_get_epp(cpudata, 0); in amd_pstate_get_energy_pref_index()
213 if (epp < 0) in amd_pstate_get_energy_pref_index()
214 return epp; in amd_pstate_get_energy_pref_index()
216 switch (epp) { in amd_pstate_get_energy_pref_index()
256 static int amd_pstate_set_epp(struct amd_cpudata *cpudata, u32 epp) in amd_pstate_set_epp() argument
265 value |= (u64)epp << 24; in amd_pstate_set_epp()
270 cpudata->epp_cached = epp; in amd_pstate_set_epp()
275 perf_ctrls.energy_perf = epp; in amd_pstate_set_epp()
281 cpudata->epp_cached = epp; in amd_pstate_set_epp()
290 int epp = -EINVAL; in amd_pstate_set_energy_pref_index() local
294 epp = cpudata->epp_default; in amd_pstate_set_energy_pref_index()
296 if (epp == -EINVAL) in amd_pstate_set_energy_pref_index()
297 epp = epp_values[pref_index]; in amd_pstate_set_energy_pref_index()
299 if (epp > 0 && cpudata->policy == CPUFREQ_POLICY_PERFORMANCE) { in amd_pstate_set_energy_pref_index()
300 pr_debug("EPP cannot be set under performance policy\n"); in amd_pstate_set_energy_pref_index()
304 ret = amd_pstate_set_epp(cpudata, epp); in amd_pstate_set_energy_pref_index()
348 /* Enable autonomous mode for EPP */ in cppc_enable()
350 /* Set desired perf as zero to allow EPP firmware control */ in cppc_enable()
1512 s16 epp; in amd_pstate_epp_update_limit() local
1547 /* CPPC EPP feature require to set zero to the desire perf bit */ in amd_pstate_epp_update_limit()
1553 /* Get BIOS pre-defined epp value */ in amd_pstate_epp_update_limit()
1554 epp = amd_pstate_get_epp(cpudata, value); in amd_pstate_epp_update_limit()
1555 if (epp < 0) { in amd_pstate_epp_update_limit()
1558 * systems where EPP register read/write not supported. in amd_pstate_epp_update_limit()
1560 return epp; in amd_pstate_epp_update_limit()
1564 epp = 0; in amd_pstate_epp_update_limit()
1566 /* Set initial EPP value */ in amd_pstate_epp_update_limit()
1569 value |= (u64)epp << 24; in amd_pstate_epp_update_limit()
1573 return amd_pstate_set_epp(cpudata, epp); in amd_pstate_epp_update_limit()
1694 /* avoid suspending when EPP is not enabled */ in amd_pstate_epp_suspend()
1754 .name = "amd-pstate-epp",