CPU/GPU/NPU/DDR frekans sabitleme ve performans modu
Banana Pi BPI-M7 · sysfs üzerinden RK3588 bileşenlerinin frekansını sabitleme veya performance moduna alma.
CPU üç gruba ayrılır: policy0 (4x A55), policy4 ve policy6 (2'şer A76). Desteklenen frekansları ve modları görmek, ardından sabit frekans ayarlamak için (root olarak):
cat /sys/devices/system/cpu/cpufreq/policy6/scaling_available_frequencies
cat /sys/devices/system/cpu/cpufreq/policy6/scaling_available_governors
echo userspace > /sys/devices/system/cpu/cpufreq/policy6/scaling_governor
echo 2016000 > /sys/devices/system/cpu/cpufreq/policy6/scaling_setspeed
cat /sys/devices/system/cpu/cpufreq/policy6/cpuinfo_cur_freqGPU, DDR ve NPU için aynı mantık geçerlidir (düğümler: /sys/class/devfreq/fb000000.gpu/, /sys/class/devfreq/dmc/, /sys/class/devfreq/fdab0000.npu/). Örneğin GPU'yu 1 GHz'e sabitlemek için:
echo userspace > /sys/class/devfreq/fb000000.gpu/governor
echo 1000000000 > /sys/class/devfreq/fb000000.gpu/userspace/set_freq
cat /sys/class/devfreq/fb000000.gpu/cur_freqNPU yükü cat /sys/kernel/debug/rknpu/load ile izlenir. Tüm bileşenleri en yüksek performansa almak için:
echo performance > /sys/devices/system/cpu/cpufreq/policy6/scaling_governor
echo performance > /sys/class/devfreq/fb000000.gpu/governor
echo performance > /sys/class/devfreq/dmc/governor
echo performance > /sys/class/devfreq/fdab0000.npu/governorVarsayılan otomatik modlara dönmek için CPU'da schedutil, GPU ve NPU'da simple_ondemand, DDR'de dmc_ondemand yazın.