Commit Graph

38 Commits

Author SHA1 Message Date
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: b276881fcdb95b6160bae23600ed204f521bdbb4
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: 8674b023bab2b44405139ceec5785a389f837682
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: c57ee16e86275820f97631fb79df1685e914d564
2020-12-15 19:22:03 -08:00
Adeeb Shihadeh
7914d23049 mask off cores 2-3 from RPS (#2692)
old-commit-hash: 15ae9d714fb6b8f141a751f164198fcdd4c28aeb
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: 05fe01e30be1c6ceaac4e0ad7b07c3d6e6b8c3d7
2020-12-02 20:44:14 -08:00
Adeeb Shihadeh
089843bf3c move that to two init
old-commit-hash: d00f1692b7c0616dcfadd237afe73e441b5935a0
2020-11-30 17:02:24 -08:00
Comma Device
7726636f4a set GPU perf governor
old-commit-hash: b75259ad07ff8c8467f2921766fc3d89cf8c3c82
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: a14ce090184af790d7e677b1f0a1107c7ade8a34
2020-11-23 17:52:28 -08:00
Adeeb Shihadeh
679c162db1 move mdss irq to core 1
old-commit-hash: 238751e78487f40430cc7fd593ab03e89ebd4013
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: 917eff8c30895e85943ec0a8c735e91088dbda85
2020-11-20 19:25:12 -08:00
Adeeb Shihadeh
3aba5d65f3 neos 15-1 (#2430)
This reverts commit b7816d54887e55ae982501d0c2915182590288c3.
old-commit-hash: 3d456e5d0fbf0c9887d0499dee812f2b029edf6d
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: 7bfb24678f3b8f7494982d313b6ed04a6ec5fb94
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: 6b4957cba10985507c5ba2337ee08b6392f86ddb
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: f9a5f71bf50fb3d8b2032203c571011569784406
2020-10-18 17:03:28 -07:00
Adeeb Shihadeh
ce9369758e fix order of cpuset adjustments on launch
old-commit-hash: bc07f249827a71d1c0317a70167d46827d418ecf
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: ef21b83937d25b824018ac1d07fa7759ae6f8128
2020-09-16 15:33:12 -07:00
Adeeb Shihadeh
d236df2eba tici launch script (#2155)
old-commit-hash: 1fd13c87b429102951c69c5c980da2804cd3681a
2020-09-12 17:57:24 -07:00
Adeeb Shihadeh
c2b1d97b20 NEOS background updater (#1892)
old-commit-hash: cb5a2996e75658ac61f057fb729c229a554c551e
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: a115366dddc076bb186219d33a7565712465b226
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: c43df81214d34d90b318defbd7f43e240b0c8f45
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: c2c00f65a70905ebc4d912cf5126bb18169e2cbd
2020-07-06 05:10:14 -04:00
George Hotz
3ad7346daf Revert broken NEOS kernel (#1723)
* untested

* bump kernel
old-commit-hash: 58c1504f1a54b3c544b20d5c82f4e90e88276d8a
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: 1932e2824eabe85cf5df458301a188e24061bec6
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: 68531b071cde6fa5856d9b68bed63ecb50e03c2a
2020-06-05 17:09:41 -04:00
Willem Melching
fd8b813317 interrupt number different on EON
old-commit-hash: 302417b4cf0dcf00d45e4995b5410e543ad121d1
2020-05-12 15:14:00 -07:00
Willem Melching
1e86639782 Change modem interrupt affinity
old-commit-hash: 03a9b546362a5a085ad6261c7901d19f80cfbeb1
2020-05-08 21:27:46 -07:00
George Hotz
06c6ee312b root directory non hidden files
old-commit-hash: 012535a84e6b3bd486e1a1007978302f57b52a27
2020-01-17 10:22:00 -08:00
George Hotz
81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3878e1d8c8a9db600dd44d188f02c87
2020-01-17 10:02:52 -08:00
Vehicle Researcher
fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c600ec653c16606239364ab9324fd98
2020-01-15 14:05:04 -08:00
Vehicle Researcher
99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a15640ee4d6e4d513fada6ed101afe5
2019-12-13 13:03:08 -08:00
Vehicle Researcher
89d1d84c70 openpilot v0.6.5 release
old-commit-hash: cf80f7a28bc737f50e096b21dea2dd2d6d4a1621
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: 60a20537c5f3fcc7f11946d81aebc8f90c08c117
2019-07-03 12:25:35 -07:00
Vehicle Researcher
9abcfabc5f openpilot v0.6 release
old-commit-hash: 8a9ed94f5f33faf282b1918ebe2c37f06cef74e6
2019-06-28 21:11:30 +00:00
Vehicle Researcher
83dfc3ca1f openpilot v0.5.11 release
old-commit-hash: 2f92d577f995ff6ae1945ef6b89df3cb69b92999
2019-04-23 01:41:19 +00:00
Vehicle Researcher
405e7c1b02 openpilot v0.4.7.2 release
old-commit-hash: 95509a58cd906827bff61937f6132daa7460122e
2018-06-25 13:48:52 -07:00
Vehicle Researcher
8fc7b0b828 openpilot v0.4.6 release
old-commit-hash: c6df34f55ba8c5a911b60d3f9eb20e3fa45f68c1
2018-05-23 03:59:04 +00:00
Vehicle Researcher
cd558d30d1 openpilot v0.4.3.2 release
old-commit-hash: 78df63a6af4b3108a25094f719d4c5e26b2fd658
2018-03-31 07:54:47 +00:00
Vehicle Researcher
df22dac4f6 openpilot v0.4.3 release
old-commit-hash: 9a411ebf32ae6908156badae25c16839ada7ad99
2018-03-17 00:01:50 -07:00