openwrt/target/linux
Koen Vandeputte 18f12e6f69 ipq40xx: switch to performance governor by default
Doing a simple ping to my device shows this:

64 bytes from 10.0.253.101: icmp_seq=1 ttl=64 time=2.00 ms
64 bytes from 10.0.253.101: icmp_seq=2 ttl=64 time=2.02 ms
64 bytes from 10.0.253.101: icmp_seq=3 ttl=64 time=1.68 ms
64 bytes from 10.0.253.101: icmp_seq=4 ttl=64 time=1.91 ms
64 bytes from 10.0.253.101: icmp_seq=5 ttl=64 time=1.92 ms
64 bytes from 10.0.253.101: icmp_seq=6 ttl=64 time=2.04 ms

Some users even report higher values on older kernels:

64 bytes from 192.168.1.10: seq=0 ttl=64 time=0.612 ms
64 bytes from 192.168.1.10: seq=1 ttl=64 time=2.852 ms
64 bytes from 192.168.1.10: seq=2 ttl=64 time=2.719 ms
64 bytes from 192.168.1.10: seq=3 ttl=64 time=2.741 ms
64 bytes from 192.168.1.10: seq=4 ttl=64 time=2.808 ms

The problem is that the governor is set to Ondemand, which causes
the CPU to clock all the way down to 48MHz in some cases.

Switching to performance governor:

64 bytes from 10.0.253.101: icmp_seq=1 ttl=64 time=0.528 ms
64 bytes from 10.0.253.101: icmp_seq=2 ttl=64 time=0.561 ms
64 bytes from 10.0.253.101: icmp_seq=3 ttl=64 time=0.633 ms
64 bytes from 10.0.253.101: icmp_seq=4 ttl=64 time=0.526 ms

In theory, using the Performance governor should increase power draw,
but it looks like it really does not matter for this soc.

Using a calibrated precision DC power supply (cpu idle):

Ondemand
24.00V * 0.134A = 3.216 Watts
48.00V * 0.096A = 4.608 Watts

Performance
24.00V * 0.135A = 3.240 Watts
48.00V * 0.096A = 4.608 Watts

Let's simply switch to the Performance governor by default
to fix the general jittery behaviour on devices using this soc.

Tested on: MikroTik wAP ac

Fixes: #13649
Reviewed-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Thibaut VARÈNE <hacks@slashdirt.org>
Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
(cherry picked from commit b8e52852bd)
2023-10-20 15:24:48 +02:00
..
apm821xx kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
arc770 arc770: set device vendor and model variables 2021-05-26 23:36:40 +02:00
archs38 kernel: Add missing kernel config options 2021-09-13 18:49:15 +02:00
armvirt kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
at91 treewide: make AddDepends/usb-serial selective 2021-06-08 22:50:32 +02:00
ath25 kernel: bump 5.4 to 5.4.211 2022-09-04 15:32:22 +02:00
ath79 ath79: wpj563: enable 2nd USB controller 2023-10-13 18:02:25 +02:00
bcm27xx kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
bcm47xx bcm47xx: fix bgmac regression present in 5.4 kernel 2023-07-10 18:47:41 +02:00
bcm53xx bcm53xx: backport more DT changes queued for v6.6 2023-07-29 21:00:07 +02:00
bcm63xx bcm63xx: fix NETGEAR DGND3700v2 boot loop 2023-06-15 12:01:32 +02:00
bcm4908 bcm4908: include usbport trigger 2023-03-27 09:36:04 +02:00
gemini kernel: bump 5.4 to 5.4.150 2021-10-02 16:05:34 +02:00
generic kernel: bgmac: fix regressed support for BCM53573 SoCs 2023-07-10 18:47:41 +02:00
imx6 kernel: bump 5.4 to 5.4.231 2023-02-18 19:18:13 +01:00
ipq40xx ipq40xx: switch to performance governor by default 2023-10-20 15:24:48 +02:00
ipq806x kernel: bump 5.4 to 5.4.231 2023-02-18 19:18:13 +01:00
kirkwood kirkwood: increase kernel partition of Linksyses 2021-09-13 15:24:35 +02:00
lantiq kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
layerscape kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
malta target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
mediatek kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
mpc85xx mpc85xx: Drop pci aliases to avoid domain changes 2023-02-08 09:40:05 +01:00
mvebu kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
mxs target: use SPDX license identifiers on scripts 2021-02-10 15:47:23 +01:00
octeon kernel: bump 5.4 to 5.4.211 2022-09-04 15:32:22 +02:00
octeontx kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
omap kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
oxnas kernel: bump 5.4 to 5.4.224 2022-11-13 01:06:12 +01:00
pistachio kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
ramips kernel: bump 5.4 to 5.4.238 2023-03-29 16:31:21 +02:00
realtek realtek: update rtl83xx switch driver to the updated DSA API 2023-01-02 17:43:31 +01:00
rockchip kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
sunxi sunxi: fix wifi connection for Banana Pi M2 Berry 2023-02-17 19:32:16 +01:00
tegra kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
uml target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
x86 x86: geode: fix hwrng register accesses 2023-09-14 11:36:57 +02:00
zynq kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00