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: <9246b226e356ea0db044a592fed8853dd593f7f7.camel@xry111.site>
Date: Mon, 23 Jun 2025 22:59:50 +0800
From: Xi Ruoyao <xry111@...111.site>
To: Yao Zi <ziyao@...root.org>, Huacai Chen <chenhuacai@...nel.org>, WANG
 Xuerui <kernel@...0n.name>, "Rafael J. Wysocki" <rafael@...nel.org>, Viresh
 Kumar	 <viresh.kumar@...aro.org>
Cc: Jiaxun Yang <jiaxun.yang@...goat.com>, Mingcong Bai <jeffbai@...c.io>, 
 Kexy Biscuit <kexybiscuit@...c.io>, loongarch@...ts.linux.dev,
 linux-pm@...r.kernel.org, 	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cpufreq: loongson3: Support older SMC firmware

On Mon, 2025-06-23 at 12:33 +0000, Yao Zi wrote:

/* snip */

> -static struct cpufreq_driver loongson3_cpufreq_driver = {
> +static struct cpufreq_driver loongson3_cpufreq_smc0_driver = {
>  	.name = "loongson3",

How about using different names for the drivers?

>  	.flags = CPUFREQ_CONST_LOOPS,
> -	.init = loongson3_cpufreq_cpu_init,
> +	.init = loongson3_cpufreq_cpu_smc0_init,
>  	.exit = loongson3_cpufreq_cpu_exit,
>  	.online = loongson3_cpufreq_cpu_online,
>  	.offline = loongson3_cpufreq_cpu_offline,
> -	.get = loongson3_cpufreq_get,
> -	.target_index = loongson3_cpufreq_target,
> +	.target_index = loongson3_cpufreq_smc0_target,
> +	.verify = cpufreq_generic_frequency_table_verify,
> +	.suspend = cpufreq_generic_suspend,
> +};
> +
> +static struct cpufreq_driver loongson3_cpufreq_smc1_driver = {
> +	.name = "loongson3",

Tested on a 3A6000 laptop with the schedutil policy.  On idle one core
is at 2000MHz and other cores are at 250MHz, when building the kernel
all cores are at 2000MHz.

Tested-by: Xi Ruoyao <xry111@...111.site>

-- 
Xi Ruoyao <xry111@...111.site>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ