Commit Graph

78 Commits

Author SHA1 Message Date
Adeeb Shihadeh 66e8923dd7 tici: ensure DSP permissions are setup on boot (#31530)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7a29617108
2024-02-21 11:48:17 -08:00
Adeeb Shihadeh 4393de267a remove early RTC time pull (#31066)
old-commit-hash: 7a6463b2b4
2024-01-18 21:05:57 -08:00
Adeeb Shihadeh 04c0c9410f speedup prebuilt check (#31065)
* speedup prebuilt check

* one place
old-commit-hash: e3b17d10f3
2024-01-18 21:02:18 -08:00
Adeeb Shihadeh b33b2d1a0a time to remove this
old-commit-hash: 00b5424407
2024-01-18 16:38:46 -08:00
Adeeb Shihadeh 32536ecd3a Revert "remove extra sleep", weston is fixed but a couple other things relied on this
This reverts commit a4d77a972dff10db98e835018f01537d1f836384.

old-commit-hash: 3a70708228
2023-12-11 16:21:19 -08:00
Adeeb Shihadeh f3dec8658c Revert "Simplify passive mode handling (#30593)"
old-commit-hash: 99d51bf02c
2023-12-04 15:05:05 -08:00
Justin Newberry 688354c5ce Fix passive mode (#30600)
remove passive
old-commit-hash: 05e932b088
2023-12-04 13:58:43 -08:00
Adeeb Shihadeh 4be789d40a Simplify passive mode handling (#30593)
* simplify passive handling

* makes more sense
old-commit-hash: 5ccff25d88
2023-12-03 13:59:59 -08:00
Adeeb Shihadeh ed7e73a74f remove extra sleep on startup
old-commit-hash: d2d4802ad0
2023-11-27 14:57:40 -08:00
Adeeb Shihadeh 42eedb1c53 Revert "remove sleep on launch (#28236)"
This reverts commit fddd299a3a598a948776e73f1a45fe4b0d69db7f.

old-commit-hash: 309eccad3a
2023-06-29 13:35:11 -07:00
Adeeb Shihadeh 7eb2e59618 remove sleep on launch (#28236)
old-commit-hash: 115fc66514
2023-05-23 19:49:54 -07:00
Adeeb Shihadeh b3e47c691b move all third party stuff into third_party/ (#26853)
* mv fastcluster

* move msm_kgsl.h

* camerad include

* update path

* mv pyextra

* fix tici build

* add acados_template to release build

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: cd8e03d53e
2022-12-31 21:00:50 -08:00
Adeeb Shihadeh 9a45a3b99b Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
old-commit-hash: 1139fe507b
2022-06-11 16:38:24 -07:00
Willem Melching 753045c73d less TICI when not needed (#24698)
* less TICI when not needed

* fix process replay

* move reading voltages into hw abstraction layer

* Update selfdrive/hardware/tici/hardware.h

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/hardware/hw.h

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/hardware/base.h

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* rename init function

* Update selfdrive/athena/athenad.py

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>

* Update selfdrive/boardd/boardd.cc

* Apply suggestions from code review

* Update selfdrive/thermald/thermald.py

* update ref

* fix alert width if all cameras are bad

* add ecam to test_loggerd

* bump cereal

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: f49a9c9fd2
2022-06-02 15:20:51 +02:00
Adeeb Shihadeh 66065b527b updated: reduce frequency of unnecessary updates (#24301)
* updated: reduce frequency of unnecessary updates

* little cleanup
old-commit-hash: e8a9b9ed8c
2022-04-22 19:18:49 -07:00
Adeeb Shihadeh 5a9644261f remove comma two support (#24248)
* remove comma two support

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
old-commit-hash: 5c48e7bc86
2022-04-18 17:55:23 -07:00
Comma Device 460dd3cc9d cleanup tici_init in launch script
old-commit-hash: 03ac5bb4e3
2022-03-21 16:45:24 -07:00
Adeeb Shihadeh 9193e1afa1 Unify neos/agnos updaters (#22109)
* start moving neos updater

* downloading

* ui

* move recovery

* resuming

* add verification

* fix up launch

* test

* update updater

* fix mypy

* fake updater

* review suggestions

* more tests

* abc

* update bin

* raise

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b3705ede5e
2021-09-10 17:03:54 -07:00
Adeeb Shihadeh 89e6cf7e1f remove rest of git from launch script
old-commit-hash: 26e6e07c2b
2021-09-08 10:51:06 -07:00
Adeeb Shihadeh ef7b6016b1 updated: move final git reset before finalizing update (#22168)
old-commit-hash: d4b4204233
2021-09-08 10:47:38 -07:00
Adeeb Shihadeh 1acbb07669 C3: clear nmmeta files on boot (#22149)
* C3: clear nmmeta files on boot

* Update launch_chffrplus.sh

Co-authored-by: Willem Melching <willem.melching@gmail.com>

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 84d37141a8
2021-09-06 18:02:56 -07:00
Adeeb Shihadeh 32b8787d9f NEOS 18 (#21407)
old-commit-hash: dd0c6fca5d
2021-08-19 00:41:01 -07:00
Adeeb Shihadeh a4cf1e33d8 only show updater UI if necessary (#21787)
* only show updater UI if necessary

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 060592e34a
2021-07-29 18:12:37 -07:00
Adeeb Shihadeh f4708c153e agnos updater UI (#21776)
* start agnos updater UI

* wifi

* progress

* sometimes things fail

* fix wifi

* in launch script

* fwd

* fwd stderr

* update that

* release files

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 14d26d6d89
2021-07-29 15:57:58 -07:00
Adeeb Shihadeh 5243463f0f tici: fix EGL error
old-commit-hash: e15ef7efb3
2021-07-27 02:00:33 -07:00
Adeeb Shihadeh 893ffa0b89 remove unnecessary scons clean
old-commit-hash: c0012892da
2021-06-30 17:55:32 -07:00
Willem Melching c8810406da tici: flash bootloader partitions from manifest (#21399)
* move swapping to python

* only create downloader if needed

* typo

* number

* add sanity check

* boot full check to test

* manifest is required argument

* implement full hash check

* off by one

* new manifest

* only write tag for system

* bump splash

* review comments part 1

* trigger update

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: 7c6bf89e04
2021-06-30 14:20:58 +02:00
Willem Melching 167e1e6081 disable roaming
old-commit-hash: ebe9f32a27
2021-06-21 11:29:53 +02:00
Adeeb Shihadeh 03405b81fd acados support (#21319)
* acados support

* add pyextra to python path

* x86 libs
old-commit-hash: 6e4c2aa4d2
2021-06-17 16:40:00 -07:00
Willem Melching 8a3e746224 nmcli force gsm.auto-config to yes
old-commit-hash: 6368bb2f30
2021-05-20 17:22:18 +02:00
Adeeb Shihadeh f11dd415e8 update time from RTC on manager init (#20678)
* set time on manager init

* earlier

* handle exception

* logging

* add to release files

* run in launch script too

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1adf34f033
2021-04-14 12:04:02 -07:00
Adeeb Shihadeh 9c983f9218 NEOS 16.2 (#20485)
* NEOS 16.2

* new img

* emoji
old-commit-hash: 6340b43359
2021-03-26 02:01:41 -07:00
iejMac 4770c6d1c9 terms fixups (#20392)
* accept

* accept at end + env variables

* better

* testing some settings

* bottom margin

* nothing

* doesnt work

* don't need anymore

* clean up

* fix

* unused

* more prime widget cleanup

* Revert "more prime widget cleanup"

This reverts commit d44651ee8c501be61099dc4cd40fa0467bc315a3.

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6a9afd8460
2021-03-20 21:26:05 -07:00
Willem Melching c0098cec09 Manager cleanup (#20231)
* move manager in folder

* inital refactor

* call start

* small cleanup

* add comments

* use self.signal()

* order shouldnt matter

* newlines

* add helpers

* newlines

* add process config

* split out build part of manager

* this should fix most tests

* no sensord on pc

* dont start athena

* remove comment

* fix old athena test

* fix inject model

* fix test car models

* should be not none

* fix helpers exitcode

* ignore manage_athenad

* Use time.monotonic()

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* combine init, remove spinner

* move manager test

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5a3b511306
2021-03-05 11:03:23 +01:00
Adeeb Shihadeh 6dbc7c6d92 oneplus cleanup (#20200)
* start cleanup

* cleanup camerad

* remove unused

* little more

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 07ab081a42
2021-03-01 17:14:03 -08:00
Adeeb Shihadeh ec468f88c9 move agnos manifest to selfdrive/hardware (#19889)
old-commit-hash: cfb0390183
2021-01-30 18:31:28 -08:00
Willem Melching 5ecc0b44c2 remove temporary fixes
old-commit-hash: 39615f9108
2021-01-27 16:08:49 +01:00
Willem Melching 5ad8abdc24 OS Updater improvements (#19914)
* Clear hashes before swapping

* add retry logic

* better retry logic

* actually fail on retries exceeded
old-commit-hash: fe91b8a1b4
2021-01-25 15:52:07 +01:00
Willem Melching d37a4bc065 also unset here
old-commit-hash: f068ac32bc
2021-01-19 13:09:35 +01:00
Willem Melching 2326281066 OS version needs to be unset on script start
old-commit-hash: c732fd83ce
2021-01-19 13:02:03 +01:00
Adeeb Shihadeh 349429836c agnos updater (#2600)
* agnos updater

* add manifest

* fix path

* get manifest from overlay

* update manifest

* remove merge markers

* add streaming decompressor

* dont need read all

* Unsparsify

* Fix output filename

* Optimization

* cleanup

* Small cleanup

* Read manifest from merged overlay

* Write hash at end of partition

* Sync before writing hash

* Write bytes in file

* add manifest with image sizes

* Fix manifest path

* File was closed already

* Format string

* Put raw hash

* Read hashes in launch script

* update launch script

* should be agnos version

* fix slot

* Make sure we clear the hash

* Verify partition size

* move updated

* Standalone flasher

* Don't rely on ordering

* Get path

* Debug log

* Download agnos

* Info is enough

* update manifest

* Remove f

* Check downloader return code

* Exit on wrong manifest

* Fix typos

* Set pythonpath before hardware init

* move agnos into hardware folder

* remove comments

* Fix abstractmethod

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b276881fcd
2020-12-18 13:17:12 +01:00
Adeeb Shihadeh b950cab874 HW abstraction layer (#19530)
* start hw refactor

* move that

* pins

* put that back
old-commit-hash: 8674b023ba
2020-12-16 21:30:23 -08:00
Adeeb Shihadeh 762eda95cd Set GPU priorities + improved modeld priorities (#2691)
* give gpu threads rt priority

* modeld gets highest prio on core 2

* fix frame stream

* lower prio of cal thread

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c57ee16e86
2020-12-15 19:22:03 -08:00
Adeeb Shihadeh 7914d23049 mask off cores 2-3 from RPS (#2692)
old-commit-hash: 15ae9d714f
2020-12-13 19:30:00 -08:00
Adeeb Shihadeh aa0c100724 set camera and gpu irq affinities (#2678)
* pin camera and gpu to core 2

* can't forget about 177
old-commit-hash: 05fe01e30b
2020-12-02 20:44:14 -08:00
Adeeb Shihadeh 089843bf3c move that to two init
old-commit-hash: d00f1692b7
2020-11-30 17:02:24 -08:00
Comma Device 7726636f4a set GPU perf governor
old-commit-hash: b75259ad07
2020-11-24 04:09:08 +00:00
George Hotz 55df5b0ddf More governance work, fix thneed (#2610)
* more governance work

* fix thneed on qcom2

* waste doesn't OOM

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a14ce09018
2020-11-23 17:52:28 -08:00
Adeeb Shihadeh 679c162db1 move mdss irq to core 1
old-commit-hash: 238751e784
2020-11-23 14:44:55 -08:00
George Hotz 6b32f79ae6 New settings for governors, +30% memory bandwidth (#2590)
* new settings for governors, +30% memory bandwidth

* CPU waste is better

* warm up frame_drop

* optional CORE arg for rtshield

* back off priorities of processes not critical to driving

* if it doesn't drive, it's not realtime

* err, resource. this should have been included

* reverse order to not spike

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 917eff8c30
2020-11-20 19:25:12 -08:00