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: <cebhjkffkcksy4xx42yyfdpkyd22rmqbwmtcqoqn2grt7jy7iy@plqfstv3ng62>
Date: Fri, 7 Mar 2025 17:04:21 +0100
From: Thierry Reding <thierry.reding@...il.com>
To: Sumit Gupta <sumitg@...dia.com>
Cc: Viresh Kumar <viresh.kumar@...aro.org>, 
	Aaron Kling <luceoscutum@...il.com>, "Rafael J. Wysocki" <rafael@...nel.org>, 
	Jon Hunter <jonathanh@...dia.com>, Aaron Kling <webgeek1234@...il.com>, 
	"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>, "linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>, 
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] cpufreq: tegra186: Share policy per cluster

On Fri, Mar 07, 2025 at 08:45:29PM +0530, Sumit Gupta wrote:
> 
> 
> On 03/03/25 21:18, Thierry Reding wrote:
> > On Mon, Mar 03, 2025 at 03:33:06PM +0530, Viresh Kumar wrote:
> > > On 16-02-25, 10:08, Aaron Kling wrote:
> > > > This functionally brings tegra186 in line with tegra210 and tegra194,
> > > > sharing a cpufreq policy between all cores in a cluster.
> > > > 
> > > > Signed-off-by: Aaron Kling <webgeek1234@...il.com>
> > > > ---
> > > >   drivers/cpufreq/tegra186-cpufreq.c | 7 +++++++
> > > >   1 file changed, 7 insertions(+)
> > > > 
> > > > diff --git a/drivers/cpufreq/tegra186-cpufreq.c b/drivers/cpufreq/tegra186-cpufreq.c
> > > > index c7761eb99f3cc..c832a1270e688 100644
> > > > --- a/drivers/cpufreq/tegra186-cpufreq.c
> > > > +++ b/drivers/cpufreq/tegra186-cpufreq.c
> > > > @@ -73,11 +73,18 @@ static int tegra186_cpufreq_init(struct cpufreq_policy *policy)
> > > >   {
> > > >   	struct tegra186_cpufreq_data *data = cpufreq_get_driver_data();
> > > >   	unsigned int cluster = data->cpus[policy->cpu].bpmp_cluster_id;
> > > > +	u32 cpu;
> > > >   	policy->freq_table = data->clusters[cluster].table;
> > > >   	policy->cpuinfo.transition_latency = 300 * 1000;
> > > >   	policy->driver_data = NULL;
> > > > +	/* set same policy for all cpus in a cluster */
> > > > +	for (cpu = 0; cpu < (sizeof(tegra186_cpus)/sizeof(struct tegra186_cpufreq_cpu)); cpu++) {
> > > > +		if (data->cpus[cpu].bpmp_cluster_id == cluster)
> > > > +			cpumask_set_cpu(cpu, policy->cpus);
> > > > +	}
> > > > +
> > > >   	return 0;
> > > >   }
> > > 
> > > Thierry / Jonathan,
> > > 
> > > Any inputs on this ?
> > 
> > Sumit,
> > 
> > does this look reasonable?
> > 
> > Thanks,
> > Thierry
> 
> Looks good to me.
> 
> Reviewed-by: Sumit Gupta <sumitg@...dia.com>

Thanks, in that case:

Acked-by: Thierry Reding <treding@...dia.com>

Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ