Lines Matching full:epp

98  * AMD Energy Preference Performance (EPP)
99 * The EPP is used in the CCLK DPM controller to drive
101 * short periods of activity. EPP values will be utilized for
103 * display strings corresponding to EPP index in the
212 u64 epp; in shmem_get_epp() local
215 ret = cppc_get_epp_perf(cpudata->cpu, &epp); in shmem_get_epp()
221 return FIELD_GET(AMD_CPPC_EPP_PERF_MASK, epp); in shmem_get_epp()
225 u8 des_perf, u8 max_perf, u8 epp, bool fast_switch) in msr_update_perf() argument
236 value |= FIELD_PREP(AMD_CPPC_EPP_PERF_MASK, epp); in msr_update_perf()
252 WRITE_ONCE(cpudata->epp_cached, epp); in msr_update_perf()
261 u8 max_perf, u8 epp, in amd_pstate_update_perf() argument
265 max_perf, epp, fast_switch); in amd_pstate_update_perf()
268 static int msr_set_epp(struct amd_cpudata *cpudata, u8 epp) in msr_set_epp() argument
275 value |= FIELD_PREP(AMD_CPPC_EPP_PERF_MASK, epp); in msr_set_epp()
287 WRITE_ONCE(cpudata->epp_cached, epp); in msr_set_epp()
295 static inline int amd_pstate_set_epp(struct amd_cpudata *cpudata, u8 epp) in amd_pstate_set_epp() argument
297 return static_call(amd_pstate_set_epp)(cpudata, epp); in amd_pstate_set_epp()
300 static int shmem_set_epp(struct amd_cpudata *cpudata, u8 epp) in shmem_set_epp() argument
305 if (epp == cpudata->epp_cached) in shmem_set_epp()
308 perf_ctrls.energy_perf = epp; in shmem_set_epp()
314 WRITE_ONCE(cpudata->epp_cached, epp); in shmem_set_epp()
323 u8 epp; in amd_pstate_set_energy_pref_index() local
326 epp = cpudata->epp_default; in amd_pstate_set_energy_pref_index()
328 epp = epp_values[pref_index]; in amd_pstate_set_energy_pref_index()
330 if (epp > 0 && cpudata->policy == CPUFREQ_POLICY_PERFORMANCE) { in amd_pstate_set_energy_pref_index()
331 pr_debug("EPP cannot be set under performance policy\n"); in amd_pstate_set_energy_pref_index()
337 epp, in amd_pstate_set_energy_pref_index()
343 return amd_pstate_set_epp(cpudata, epp); in amd_pstate_set_energy_pref_index()
391 /* Enable autonomous mode for EPP */ in shmem_cppc_enable()
393 /* Set desired perf as zero to allow EPP firmware control */ in shmem_cppc_enable()
483 u8 des_perf, u8 max_perf, u8 epp, bool fast_switch) in shmem_update_perf() argument
488 int ret = shmem_set_epp(cpudata, epp); in shmem_update_perf()
1557 u8 epp; in amd_pstate_epp_update_limit() local
1562 epp = 0; in amd_pstate_epp_update_limit()
1564 epp = READ_ONCE(cpudata->epp_cached); in amd_pstate_epp_update_limit()
1567 trace_amd_pstate_epp_perf(cpudata->cpu, cpudata->highest_perf, epp, in amd_pstate_epp_update_limit()
1574 cpudata->max_limit_perf, epp, false); in amd_pstate_epp_update_limit()
1667 /* avoid suspending when EPP is not enabled */ in amd_pstate_epp_suspend()
1728 .name = "amd-pstate-epp",