VIM3 Kernel 4.9 additional tweaks

Hello @numbqq
I wonder why khadas did not enable additional governor in the kvims_defconfig file.
I updated /project/fenix/linux/arch/arm64/configs/kvims_defconfig
added

CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y

Also, in order to enable lower operating frequencies in cpufreq driver just like done in mainline kernel, I have modified /project/fenix/linux/arch/arm64/boot/dts/amlogic/kvim3_linux.dts, added missing low frequencies for both opp tables

opp000 {
			opp-hz = /bits/ 64 <100000000>;
			opp-microvolt = <730000>;
		};

		opp001 {
			opp-hz = /bits/ 64 <250000000>;
			opp-microvolt = <730000>;
		};

Finally, i have modified /project/fenix/config/boards/VIM3.config
set:

 CPUMIN=100000

Now I have image with powersave, ondemand and conservative governors with low operating frequency capability in light loads to minimize power consumption.
measured current from 5V power supply is ~270 mA with ondemand governor

2 Likes

OK.If you need power consumption you can enable them.:wink:

2 Likes

It looks like ondemand governor is not stable on kernel 4.9, the boards hangs and reboot after few minute of heavy load such as youtube video playing