RE: [PATCH V8 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-10-10 Thread Meng, Li (Jassmine)
.@kernel.org; linux-a...@vger.kernel.org; Shuah > Khan ; linux-kselftest@vger.kernel.org; > Fontenot, Nathan ; Sharma, Deepak > ; Deucher, Alexander > ; Limonciello, Mario > ; Huang, Shimmer > ; Yuan, Perry ; Du, > Xiaojian ; Viresh Kumar ; > Borislav Petkov > Subject: Re

Re: [PATCH V8 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-10-10 Thread Peter Zijlstra
On Mon, Oct 09, 2023 at 10:49:28AM +0800, Meng Li wrote: > +static void amd_pstate_init_prefcore(struct amd_cpudata *cpudata) > +{ > + int ret; > + u32 highest_perf; > + static u32 max_highest_perf = 0, min_highest_perf = U32_MAX; > + > + ret = amd_pstate_get_highest_perf(cpudata->

Re: [PATCH V8 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-10-08 Thread Wyes Karny
On 09 Oct 10:49, Meng Li wrote: > amd-pstate driver utilizes the functions and data structures > provided by the ITMT architecture to enable the scheduler to > favor scheduling on cores which can be get a higher frequency > with lower voltage. We call it amd-pstate preferrred core. > > Here sched_

[PATCH V8 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-10-08 Thread Meng Li
amd-pstate driver utilizes the functions and data structures provided by the ITMT architecture to enable the scheduler to favor scheduling on cores which can be get a higher frequency with lower voltage. We call it amd-pstate preferrred core. Here sched_set_itmt_core_prio() is called to set priori