Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "relax CPU clock and voltage constraints to provide higher per… #373

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
From 7d460400702a323c3dc796f95ce5e155767c0aca Mon Sep 17 00:00:00 2001
From: Torsten Beyer <[email protected]>
Date: Sun, 28 Aug 2022 20:04:45 +0200
Subject: [PATCH] Set minimum CPU voltage to 1.3V
Subject: [PATCH] Set minimum CPU voltage to 1.2V

The cubieboard2 dev spec says minimum voltage for lower frequencies should be 1.0iV and 1.1V respectively. Usage of cubieboards in OpenVarion
show instable behaviour with voltages of 1.0V and 1.1V. Hence this change increases CPU voltage to 1.3V for the lowest CPU speeds.
show instable behaviour with voltages of 1.0V and 1.1V. Hence this change increases CPU voltage to 1.2V for the lowest CPU speeds.
---
arch/arm/boot/dts/sun7i-a20.dtsi | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
Expand All @@ -16,28 +16,26 @@ index 5574299685ab..6902621d806f 100644
@@ -112,9 +112,9 @@
<912000 1400000>,
<864000 1300000>,
- <720000 1200000>,
<720000 1200000>,
- <528000 1100000>,
- <312000 1000000>,
- <144000 1000000>;
+ <720000 1300000>,
+ <528000 1300000>,
+ <312000 1300000>,
+ <144000 1300000>;
+ <528000 1200000>,
+ <312000 1200000>,
+ <144000 1200000>;
#cooling-cells = <2>;
};

@@ -130,9 +130,9 @@
<912000 1400000>,
<864000 1300000>,
- <720000 1200000>,
<720000 1200000>,
- <528000 1100000>,
- <312000 1000000>,
- <144000 1000000>;
+ <720000 1300000>,
+ <528000 1300000>,
+ <312000 1300000>,
+ <144000 1300000>;
+ <528000 1200000>,
+ <312000 1200000>,
+ <144000 1200000>;
#cooling-cells = <2>;
};
};
Expand Down
2 changes: 1 addition & 1 deletion meta-ov/recipes-kernel/linux/linux-openvario_6.6.8.bb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SRC_URI = " \
"

SRC_URI:append:sunxi = " \
file://0004-Set-minimum-CPU-voltage-to-1.3V.patch\
file://0004-Set-minimum-CPU-voltage-to-1.2V.patch\
\
file://openvario-common.dts \
file://openvario-43-rgb.dts \
Expand Down
10 changes: 6 additions & 4 deletions meta-ov/recipes-support/fix-cpu-freq/files/fix_cpu_freq.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/bin/bash

#
# This script limits CPU frequency.
# Together with the changes to sun7i-a20.dtsi it prevents voltage changes in
# available frequency range. Beware: it must be a supported frequency
# This script fixes CPU frequency thus effectively stopping the kernel from changing cpu frequency
# You can change the frequency if you wish. To do so just change the value of CPU_FIX_FREQ to a different
# number. Beware: it must be a supported frequency
#

CPU_FIX_FREQ=864000
CPU_FIX_FREQ=720000

echo $CPU_FIX_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $CPU_FIX_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $CPU_FIX_FREQ > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo $CPU_FIX_FREQ > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
Loading