diff --git a/.gitmodules b/.gitmodules index ad6530de9a..54c7393986 100644 --- a/.gitmodules +++ b/.gitmodules @@ -15,4 +15,4 @@ url = ../../commaai/teleoprtc [submodule "tinygrad"] path = tinygrad_repo - url = https://github.com/tinygrad/tinygrad.git + url = https://github.com/commaai/tinygrad.git diff --git a/launch_env.sh b/launch_env.sh index 3715ad2486..a7ac013c51 100755 --- a/launch_env.sh +++ b/launch_env.sh @@ -6,6 +6,15 @@ export NUMEXPR_NUM_THREADS=1 export OPENBLAS_NUM_THREADS=1 export VECLIB_MAXIMUM_THREADS=1 +# models get lower priority than ui +# - ui is ~5ms +# - modeld is 20ms +# - DM is 10ms +# in order to run ui at 60fps (16.67ms), we need to allow +# it to preempt the model workloads. we have enough +# headroom for this until ui is moved to the CPU. +export QCOM_PRIORITY=12 + if [ -z "$AGNOS_VERSION" ]; then export AGNOS_VERSION="14.5" fi diff --git a/selfdrive/ui/ui.py b/selfdrive/ui/ui.py index 222a25b87b..33d05f89e8 100755 --- a/selfdrive/ui/ui.py +++ b/selfdrive/ui/ui.py @@ -9,8 +9,8 @@ from openpilot.selfdrive.ui.ui_state import ui_state def main(): - cores = {7, } - config_realtime_process(0, 1) + cores = {5, } + config_realtime_process(0, 51) gui_app.init_window("UI") main_layout = MainLayout() diff --git a/system/hardware/tici/hardware.py b/system/hardware/tici/hardware.py index ff2622e963..9791f15f34 100644 --- a/system/hardware/tici/hardware.py +++ b/system/hardware/tici/hardware.py @@ -424,7 +424,8 @@ class Tici(HardwareBase): # *** GPU config *** # https://github.com/commaai/agnos-kernel-sdm845/blob/master/arch/arm64/boot/dts/qcom/sdm845-gpu.dtsi#L216 - affine_irq(7, "msm_drm") # display + affine_irq(5, "fts_ts") # touch + affine_irq(5, "msm_drm") # display sudo_write("1", "/sys/class/kgsl/kgsl-3d0/min_pwrlevel") sudo_write("1", "/sys/class/kgsl/kgsl-3d0/max_pwrlevel") sudo_write("1", "/sys/class/kgsl/kgsl-3d0/force_bus_on") diff --git a/tinygrad_repo b/tinygrad_repo index a6fd96f620..7296c74cbd 160000 --- a/tinygrad_repo +++ b/tinygrad_repo @@ -1 +1 @@ -Subproject commit a6fd96f62050efd4a2fe7c885d1a11f87e3c5b0a +Subproject commit 7296c74cbd2666da7dce95d7ca6dab5340653a5c