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]
Message-ID:
 <SH0PR01MB084174DCDA011CDD9D6557FFF9852@SH0PR01MB0841.CHNPR01.prod.partner.outlook.cn>
Date: Thu, 8 Jan 2026 06:48:06 +0000
From: Joshua Yeong <joshua.yeong@...rfivetech.com>
To: Viresh Kumar <viresh.kumar@...aro.org>
CC: "rahul@...mations.net" <rahul@...mations.net>, "anup@...infault.org"
	<anup@...infault.org>, Leyfoon Tan <leyfoon.tan@...rfivetech.com>,
	"robh@...nel.org" <robh@...nel.org>, "krzk+dt@...nel.org"
	<krzk+dt@...nel.org>, "conor+dt@...nel.org" <conor+dt@...nel.org>,
	"pjw@...nel.org" <pjw@...nel.org>, "palmer@...belt.com" <palmer@...belt.com>,
	"aou@...s.berkeley.edu" <aou@...s.berkeley.edu>, "alex@...ti.fr"
	<alex@...ti.fr>, "rafael@...nel.org" <rafael@...nel.org>, "sboyd@...nel.org"
	<sboyd@...nel.org>, "jms@....tenstorrent.com" <jms@....tenstorrent.com>,
	"darshan.prajapati@...fochips.com" <darshan.prajapati@...fochips.com>,
	"charlie@...osinc.com" <charlie@...osinc.com>, "dfustini@....tenstorrent.com"
	<dfustini@....tenstorrent.com>, "michal.simek@....com"
	<michal.simek@....com>, "cyy@...self.name" <cyy@...self.name>,
	"jassisinghbrar@...il.com" <jassisinghbrar@...il.com>,
	"andriy.shevchenko@...ux.intel.com" <andriy.shevchenko@...ux.intel.com>,
	"linux-riscv@...ts.infradead.org" <linux-riscv@...ts.infradead.org>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>
Subject: RE: [PATCH 4/5] cpufreq: Add cpufreq driver for the RISC-V RPMI
 performance service group

On Thursday, January 8, 2026 11:27 AM, Viresh Kumar <viresh.kumar@...aro.org> wrote:

> On 06-01-26, 17:21, Joshua Yeong wrote:
> > diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 
> > 78702a08364f..9aaa1f71000e 100644
> > --- a/drivers/cpufreq/Kconfig
> > +++ b/drivers/cpufreq/Kconfig
> > @@ -4,8 +4,8 @@ menu "CPU Frequency scaling"
> >  config CPU_FREQ
> >  	bool "CPU Frequency scaling"
> >  	help
> > -	  CPU Frequency scaling allows you to change the clock speed of 
> > -	  CPUs on the fly. This is a nice method to save power, because 
> > +	  CPU Frequency scaling allows you to change the clock speed of
> > +	  CPUs on the fly. This is a nice method to save power, because
> >  	  the lower the CPU clock speed, the less power the CPU consumes.
> >  
> >  	  Note that this driver doesn't automatically change the CPU @@ 
> > -65,7 +65,7 @@ config CPU_FREQ_DEFAULT_GOV_USERSPACE
> >  	select CPU_FREQ_GOV_USERSPACE
> >  	help
> >  	  Use the CPUFreq governor 'userspace' as default. This allows
> > -	  you to set the CPU frequency manually or when a userspace 
> > +	  you to set the CPU frequency manually or when a userspace
> >  	  program shall be able to set the CPU dynamically without having
> >  	  to enable the userspace governor manually.
> >  
> > @@ -134,7 +134,7 @@ config CPU_FREQ_GOV_USERSPACE
> >  	help
> >  	  Enable this cpufreq governor when you either want to set the
> >  	  CPU frequency manually or when a userspace program shall
> > -	  be able to set the CPU dynamically, like on LART 
> > +	  be able to set the CPU dynamically, like on LART
> >  	  <http://www.lartmaker.nl/>.
> >  
> >  	  To compile this driver as a module, choose M here: the @@ -147,11 
> > +147,11 @@ config CPU_FREQ_GOV_ONDEMAND
> >  	select CPU_FREQ_GOV_COMMON
> >  	help
> >  	  'ondemand' - This driver adds a dynamic cpufreq policy governor.
> > -	  The governor does a periodic polling and 
> > +	  The governor does a periodic polling and
> >  	  changes frequency based on the CPU utilization.
> >  	  The support for this governor depends on CPU capability to
> >  	  do fast frequency switching (i.e, very low latency frequency
> > -	  transitions). 
> > +	  transitions).
> >  
> >  	  To compile this driver as a module, choose M here: the
> >  	  module will be called cpufreq_ondemand.
> > @@ -367,4 +367,18 @@ config ACPI_CPPC_CPUFREQ_FIE
> >  
> >  endif
>
> Unrelated changes ?

Hi Viresh,

Will remove the blank space in V2 patch.

>
> > +++ b/drivers/cpufreq/riscv-rpmi-cpufreq.c
> > +static int rpmi_cpufreq_probe(struct platform_device *pdev) {
>
> > +fail_free_channel:
> > +	mbox_free_channel(mpxy_ctx->chan);
> > +
> > +	return ret;
> > +}
> > +
> > +static void rpmi_cpufreq_remove(struct platform_device *pdev) {
> > +	cpufreq_unregister_driver(&rpmi_perf_cpufreq_driver);
>
> Don't need to free mpxy_ctx->chan ?
>

Ok will update this.

> --
> viresh

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ