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] [day] [month] [year] [list]
Message-ID: <abde16ee-9a95-4bfe-930f-f4714c751c18@huawei.com>
Date: Tue, 2 Jul 2024 11:34:46 +0800
From: "liwei (JK)" <liwei728@...wei.com>
To: Viresh Kumar <viresh.kumar@...aro.org>
CC: <rafael@...nel.org>, <lenb@...nel.org>, <Pierre.Gondois@....com>,
	<linux-acpi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
	<liwei391@...wei.com>
Subject: Re: [PATCH v2] cpufreq/cppc: fix perf_to_khz/khz_to_perf conversion
 exception

kindly ping

在 2024/5/20 15:25, Viresh Kumar 写道:
> On 06-05-24, 15:58, liwei wrote:
>> When the nominal_freq recorded by the kernel is equal to the lowest_freq,
>> and the frequency adjustment operation is triggered externally, there is
>> a logic error in cppc_perf_to_khz()/cppc_khz_to_perf(), resulting in perf
>> and khz conversion errors.
>>
>> Fix this by adding the branch processing logic when nominal_freq is equal
>> to lowest_freq.
>>
>> Fixes: ec1c7ad47664 ("cpufreq: CPPC: Fix performance/frequency conversion")
>> Signed-off-by: liwei <liwei728@...wei.com>
>> ---
>> v2:
>>      - Fix similar issue in cppc_khz_to_perf()
>>
>>   drivers/acpi/cppc_acpi.c | 22 +++++++++++++++++-----
>>   1 file changed, 17 insertions(+), 5 deletions(-)
> 
> Acked-by: Viresh Kumar <viresh.kumar@...aro.org>
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ