]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: armada-37xx: forbid cpufreq for 1.2 GHz variant
authorMarek Behún <kabel@kernel.org>
Wed, 30 Jun 2021 22:56:01 +0000 (00:56 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 9 Aug 2021 04:01:22 +0000 (09:31 +0530)
commitab585c8e7cedf1f115a78e150f937e64622b124a
treee71857c5648ba4dae784d28372e34f22d631e8f7
parent8e0746172b3769c2a72ec9bdd1b368a9ceeb641c
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 <kabel@kernel.org>
Fixes: 55695ee33008 ("cpufreq: Add DVFS support for Armada 37xx")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/armada-37xx-cpufreq.c