phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 659 forks source link

MTK 6750 Big little cores strange behaviour #670

Open artouiros opened 5 years ago

artouiros commented 5 years ago

Chinese basement phone with a MTK 6750 CPU, stock oreo 8.1. Now using latest AOSP build. 6750 has 2 CPU clusters -

  1. cluster 1 - little. max frequency 1GHZ
  2. cluster 2 - big. max frequency 1.5 GHZ THE PROBLEM - Cluster one frequencies hit 1500 ignoring it's max frequency from mediatek. i can tell this while watching aida64 cpu tab and also kernel auditor app. also cpu temps are growing way faster compared to stock rom, from that i can make a guess that cluster 1 cores are overclocking and then throttling and this happens infinite.
artouiros commented 5 years ago

/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq this return 1001000 and after some second returns 1508000 and so on i did try to manualy insert 1001000 in cpu0 max freq via this adb shell su -c "echo "1001000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq" but something in the rom still overrides it every 1-10 seconds.

also i found that /sys/devices/system/cpu/cpu1to7 don't have cpufreq options