[SRU][M][PATCH 12/12] UBUNTU: [Config] Default to performance CPUFreq governor on riscv64

Emil Renner Berthing emil.renner.berthing at canonical.com
Thu Aug 31 10:24:20 UTC 2023


BugLink: https://bugs.launchpad.net/bugs/2021364

Using our latest u-boot for the Allwinner D1 SoC the kernel has problems
switching from the low to high CPU clock frequency and will get stuck at
408MHz and unable to reboot. Even at 1008MHz these SoCs are not fast, so
let's make sure they stay at that speed.
So far there are no battery powered RISC-V devices supported by Ubuntu,
and if power consumption is still important users can easily switch to
the ondemand governor from userspace.

Signed-off-by: Emil Renner Berthing <emil.renner.berthing at canonical.com>
---
 debian.master/config/annotations | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian.master/config/annotations b/debian.master/config/annotations
index b67456908aa4..58e0f150aa0a 100644
--- a/debian.master/config/annotations
+++ b/debian.master/config/annotations
@@ -90,7 +90,7 @@ CONFIG_CP15_BARRIER_EMULATION                   note<'LP: #1545542'>
 CONFIG_CPUFREQ_DT                               policy<{'arm64': 'y', 'armhf': 'y', 'ppc64el': 'y', 'riscv64': 'y'}>
 CONFIG_CPUFREQ_DT                               note<'not autoloadable'>
 
-CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE         policy<{'amd64': 'n', 'arm64': 'n', 'armhf': 'n', 'ppc64el': 'n', 'riscv64': 'n'}>
+CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE         policy<{'amd64': 'n', 'arm64': 'n', 'armhf': 'n', 'ppc64el': 'n', 'riscv64': 'y'}>
 CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE         note<'for bootspeed'>
 
 CONFIG_CPU_FREQ_GOV_CONSERVATIVE                policy<{'amd64': 'y', 'arm64': 'y', 'armhf': 'y', 'ppc64el': 'y', 'riscv64': 'y'}>
@@ -3105,7 +3105,7 @@ CONFIG_CPU_CP15                                 policy<{'armhf': 'y'}>
 CONFIG_CPU_CP15_MMU                             policy<{'armhf': 'y'}>
 CONFIG_CPU_FREQ                                 policy<{'amd64': 'y', 'arm64': 'y', 'armhf': 'y', 'ppc64el': 'y', 'riscv64': 'y'}>
 CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE        policy<{'arm64': 'n', 'armhf': 'n', 'ppc64el': 'n', 'riscv64': 'n'}>
-CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND            policy<{'arm64': 'y', 'armhf': 'y', 'ppc64el': 'y', 'riscv64': 'y'}>
+CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND            policy<{'arm64': 'y', 'armhf': 'y', 'ppc64el': 'y', 'riscv64': 'n'}>
 CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE           policy<{'amd64': 'n', 'arm64': 'n', 'armhf': 'n', 'ppc64el': 'n', 'riscv64': 'n'}>
 CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL           policy<{'amd64': 'y', 'arm64': 'n', 'armhf': 'n', 'ppc64el': 'n', 'riscv64': 'n'}>
 CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE           policy<{'amd64': 'n', 'arm64': 'n', 'armhf': 'n', 'ppc64el': 'n', 'riscv64': 'n'}>
-- 
2.40.1




More information about the kernel-team mailing list