[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191127184542.GA21368@bogus>
Date: Wed, 27 Nov 2019 18:45:42 +0000
From: Sudeep Holla <sudeep.holla@....com>
To: Dietmar Eggemann <dietmar.eggemann@....com>
Cc: Viresh Kumar <viresh.kumar@...aro.org>,
"Rafael J . Wysocki" <rjw@...ysocki.net>,
Liviu Dudau <liviu.dudau@....com>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Morten Rasmussen <morten.rasmussen@....com>,
Sudeep Holla <sudeep.holla@....com>,
Lukasz Luba <lukasz.luba@....com>, linux-pm@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cpufreq: vexpress-spc: Fix wrong alternation of
policy->related_cpus during CPU hp
On Wed, Nov 27, 2019 at 03:40:29PM +0000, Sudeep Holla wrote:
>
> diff --git i/arch/arm/mach-vexpress/spc.c w/arch/arm/mach-vexpress/spc.c
> index 354e0e7025ae..e0e2e789a0b7 100644
> --- i/arch/arm/mach-vexpress/spc.c
> +++ w/arch/arm/mach-vexpress/spc.c
> @@ -551,8 +551,9 @@ static struct clk *ve_spc_clk_register(struct device *cpu_dev)
>
> static int __init ve_spc_clk_init(void)
> {
> - int cpu;
> + int cpu, cluster;
> struct clk *clk;
> + bool init_opp_table[MAX_CLUSTERS] = { false };
>
> if (!info)
> return 0; /* Continue only if SPC is initialised */
> @@ -578,8 +579,17 @@ static int __init ve_spc_clk_init(void)
> continue;
> }
>
> + cluster = topology_physical_package_id(cpu_dev->id);
> + if (init_opp_table[cluster])
> + continue;
> +
> if (ve_init_opp_table(cpu_dev))
> pr_warn("failed to initialise cpu%d opp table\n", cpu);
> + else if (dev_pm_opp_set_sharing_cpus(cpu_dev,
> + topology_core_cpumask(cpu_dev->id)))
> + pr_warn("failed to mark OPPs shared for cpu%d\n", cpu);
missing else here, found when I was looking at the patch to stash/commit
locally.
> +
> + init_opp_table[cluster] = true;
> }
>
> platform_device_register_simple("vexpress-spc-cpufreq", -1, NULL, 0);
--
Regards,
Sudeep
Powered by blists - more mailing lists