1458 Commits (a9d21696c5ab7bb6ac2336749500f5a833c9f76a)

Author SHA1 Message Date
Ismael Gomez 4e39982a19
Fix TSAN warnings in UE (#3021)
* Protect PHY SR signal management in a class

* Protect intra_freq_meas vector

* Protect cell and srate shared variables in thread-safe classes

* srsue,srsenb: include TSAN options header

* Protect ue_rnti_t and rnti scheduling windows behind thread-safe classes

* Protect access to state variable in sync_state

* Protect access to metrics configuration

* Protect access to is_pending_sr

* Protect access to UE prach worker

* Protect UE mux

* Avoid unlocking mutex twice

* Fix data races in RF/ZMQ

* Fix data races in intra_measure and PHY

* Fix minor data races in MAC

* Make TSAN default behaviour to not halt on error

* Fix blocking in intra cell measurement

* Address comments

Co-authored-by: Andre Puschmann <andre@softwareradiosystems.com>
4 years ago
faluco a70ad58440 Fix a data race in the UHD class wrapper where the last error member was being set concurrently causing random crashes.
Introduce a new macro to catch UHD exceptions and log them directly instead of storing an error string, similar to what errno does.

Remove usrp logging helpers that depend on the now removed member since all calls potentially log the error directly.
4 years ago
Xavier Arteaga 8378c85ec4 Refactored gNb PHY 4 years ago
Xavier Arteaga 9126ad3b8b Added NR type1 RIV function helper 4 years ago
Xavier Arteaga e98a6f9eea Make ACK M constant i UEDLNR 4 years ago
Xavier Arteaga eb7980f2b3 Initial UE synchronization for NR 4 years ago
Xavier Arteaga cf09044453 Optimised random bit (unpacked) and byte (packed) generator 4 years ago
Xavier Arteaga d2a19c3043 SCH minimum number of iterations to 2 to reduce systematic false alarm probability 4 years ago
Xavier Arteaga ef4c978d72 Optimized byte random generator 4 years ago
Xavier Arteaga 2cd8ba3a1a PDCCH test skips 100PRB for ARM 4 years ago
Xavier Arteaga 6be57dd216 Disable PDCCH false detection for non AVX2 machines 4 years ago
Xavier Arteaga a79d518799 Added SSB search measure/decode file test 4 years ago
Xavier Arteaga 5181a9d64c Implemented PBCH blind decode 4 years ago
Xavier Arteaga a7b7f8e78a Avoid SSB search to have a peak that SSB data is outside buffer 4 years ago
Xavier Arteaga 49d857cd17 Refactored decode_tb function 4 years ago
Xavier Arteaga 22b1673b36 Added CRC match function and simplify CRC check 4 years ago
Xavier Arteaga 7846bfccb1 Implemented softbuffer RX CRC reset 4 years ago
Xavier Arteaga e8f2b3a74c Add PDCCH decoder correlation check in blind search 4 years ago
Xavier Arteaga 7c78fd2050 Implemented PDCCH DCI message correlation and updated test 4 years ago
Xavier Arteaga bcd2e59635 PDCCH test global variable cleanup 4 years ago
Xavier Arteaga 60f294a6a1 Refactor PDCCH encode/decode unit test 4 years ago
Xavier Arteaga 5ddc974beb Reverted PDCCH threshold 4 years ago
Xavier Arteaga d46be09663 Increase viterbi default number of iterations 4 years ago
Xavier Arteaga 090022568e DCI NCCE find considers L and NCCE 4 years ago
Andre Puschmann 1529379e9e fec,pbch: remove unused variables
unused code that moreover was causing TSAN to complain, e.g.
in the ue_phy_test
4 years ago
Andre Puschmann f823340a95 rf_imp: fix race when stopping gain thread
detected with TSAN using benchmark_radio test
4 years ago
Xavier Arteaga 4f7a94acb6 Fix comment 4 years ago
Andre Puschmann 3966065bff pssch_test: fix newlines in printf 4 years ago
Andre Puschmann 2ace2b47b8 pssch: fix uninitialized value 4 years ago
Xavier Arteaga bbab2cd9ba Make PDCCH LLR mean amplitude in function of maximum 4 years ago
Xavier Arteaga 2ca0932d9b Reviewed LTE noise estimation 4 years ago
Xavier Arteaga dddb3ede71 Fix zero parity 4 years ago
Francisco 0dafe4dd58 fix coderate derivation in PDCCH based on aggregation level 4 years ago
Andre Puschmann 02cceee997 rf_zmq_imp: revert 28399dd876 and fix unit
although the manual test with Amarisoft eNB worked fine it seems
the delay is still needed in the default case. Over 50% of the
tests failed in the nightly with:

[zmq] Error: tx time is 0.067 ms in the past (138240 < 139776)
[zmq] Error: tx time is 1.100 ms in the past (184320 < 209664)

While this usleep() should increase the pass likelihood it
still doesn't guarantee error-free runs, so we might need
to revisit it again as some stage.
4 years ago
Andre Puschmann e7aa484308 rf_zmq_test: remove srsran.h include 4 years ago
Andre Puschmann 28399dd876 rf_zmq_imp: remove sleep 4 years ago
Andre Puschmann 574459fd90 rf: remove srsran.h include 4 years ago
Xavier Arteaga f33731ecd4 Disable irrelevant unit/component test by default 4 years ago
Xavier Arteaga a245039cf3 Initial NR-PBCH-DMRS integration 4 years ago
Pedro Alvarez c74b2dd633 Fix some warnings in PHY due to array parameter mismatch for a few functions 4 years ago
Andre Puschmann d8b2cfcef8 zmq,ringbuffer: protect concurrent access
some issue found through TSAN execution
4 years ago
Xavier Arteaga 48e0fc3c99 Implemented initial PBCH decoder and refactored SSB candidate selection 4 years ago
Xavier Arteaga de1b25558f Added PRN sequence apply bit with state 4 years ago
Xavier Arteaga 1f38817b3b Added random bit vector generator 4 years ago
Xavier Arteaga bcb91d6173 srsran_vec_sprint_hex returns number of written characters 4 years ago
Xavier Arteaga 3634e96c3e Added SSB measure test add/put/encode time measure 4 years ago
Xavier Arteaga 0aa5b14145 Initial NR PBCH encoding 4 years ago
Xavier Arteaga d66dac0ab2 Added bit sequence state apply 4 years ago
yagoda 9501283c1c fixing support for extended Cyclic Prefix
small cosmetic fixes of CP code
4 years ago
Xavier Arteaga 8ffbf0ff6d Fix SSB segfault 4 years ago