Commit Graph

43 Commits

Author SHA1 Message Date
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
Adeeb Shihadeh
3aba5d65f3 neos 15-1 (#2430)
This reverts commit b7816d54887e55ae982501d0c2915182590288c3.
old-commit-hash: 3d456e5d0f
2020-10-27 15:22:54 -07:00
Adeeb Shihadeh
29dc45ae44 NEOS: expose kernel workqueues over sysfs (#2375)
* mask off kworkers from rt cores

* wq over sysfs

* prod image
old-commit-hash: 7bfb24678f
2020-10-20 21:10:22 -07:00
Adeeb Shihadeh
a4f4f1d828 Log last 1000 lines of tmux output in bootlog (#2149)
* log last 1000 lines of tmux output in bootlog

* add to bootlog

* fix tmux capture
old-commit-hash: 6b4957cba1
2020-10-20 21:07:12 -07:00
Adeeb Shihadeh
a0845d8301 NEOS 15 (#2084)
* doze

* need a new apk

* new build

* neos 15 part 1

* new build to re-enable display control for ft8716

* production image
old-commit-hash: f9a5f71bf5
2020-10-18 17:03:28 -07:00
Adeeb Shihadeh
ce9369758e fix order of cpuset adjustments on launch
old-commit-hash: bc07f24982
2020-10-15 16:10:21 -07:00
Adeeb Shihadeh
bdf52941c8 Improve realtime performance on NEOS (#2166)
* fix setting core affinity

* dmonitoringd doesn't need rt priority

* android only gets two cores

* model and planner get core 2

* log missed cycle count

* neos update

* prod image

* revert NEOS changes

* still need this
old-commit-hash: ef21b83937
2020-09-16 15:33:12 -07:00
Adeeb Shihadeh
d236df2eba tici launch script (#2155)
old-commit-hash: 1fd13c87b4
2020-09-12 17:57:24 -07:00
Adeeb Shihadeh
c2b1d97b20 NEOS background updater (#1892)
old-commit-hash: cb5a2996e7
2020-08-12 11:39:21 -07:00
Adeeb Shihadeh
792b74f543 Improve update reliability and responsiveness (#1986)
* handle orphaned git lock

* trigger update after going offroad

* git ping
old-commit-hash: a115366ddd
2020-08-06 12:49:11 -07:00
Jason Young
2b60599543 Make updated more resilient (#1853)
* Add sleep at updated startup

* Mitigate symlink-related FS damage
old-commit-hash: c43df81214
2020-07-10 07:41:26 -04:00
Jason Young
b3f2407d11 Fix gyro orientation offset for EONs with OP3T mainboards (#1738)
* One-time zap of OP3T sensor registry

* Bash, I wish I knew how to quit you

* Better comment wording

* Slight increase for sensor reset settle-time

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c2c00f65a7
2020-07-06 05:10:14 -04:00
George Hotz
3ad7346daf Revert broken NEOS kernel (#1723)
* untested

* bump kernel
old-commit-hash: 58c1504f1a
2020-06-16 14:51:55 -07:00
Jason Young
ba98725583 Clear build products before NEOS update (#1677)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1932e2824e
2020-06-10 18:40:49 -07:00
Jason Young
ebed52527b Reduce scheduler latency for realtime processes (#1638)
* WIP: reduce boardd and other lags

* Copypasta fault

* Silence spurious startup warning

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 68531b071c
2020-06-05 17:09:41 -04:00
Willem Melching
fd8b813317 interrupt number different on EON
old-commit-hash: 302417b4cf
2020-05-12 15:14:00 -07:00
Willem Melching
1e86639782 Change modem interrupt affinity
old-commit-hash: 03a9b54636
2020-05-08 21:27:46 -07:00
George Hotz
06c6ee312b root directory non hidden files
old-commit-hash: 012535a84e
2020-01-17 10:22:00 -08:00
George Hotz
81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Vehicle Researcher
fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c
2020-01-15 14:05:04 -08:00
Vehicle Researcher
99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a
2019-12-13 13:03:08 -08:00
Vehicle Researcher
89d1d84c70 openpilot v0.6.5 release
old-commit-hash: cf80f7a28b
2019-10-09 18:43:53 +00:00
Willem Melching
0c421929ca Make build deterministic and do not rebuild on release2 (#729)
* sort dbc files to make linking deterministic

* touch all files on release2 checkout to prevent rebuild

old-commit-hash: 60a20537c5
2019-07-03 12:25:35 -07:00
Vehicle Researcher
9abcfabc5f openpilot v0.6 release
old-commit-hash: 8a9ed94f5f
2019-06-28 21:11:30 +00:00
Vehicle Researcher
83dfc3ca1f openpilot v0.5.11 release
old-commit-hash: 2f92d577f9
2019-04-23 01:41:19 +00:00
Vehicle Researcher
405e7c1b02 openpilot v0.4.7.2 release
old-commit-hash: 95509a58cd
2018-06-25 13:48:52 -07:00
Vehicle Researcher
8fc7b0b828 openpilot v0.4.6 release
old-commit-hash: c6df34f55b
2018-05-23 03:59:04 +00:00
Vehicle Researcher
cd558d30d1 openpilot v0.4.3.2 release
old-commit-hash: 78df63a6af
2018-03-31 07:54:47 +00:00
Vehicle Researcher
df22dac4f6 openpilot v0.4.3 release
old-commit-hash: 9a411ebf32
2018-03-17 00:01:50 -07:00