Redmi AX6000: possible to build CPU governor into kernel

Is it as simple as modifying the subtarget config to support something like ondemand?

EDIT: Ah, I see these are enabled already just not supported by the hardware? Link.

You have to modify the kernel config.

make kernel_menuconfig

In looking there, it seems all are available and default compiled in. What am I missing?

The corresponding entry on the live filesystem is missing:

# cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors
cat: can't open '/sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors': No such file or directory

On my Totolink mt7622 device:

root@Totolink:~# cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors
conservative ondemand userspace powersave performance schedutil 

Mine is just an empty dir. makes me think a kernel option needs to be tweaked.

1 Like

@daniel @Ansuel - wondering if you guys have any insights?

MT7986 doesn't support frequency scaling. Actually also MT7622 only supported it out-of-spec, MediaTek told us several times that they don't do any QA with the SoC running at anything else than maximum speed. So I guess that on MT7986 it may well be possible to also implement it, but nobody did yet.

2 Likes

Thanks for the reply. Can you point me to anything that to allow me to to implement it? The ondemand governor on my RT3200 has been enabled and runs rock solid. I would like to try it on the MT7986.

1 Like