openwrt/target/linux
Koen Vandeputte 1fa6b2639c 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:17:35 +02:00
..
apm821xx kernel: bump 5.10 to 5.10.188 2023-08-11 22:19:43 +02:00
archs38 generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
armvirt generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
at91 kernel: bump 5.10 to 5.10.196 2023-09-24 19:01:52 +02:00
ath25 kernel: bump 5.10 to 5.10.189 2023-08-11 23:17:31 +02:00
ath79 ath79: wpj563: enable 2nd USB controller 2023-10-13 18:00:30 +02:00
bcm27xx kernel: bump 5.10 to 5.10.197 2023-09-24 21:31:42 +02:00
bcm47xx kernel: bump 5.10 to 5.10.194 2023-09-03 13:48:31 +02:00
bcm53xx kernel: bump 5.10 to 5.10.196 2023-09-24 19:01:52 +02:00
bcm63xx kernel: bump 5.10 to 5.10.189 2023-08-11 23:17:31 +02:00
bcm4908 kernel: bump 5.10 to 5.10.197 2023-09-24 21:31:42 +02:00
bmips kernel: bump 5.10 to 5.10.189 2023-08-11 23:17:31 +02:00
gemini generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
generic kernel: bump 5.10 to 5.10.197 2023-09-24 21:31:42 +02:00
imx imx: fix USB support 2022-03-11 00:04:05 +01:00
ipq40xx ipq40xx: switch to performance governor by default 2023-10-20 15:17:35 +02:00
ipq806x kernel: bump 5.10 to 5.10.189 2023-08-11 23:17:31 +02:00
kirkwood kernel: remove hack patch, move kirkwood specific kmods to target modules.mk 2022-12-27 08:05:23 +01:00
lantiq kernel: bump 5.10 to 5.10.189 2023-08-11 23:17:31 +02:00
layerscape kernel: bump 5.10 to 5.10.185 2023-07-01 14:31:42 +02:00
malta generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
mediatek kernel: bump 5.10 to 5.10.196 2023-09-24 19:01:52 +02:00
mpc85xx mpc85xx: add support for Watchguard Firebox T10 2023-03-10 00:13:29 +01:00
mvebu kernel: bump 5.10 to 5.10.189 2023-08-11 23:17:31 +02:00
mxs generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
octeon octeon: ubnt-edgerouter-4/6p: devicetree cleanup 2023-07-19 21:57:25 +02:00
octeontx kernel: bump 5.10 to 5.10.188 2023-08-11 22:19:43 +02:00
omap generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
oxnas kernel: bump 5.10 to 5.10.197 2023-09-24 21:31:42 +02:00
pistachio kernel: bump 5.10 to 5.10.196 2023-09-24 19:01:52 +02:00
qoriq qoriq: fix typo in FEATURES 2022-11-11 16:25:29 +02:00
ramips kernel: bump 5.10 to 5.10.196 2023-09-24 19:01:52 +02:00
realtek kernel: bump 5.10 to 5.10.190 2023-08-11 23:17:31 +02:00
rockchip kernel: bump 5.10 to 5.10.192 2023-08-29 23:48:04 +02:00
sunxi sunxi: fix typo in device packages for MarsBoard A10 2022-12-22 00:14:30 +01:00
tegra kernel: bump 5.10 to 5.10.132 2022-07-30 17:21:47 +02:00
uml kernel: bump 5.10 to 5.10.196 2023-09-24 19:01:52 +02:00
x86 x86: geode: fix hwrng register accesses 2023-09-14 09:32:27 +02:00
zynq generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
Makefile build: fix issues with targets installed via feeds 2022-09-27 13:45:03 +02:00