Commit Graph

120 Commits

Author SHA1 Message Date
Adeeb Shihadeh ea74f558f4 Revert "OMXEncoder: add calls to OMX_Init()&OMX_Deinit() (#19905)"
This reverts commit 8f00813089.
2021-01-27 20:17:35 -08:00
Adeeb Shihadeh 0411015103 fix up encoder test for tici rotation (#19941)
* fix encoder test

* revert for c2

Co-authored-by: Comma Device <device@comma.ai>
2021-01-27 14:20:48 -08:00
Dean Lee 8f00813089 OMXEncoder: add calls to OMX_Init()&OMX_Deinit() (#19905)
* add calls to OMX_Init()&OMX_Deinit()

* fix indentation
2021-01-27 13:37:42 -08:00
Willem Melching 87119aebe2 Put bootlog in own folder (#19939)
* put bootlog in own folder

* fix uploader

* remove print statements

* update test

* remove comment

* also write initddata

* remove sentinels from test
2021-01-27 13:36:40 -08:00
Adeeb Shihadeh 9f2088e2c3 make loggerd rotation test more reliable 2021-01-24 19:38:20 -08:00
Adeeb Shihadeh 810ed30cab more tici tests in jenkins (#19908)
* run loggerd tests on tici

* boardd loopback

* fix up seg length

* this doesn't add more coverage
2021-01-24 17:54:03 -08:00
Adeeb Shihadeh 1ed77847fe loggerd: remove vipc arg from encode frame 2021-01-23 17:11:36 -08:00
Adeeb Shihadeh d4489fbf91 OMX encoder stability (#19758)
* cleanup test first

* wait for other encoder threads

* fixes initial crash

* no print

* unused

* fix up tests

* need that

Co-authored-by: Comma Device <device@comma.ai>
2021-01-21 10:40:08 -08:00
Dean Lee a5be02c2c7 OmxEncoder: set s->of to nullptr after close (#19814) 2021-01-19 14:28:03 -08:00
Adeeb Shihadeh 2e64049ea4 fix loggerd after bootlog split (#19840)
* fix loggerd after bootlog split

* logger handles that

* unused

Co-authored-by: Comma Device <device@comma.ai>
2021-01-19 14:27:19 -08:00
Dean Lee f973c56a36 loggerd: split bootlog to a separate program (#19831)
* bootlog

* blank lines

* move file_exists to util.h

* src = ['loggerd.cc']

* log_init_data

* Revert "src = ['loggerd.cc']"

This reverts commit 18a587023d75b3a3a54f1ceaf9cb31a51640a067.

* add bootlog to .gitignore

* use s->has_qlog instead of true

* add blank lines & remove extern C
2021-01-19 12:16:12 -08:00
Willem Melching f3db94a0c4 Linux tombstones: add stacktrace and upload (#19737)
* Add stacktrace to tombstones

* make sentry output prettier

* Refactor

* Generate upload filename

* Actually move file

* Fix spaces

* copy and upload

* dont delete just yet

Co-authored-by: Comma Device <device@comma.ai>
2021-01-18 13:29:01 +01:00
Dean Lee d085adb9ec loggerd: make sure to print one statistics every 1000 times (#19803) 2021-01-17 15:50:13 -08:00
Dean Lee e04cecd169 OmxEncoder: use std::vector to keep buffer (#19807) 2021-01-17 15:48:06 -08:00
Dean Lee caf87c25dd loggerd: do not LOGW twice when logger.part == 0 (#19795)
* fix LOGW

* space
2021-01-16 18:34:11 -08:00
Dean Lee 0592c326ed OmxEncoder: use macro to check error (#19785) 2021-01-16 12:43:59 -08:00
Willem Melching 10790304c9 RecordFront remove ifdef (#19773) 2021-01-15 13:21:39 -08:00
Adeeb Shihadeh 5221450f2d loggerd: another rotation test (#19742)
* another rotation test

* make encoder test fast

* fix pc

Co-authored-by: Comma Device <device@comma.ai>
2021-01-12 19:40:57 -08:00
Adeeb Shihadeh 92e4f04873 Loggerd for PC (#19730) 2021-01-12 16:28:22 -08:00
Adeeb Shihadeh a1c7f19fe4 Video Encoder abstraction (#19729) 2021-01-12 00:03:31 -08:00
Adeeb Shihadeh 87e8ef1fca loggerd: fix double encoder open (#19703)
* fix double encoder open/close

* simplify rotation

* clean up

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2021-01-11 19:48:50 -08:00
Dean Lee 72bb55247c replace std::this_thread::sleep_for with util::sleep_fo (#19717) 2021-01-11 11:59:48 +01:00
Dean Lee 595830135b merge utilpp.h into util.h (#19710) 2021-01-10 14:57:32 -08:00
Adeeb Shihadeh 6b0890f128 loggerd: fix use after free and memory leaks (#19695)
* fix use after free and memory leaks

* cleanup

* fix typo

Co-authored-by: Comma Device <device@comma.ai>
2021-01-08 15:39:14 -08:00
Willem Melching fb496c692a VisionIPC 2.0 (#19641)
* Squashed vipc

* Update release files

* Remove else

* add visionipc to release files

* use poller in vipc receive

* opencl framework instead of lib on macos

* Fix camera webcam

* Fix opencl on mac in ui

* more webcam fixes

* typo in ui sconsfile

* Use cur_yuv_buf

* visionbuf c++ class

* Camera qcom was still using visionbuf_allocate

* Turn loggerd back on

* fix snapshot

* No build needed

* update test camerad

* no more release callback

* make encoder c++

* Revert "no more release callback"

This reverts commit e5707b07002fee665d0483d90713154efc2d70d4.

* fix exit handlers

* No need to check errno

* move release callback call

* s/VIPCBufExtra/VisionIpcBufExtra/g

* use non blocking connect

* ui use non blocking connect

* Lower condition variable wait time

* Snapshot cleanup

* bump cereal

* bump cereal
2021-01-08 14:54:25 +01:00
Adeeb Shihadeh 206d072bb4 loggerd cleanup (#19668) 2021-01-07 23:08:40 -08:00
Adeeb Shihadeh af81190cfc loggerd tests (#19671) 2021-01-06 19:18:35 -08:00
Adeeb Shihadeh e3d2f0c88c fix race condition with encoder thread 2021-01-05 23:09:46 -08:00
Dean Lee 86fe2d1697 common exit handler (#19661)
* common signal handle

* fix typo

* rename to ExitHandler

* remove include signal.h

* remove include csignal

* rename variable exit to v

* rebase master
2021-01-05 20:19:53 -08:00
Adeeb Shihadeh 54679cea58 tici loggerd fixes (#19622)
* fix encoder exit when encoder is uninitialized

* cleanup

* more cleanup

* more cleanup

* little more

* ptr

Co-authored-by: Comma Device <device@comma.ai>
2021-01-05 16:35:05 -08:00
Dean Lee c1cf0882bd Replace usleep with util::sleep_for (#19643)
* replace usleep with sleep_for

* sleep microseconds

* sleep nanoseconds

* Trigger Build
2021-01-04 18:03:11 +01:00
Dean Lee 041fbbf725 refactor qlog_counter (#19626) 2021-01-04 11:33:35 +01:00
Adeeb Shihadeh 59d7c5e64a move to github container registry + CI speedup (#19621) 2020-12-31 14:57:01 -08:00
Adeeb Shihadeh ffa7e0cbdb manager tests + make all processes exit cleanly (#19595)
* manager tests

* logcatd exits cleanly

* sigint

* boardd

* multiple dbus connections hangs for some reason

* clocksd proclogd

* network type from thermal

* fix tests

* fix android logcatd

* fix mac

* fix mac proclogd

* move on device athena tests

* build first

* build first

Co-authored-by: Comma Device <device@comma.ai>
2020-12-29 22:32:03 -08:00
Adeeb Shihadeh 8674b023ba HW abstraction layer (#19530)
* start hw refactor

* move that

* pins

* put that back
2020-12-16 21:30:23 -08:00
Adeeb Shihadeh a2c6fdd14c Revert "Handle python-dbus not installed"
This reverts commit 25054cdc05.
2020-12-15 20:29:24 -08:00
ZwX1616 1c21fc100d qcom2 init hevc tier correctly (#19496)
* qcom2 init tier correctly

* need to cast

Co-authored-by: Comma Device <device@comma.ai>
2020-12-14 16:24:49 -08:00
Willem Melching 25054cdc05 Handle python-dbus not installed 2020-12-14 15:04:17 +01:00
Comma Device 44bedaa73b add LOGW 2020-12-11 21:12:51 -08:00
HoverB_SN_11 c6d68d5552 Revert "simplify"
cannot simplify.
2020-12-09 02:13:27 +00:00
ZwX1616 d25cc6f624 Fix random encoder lockups (#2707)
* gbk

* surrrely not

* finalize

* such nuance, such nuisance

* this is done automatically

* add back

* give back 0

* simplify

Co-authored-by: Comma Device <device@comma.ai>
2020-12-08 16:12:55 -08:00
Adeeb Shihadeh 56146d84ce remove raw logger (#2719)
* remove raw logger

* no raw_clips

* only remove raw clips

* cleanup
2020-12-08 15:23:06 -08:00
Willem Melching e7c182b0da Set correct HW type in initData (#2685)
* set hw types

* dont use c++ filesystem
2020-12-03 17:27:12 +01:00
ZwX1616 8d986c82d8 fix loggerd unittest 2020-11-22 15:40:51 -08:00
George Hotz 917eff8c30 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>
2020-11-20 19:25:12 -08:00
ZwX1616 f244b7c7e1 tici front/wide encodeIdx msgs (#2564)
* different msgs

* also add timestamps

* keep impatient log, remove the other

* meaningless
2020-11-19 16:12:02 -08:00
ZwX1616 e113a12702 remove duplicate enc_idx logging (#2562) 2020-11-18 16:02:19 -08:00
ZwX1616 cf21720e1a stop pc from spamming logs (#2544) 2020-11-13 16:26:30 -08:00
Adeeb Shihadeh d5a8444d6c only qcom 2020-11-12 16:19:28 -08:00
Adeeb Shihadeh e88775a224 remove old loggerd priority 2020-11-08 15:44:04 -08:00