Skip to contentSkip to conversation

cpufreq: enable 1200Mhz clock speed for armada-37xx

PATCH Applied [email protected] 4 participants 6 messages Nov 25, 2024 – Feb 19, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpufreq: enable 1200Mhz clock speed for armada-37xx

From: Benjamin Schneider <[email protected]>

This frequency was disabled because of stability problems whose source could not be accurately identified[1]. After seven months of testing, the evidence points to an incorrectly configured bootloader as the source of the historical instability. Testing was performed on two A3720 devices with this frequency enabled and the ondemand policy in use. Marvell merged[2] changes to their bootloader source needed to address the stability issue. This driver should expose this frequency option to users.

[1] https://github.com/torvalds/linux/commit/484f2b7c61b9ae58cc00c5127bcbcd9177af8dfe
[2] https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell/pull/44

---
 drivers/cpufreq/armada-37xx-cpufreq.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/cpufreq/armada-37xx-cpufreq.c +1 -5
index bea41ccabf1f..f28a4435fba7 100644
@@ -102,11 +102,7 @@ struct armada_37xx_dvfs {
 };
 
 static struct armada_37xx_dvfs armada_37xx_dvfs[] = {
-	/*
-	 * The cpufreq scaling for 1.2 GHz variant of the SOC is currently
-	 * unstable because we do not know how to configure it properly.
-	 */
-	/* {.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} }, */
+	{.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} },
 	{.cpu_freq_max = 1000*1000*1000, .divider = {1, 2, 4, 5} },
 	{.cpu_freq_max = 800*1000*1000,  .divider = {1, 2, 3, 4} },
 	{.cpu_freq_max = 600*1000*1000,  .divider = {2, 4, 5, 6} },
Signature · 1 line
2.47.1
maintainer
#1 lore raw

Marek,

Quoted 28 lines · On 25-11-24, 13:14, [email protected] wrote:

From: Benjamin Schneider <[email protected]>

This frequency was disabled because of stability problems whose source could not be accurately identified[1]. After seven months of testing, the evidence points to an incorrectly configured bootloader as the source of the historical instability. Testing was performed on two A3720 devices with this frequency enabled and the ondemand policy in use. Marvell merged[2] changes to their bootloader source needed to address the stability issue. This driver should expose this frequency option to users.

[1] https://github.com/torvalds/linux/commit/484f2b7c61b9ae58cc00c5127bcbcd9177af8dfe
[2] https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell/pull/44

---
 drivers/cpufreq/armada-37xx-cpufreq.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/cpufreq/armada-37xx-cpufreq.c +0 -0
index bea41ccabf1f..f28a4435fba7 100644
@@ -102,11 +102,7 @@ struct armada_37xx_dvfs {
 };
 

drivers/cpufreq/armada-37xx-cpufreq.c struct armada_37xx_dvfs { · line 108

Quoted 10 lines
drivers/cpufreq/armada-37xx-cpufreq.c +1 -5
 static struct armada_37xx_dvfs armada_37xx_dvfs[] = {
-	/*
-	 * The cpufreq scaling for 1.2 GHz variant of the SOC is currently
-	 * unstable because we do not know how to configure it properly.
-	 */
-	/* {.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} }, */
+	{.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} },
 	{.cpu_freq_max = 1000*1000*1000, .divider = {1, 2, 4, 5} },
 	{.cpu_freq_max = 800*1000*1000,  .divider = {1, 2, 3, 4} },
 	{.cpu_freq_max = 600*1000*1000,  .divider = {2, 4, 5, 6} },

Any inputs on this before I apply it ?

Signature · 1 line
viresh
#2 lore raw
Quoted 1 line · Viresh Kumar

Marek,

...

Quoted 1 line

Any inputs on this before I apply it ?

Viresh, let me try to test it this week on Turris Mox.

Marek

#3 lore raw
Quoted 2 lines · Marek Behún

Viresh, let me try to test it this week on Turris Mox.

Hi Marek, were you able to test this change on the Turris Mox? If I can help, please let me know.

Ben

maintainer
#4 lore raw
In reply to Marek Behún
Quoted 8 lines · Marek Behún
Quoted 1 line · Viresh Kumar

Marek,

...

Quoted 1 line

Any inputs on this before I apply it ?

Viresh, let me try to test it this week on Turris Mox.

Hi Marek,

I am inclined to apply this unless you have an objection .. Please let me know.

Signature · 1 line
viresh
maintainer Applied
#5 lore raw
In reply to [email protected]
Quoted 13 lines · On 25-11-24, 13:14, [email protected] wrote:

From: Benjamin Schneider <[email protected]>

This frequency was disabled because of stability problems whose source could not be accurately identified[1]. After seven months of testing, the evidence points to an incorrectly configured bootloader as the source of the historical instability. Testing was performed on two A3720 devices with this frequency enabled and the ondemand policy in use. Marvell merged[2] changes to their bootloader source needed to address the stability issue. This driver should expose this frequency option to users.

[1] https://github.com/torvalds/linux/commit/484f2b7c61b9ae58cc00c5127bcbcd9177af8dfe
[2] https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell/pull/44

Quoted 7 lines
---
 drivers/cpufreq/armada-37xx-cpufreq.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Applied. Thanks.

Signature · 1 line
viresh