From 62d2cc4264813243147a4fabf4d7266cee2fa15f Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 26 Jan 2025 16:13:29 -0800 Subject: [PATCH] Unlock full CPU freq (#447) * 3s savings * limit * bump * revert that --- agnos-kernel-sdm845 | 2 +- userspace/usr/comma/init.qcom.sh | 4 ++++ userspace/usr/comma/tests/analyze-boot-time.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/agnos-kernel-sdm845 b/agnos-kernel-sdm845 index aef1a7e..d3dd49b 160000 --- a/agnos-kernel-sdm845 +++ b/agnos-kernel-sdm845 @@ -1 +1 @@ -Subproject commit aef1a7ef9a4deefe91d4fd893e91cae4bcd35da8 +Subproject commit d3dd49b2ba2df8dcd0289f8b5d1cb48c304f43c9 diff --git a/userspace/usr/comma/init.qcom.sh b/userspace/usr/comma/init.qcom.sh index b207ac4..ea8bf6e 100755 --- a/userspace/usr/comma/init.qcom.sh +++ b/userspace/usr/comma/init.qcom.sh @@ -5,5 +5,9 @@ for i in {0..7}; do echo "related" | sudo tee /sys/bus/msm_subsys/devices/subsys${i}/restart_level done +# use max freq to boot up quickly, then limit +echo 1689600 | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq +echo 1689600 | sudo tee /sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq + # boot wifi echo 1 | sudo tee /sys/kernel/boot_wlan/boot_wlan diff --git a/userspace/usr/comma/tests/analyze-boot-time.py b/userspace/usr/comma/tests/analyze-boot-time.py index 8263b7e..75e66f2 100755 --- a/userspace/usr/comma/tests/analyze-boot-time.py +++ b/userspace/usr/comma/tests/analyze-boot-time.py @@ -38,7 +38,7 @@ if __name__ == "__main__": # includes /sbin/init -> weston being ready to display stuff ts['weston'] = get_journal_time("Finished weston-ready.service") - tot_since_kern() - ts['comma'] = get_journal_time("Started comma.service") - tot_since_kern() + ts['comma'] = get_journal_time("Starting comma.service") - tot_since_kern() # print tot = 0