lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 31 Jul 2023 20:10:14 -0500
From:   Mario Limonciello <mario.limonciello@....com>
To:     Meng Li <li.meng@....com>,
        "Rafael J . Wysocki" <rafael.j.wysocki@...el.com>,
        Huang Rui <ray.huang@....com>, linux-pm@...r.kernel.org
Cc:     Shuah Khan <skhan@...uxfoundation.org>,
        linux-kselftest@...r.kernel.org,
        Nathan Fontenot <nathan.fontenot@....com>,
        Deepak Sharma <deepak.sharma@....com>,
        Alex Deucher <alexander.deucher@....com>,
        Shimmer Huang <shimmer.huang@....com>,
        Perry Yuan <Perry.Yuan@....com>,
        Xiaojian Du <Xiaojian.Du@....com>,
        Viresh Kumar <viresh.kumar@...aro.org>,
        Borislav Petkov <bp@...en8.de>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Modify the function to et the highest_perf value

On 7/31/23 19:47, Meng Li wrote:
> The previous function will be deprecated.
> 
> Signed-off-by: Meng Li <li.meng@....com>
> ---

This actually has functional impact; doesn't it?  Can you better 
describe the reasoning and expected impact in the commit message?

>   drivers/cpufreq/amd-pstate-ut.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/cpufreq/amd-pstate-ut.c b/drivers/cpufreq/amd-pstate-ut.c
> index 7f3fe2048981..9c889a4a0177 100644
> --- a/drivers/cpufreq/amd-pstate-ut.c
> +++ b/drivers/cpufreq/amd-pstate-ut.c
> @@ -145,8 +145,6 @@ static void amd_pstate_ut_check_perf(u32 index)
>   	struct cpufreq_policy *policy = NULL;
>   	struct amd_cpudata *cpudata = NULL;
>   
> -	highest_perf = amd_get_highest_perf();
> -
>   	for_each_possible_cpu(cpu) {
>   		policy = cpufreq_cpu_get(cpu);
>   		if (!policy)
> @@ -161,6 +159,7 @@ static void amd_pstate_ut_check_perf(u32 index)
>   				return;
>   			}
>   
> +			highest_perf = cppc_perf.highest_perf;
>   			nominal_perf = cppc_perf.nominal_perf;
>   			lowest_nonlinear_perf = cppc_perf.lowest_nonlinear_perf;
>   			lowest_perf = cppc_perf.lowest_perf;
> @@ -172,6 +171,7 @@ static void amd_pstate_ut_check_perf(u32 index)
>   				return;
>   			}
>   
> +			highest_perf = AMD_CPPC_HIGHEST_PERF(cap1);
>   			nominal_perf = AMD_CPPC_NOMINAL_PERF(cap1);
>   			lowest_nonlinear_perf = AMD_CPPC_LOWNONLIN_PERF(cap1);
>   			lowest_perf = AMD_CPPC_LOWEST_PERF(cap1);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ