Skip to content

Commit 484f2b7

Browse files
elkablovireshk
authored andcommitted
cpufreq: armada-37xx: forbid cpufreq for 1.2 GHz variant
The 1.2 GHz variant of the Armada 3720 SOC is unstable with DVFS: when the SOC boots, the WTMI firmware sets clocks and AVS values that work correctly with 1.2 GHz CPU frequency, but random crashes occur once cpufreq driver starts scaling. We do not know currently what is the reason: - it may be that the voltage value for L0 for 1.2 GHz variant provided by the vendor in the OTP is simply incorrect when scaling is used, - it may be that some delay is needed somewhere, - it may be something else. The most sane solution now seems to be to simply forbid the cpufreq driver on 1.2 GHz variant. Signed-off-by: Marek Behún <[email protected]> Fixes: 92ce45f ("cpufreq: Add DVFS support for Armada 37xx") Signed-off-by: Viresh Kumar <[email protected]>
1 parent 5d79e5c commit 484f2b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/cpufreq/armada-37xx-cpufreq.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ struct armada_37xx_dvfs {
104104
};
105105

106106
static struct armada_37xx_dvfs armada_37xx_dvfs[] = {
107-
{.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} },
107+
/*
108+
* The cpufreq scaling for 1.2 GHz variant of the SOC is currently
109+
* unstable because we do not know how to configure it properly.
110+
*/
111+
/* {.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} }, */
108112
{.cpu_freq_max = 1000*1000*1000, .divider = {1, 2, 4, 5} },
109113
{.cpu_freq_max = 800*1000*1000, .divider = {1, 2, 3, 4} },
110114
{.cpu_freq_max = 600*1000*1000, .divider = {2, 4, 5, 6} },

0 commit comments

Comments
 (0)