public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 6.6] Revert "cpufreq: tegra186: Share policy per cluster"
@ 2025-06-05 12:53 Jon Hunter
  2025-06-23  6:36 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Hunter @ 2025-06-05 12:53 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, Sasha Levin, Aaron Kling, linux-tegra,
	Jon Hunter

This reverts commit ac64f0e893ff370c4d3426c83c1bd0acae75bcf4 which is
upstream commit be4ae8c19492cd6d5de61ccb34ffb3f5ede5eec8.

This commit is causing a suspend regression on Tegra186 Jetson TX2 with
Linux v6.12.y kernels. This is not seen with Linux v6.15 that includes
this change but indicates that there are there changes missing.
Therefore, revert this change.

Fixes: ac64f0e893ff ("cpufreq: tegra186: Share policy per cluster")
Link: https://lore.kernel.org/linux-tegra/bf1dabf7-0337-40e9-8b8e-4e93a0ffd4cc@nvidia.com/
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
 drivers/cpufreq/tegra186-cpufreq.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/cpufreq/tegra186-cpufreq.c b/drivers/cpufreq/tegra186-cpufreq.c
index 4e5b6f9a56d1..7b8fcfa55038 100644
--- a/drivers/cpufreq/tegra186-cpufreq.c
+++ b/drivers/cpufreq/tegra186-cpufreq.c
@@ -73,18 +73,11 @@ 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 < ARRAY_SIZE(tegra186_cpus); cpu++) {
-		if (data->cpus[cpu].bpmp_cluster_id == cluster)
-			cpumask_set_cpu(cpu, policy->cpus);
-	}
-
 	return 0;
 }
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 6.6] Revert "cpufreq: tegra186: Share policy per cluster"
  2025-06-05 12:53 [PATCH 6.6] Revert "cpufreq: tegra186: Share policy per cluster" Jon Hunter
@ 2025-06-23  6:36 ` Greg Kroah-Hartman
  2025-06-23  8:06   ` Greg Kroah-Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2025-06-23  6:36 UTC (permalink / raw)
  To: Jon Hunter; +Cc: stable, Sasha Levin, Aaron Kling, linux-tegra

On Thu, Jun 05, 2025 at 01:53:41PM +0100, Jon Hunter wrote:
> This reverts commit ac64f0e893ff370c4d3426c83c1bd0acae75bcf4 which is
> upstream commit be4ae8c19492cd6d5de61ccb34ffb3f5ede5eec8.
> 
> This commit is causing a suspend regression on Tegra186 Jetson TX2 with
> Linux v6.12.y kernels. This is not seen with Linux v6.15 that includes
> this change but indicates that there are there changes missing.
> Therefore, revert this change.

But this is the 6.6.y tree, not 6.12.y tree.  So is this still a
regression in 6.6.y?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 6.6] Revert "cpufreq: tegra186: Share policy per cluster"
  2025-06-23  6:36 ` Greg Kroah-Hartman
@ 2025-06-23  8:06   ` Greg Kroah-Hartman
  2025-06-24 10:29     ` Jon Hunter
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2025-06-23  8:06 UTC (permalink / raw)
  To: Jon Hunter; +Cc: stable, Sasha Levin, Aaron Kling, linux-tegra

On Mon, Jun 23, 2025 at 08:36:15AM +0200, Greg Kroah-Hartman wrote:
> On Thu, Jun 05, 2025 at 01:53:41PM +0100, Jon Hunter wrote:
> > This reverts commit ac64f0e893ff370c4d3426c83c1bd0acae75bcf4 which is
> > upstream commit be4ae8c19492cd6d5de61ccb34ffb3f5ede5eec8.
> > 
> > This commit is causing a suspend regression on Tegra186 Jetson TX2 with
> > Linux v6.12.y kernels. This is not seen with Linux v6.15 that includes
> > this change but indicates that there are there changes missing.
> > Therefore, revert this change.
> 
> But this is the 6.6.y tree, not 6.12.y tree.  So is this still a
> regression in 6.6.y?

Ah, nevermind, I'll just edit this by hand :)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 6.6] Revert "cpufreq: tegra186: Share policy per cluster"
  2025-06-23  8:06   ` Greg Kroah-Hartman
@ 2025-06-24 10:29     ` Jon Hunter
  0 siblings, 0 replies; 4+ messages in thread
From: Jon Hunter @ 2025-06-24 10:29 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: stable, Sasha Levin, Aaron Kling, linux-tegra


On 23/06/2025 09:06, Greg Kroah-Hartman wrote:
> On Mon, Jun 23, 2025 at 08:36:15AM +0200, Greg Kroah-Hartman wrote:
>> On Thu, Jun 05, 2025 at 01:53:41PM +0100, Jon Hunter wrote:
>>> This reverts commit ac64f0e893ff370c4d3426c83c1bd0acae75bcf4 which is
>>> upstream commit be4ae8c19492cd6d5de61ccb34ffb3f5ede5eec8.
>>>
>>> This commit is causing a suspend regression on Tegra186 Jetson TX2 with
>>> Linux v6.12.y kernels. This is not seen with Linux v6.15 that includes
>>> this change but indicates that there are there changes missing.
>>> Therefore, revert this change.
>>
>> But this is the 6.6.y tree, not 6.12.y tree.  So is this still a
>> regression in 6.6.y?
> 
> Ah, nevermind, I'll just edit this by hand :)


I should have been clearer in the commit message. The regression was 
only seen for v6.12.y, but we decided to revert for older versions too 
for consistency [0].

Jon

[0] 
https://lore.kernel.org/linux-tegra/2025060413-entrust-unsold-7bfd@gregkh/

-- 
nvpublic


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-06-24 10:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-05 12:53 [PATCH 6.6] Revert "cpufreq: tegra186: Share policy per cluster" Jon Hunter
2025-06-23  6:36 ` Greg Kroah-Hartman
2025-06-23  8:06   ` Greg Kroah-Hartman
2025-06-24 10:29     ` Jon Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox