Commit Graph

107 Commits

Author SHA1 Message Date
Francisco f2409534e4 nr,gnb,sched: Simplify sched api and locking design to better reflect the mac-phy FAPI interface
- removal of condition variables from sched main calls
- addition of sched sched::slot_indication call as a point of synchronization per slot
- removal of sched_worker_manager class
- removal of serv_cell_manager class
- centralization of cc-specific functionality and components in cc_worker
2021-11-02 00:41:24 +00:00
Fabian Eckermann 8753ea1be5 Fix coverty defects. 2021-10-27 17:39:51 +02:00
faluco dc31fb05a3 Fix ODR issue detected by ASAN in arch for the srsran_verbose global variable. 2021-10-26 16:56:11 +02:00
faluco fa8e8ddf1f Fix an ODR issue detected by ASAN in arch, where the global variable handler_registered was defined multiple times. 2021-10-26 16:56:11 +02:00
Francisco 67a39fbb81 nr,sched: push BSRs into the scheduler when nr_phy_test is run with PUSCH enabled 2021-10-25 20:55:00 +02:00
Xavier Arteaga ebab12403f
Asynchronous NR PHY configuration (#3527)
* Fix a race condition when accessing the NR PHY cfg by the RRC and phy workers.
Rework how the phy cfg is handled, now workers have their own copy that gets updated after a reconfig moving it out of the state class.

* Default initialize sf_len member in sf_worker for consistency.

* Asynchronous NR PHY configuration

* Fix compilation

* Corrected method override and fix unitialised value

* Added carrier equal comparison to avoid aligment byte padding comparison

Co-authored-by: faluco <borja.ferrer@softwareradiosystems.com>
2021-10-25 10:51:02 +02:00
Xavier Arteaga 96e49980c6 Fix gNb dummy stack process ID selection 2021-10-21 22:14:00 +02:00
Fabian Eckermann 2aa59a55d5 Read max turbo decoder iterations from conf. 2021-10-20 10:08:44 +02:00
Xavier Arteaga b3a844c533 Removed redundant metric trace and add PUCCH SNR assertion 2021-10-15 18:19:04 +02:00
Francisco 01d8814f39 sched,nr: when sched allocates PUSCH, SR doesn't need to be decoded 2021-10-15 10:22:55 +01:00
Francisco 9df6c6b936 sched,nr: ensure the ue_cfg_t passed to the scheduler in NR FDD mode has the correct harq delay 2021-10-14 21:38:12 +01:00
Francisco 04d48127bb nr,sched: enable NR fixed mcs configuration via enb.conf 2021-10-13 11:23:10 +01:00
Xavier Arteaga 4e76d7fef6 Enhanced nr_phy_test to assert PRACH detection 2021-10-13 11:00:03 +02:00
Xavier Arteaga 7ecca61d60 Enhanced nr_phy_test with better PRACH stats 2021-10-13 11:00:03 +02:00
Francisco 5979f98a8e nr,test: ensure phy metrics are generated in nr_phy_test when real mac is used 2021-10-12 15:48:37 +01:00
Francisco 510e9f47a7 sched,nr: simplify metrics extraction from MAC
Allow some level of mutex contention between metrics and worker threads in accessing
internal scheduler variables.
2021-10-12 15:48:37 +01:00
Francisco 6617b9c558 nr,sched: simplify command line arg to enable real mac in nr_phy_test 2021-10-12 11:31:31 +01:00
Francisco 9efc3e05f3 nr,sched: enable real mac and scheduler in nr_phy_test traffic tests 2021-10-12 11:31:31 +01:00
Xavier Arteaga 9d4fd1c5cc Add NR SFN from SSB assertion and fix dummy SSB scheduling 2021-10-08 09:49:07 +02:00
Xavier Arteaga 1bdb1bb62d Store PUSCH CSI from PUSCH DMRS 2021-10-07 16:31:26 +02:00
Joaquim 82ae0e6c37
nr_phy test: add AWGN channel simulator, add High Speed Train channel (#3288)
Add channel simulator to nr_phy tests.

UL and DL channel simulators added, with AWGN and CFO using the HST scenario. The DL AWGN is adjusted according to signal power.
2021-10-07 16:14:46 +02:00
Xavier Arteaga d5b34696b4 Sepparate CSI report configuration from quantification and integrate in nr_phy_test with assertions 2021-10-06 16:33:51 +02:00
Xavier Arteaga b6ea78dfd3
Fix gNb PHY-Stack UL-DL time paradox (#3365)
* Fix gNb PHY-Stack UL-DL time paradox

* Fix clang compilation
2021-10-05 17:22:36 +02:00
Andre Puschmann 8bb06ff2c0 Added SSB in gNb PHY 2021-10-04 19:26:07 +02:00
Fabian Eckermann 8830c2796f Add support for NSA FDD on band n3, n5 and n7. 2021-09-29 16:03:44 +02:00
Fabian Eckermann 9b1d783812 Code formatting. 2021-09-29 16:03:44 +02:00
Xavier Arteaga 8b2514ded3 Added NZP-CSI-RS signals in gNb 2021-09-28 16:54:37 +02:00
Francisco Paisana a952f0f62d sched,nr: expose sched nr UE bearer configuration in sched interface 2021-09-24 17:35:15 +02:00
Francisco Paisana bdf18856d1 sched,nr: fix handling of DL BSR in NR scheduler and computation of UCI 2021-09-24 17:35:15 +02:00
Francisco Paisana a035ad144b mac,nr: create sched_nr object only at mac::init() 2021-09-24 13:27:45 +02:00
Xavier Arteaga 182202bdb0 Added NR PHY SR test cases 2021-09-22 13:18:28 +02:00
Xavier Arteaga 0324806d6c Packed NR TDD config in duplex configuration and created test case for FDD 2021-09-21 18:11:16 +02:00
Andre Puschmann ed92f2bd34 enb,mac_nr: remove EUTRA cell param for MAC-NR cell config calls
* the old srsran_cell_cfg_t is only carried for SIB params
* the SIB scheduling, etc needs to be ported and integrated into NR data structures
* disbable SIB test for the moment
2021-09-15 14:49:28 +02:00
Andre Puschmann 6a46931144 mac_nr,enb: move header into nr subfolder 2021-09-15 14:49:28 +02:00
Xavier Arteaga 54c39d8447 Set nr_phy_test scheduler logger to the level defined in the arguments 2021-08-31 18:56:41 +02:00
Francisco Paisana 04e5c81edf sched,nr: nr_phy_test now uses the whole mac class rather than just the scheduler 2021-08-27 15:50:23 +02:00
Francisco Paisana 05a5f4115f sched,nr: extended sched nr DL output to account for RAR content and assist with RAR encoding in the mac_nr class 2021-08-27 15:50:23 +02:00
Francisco Paisana 36eee0ab40 test,nr: add ra_search_space configuration to phy_cfg_nr; now the test ue searches for RA-RNTI while expecting a RAR 2021-08-24 20:15:22 +02:00
Andre Puschmann c03623863b enb,nsa: fix UL PDU processing
* remove const from pusch_info() MAC/PHY interface to allow moving unique byte buffer
2021-08-05 10:28:29 +02:00
Andre Puschmann fc35c0ee51 enb,nsa: fix packing of DL MAC PDUs
* use byte_buffer_t as interface type for DL PHY-MAC interface
* fix missing clear() for new DL tx
2021-08-05 10:28:29 +02:00
Xavier Arteaga 3ae131b336 gNb creates PUSCH decode PDU 2021-08-03 17:30:08 +02:00
Xavier Arteaga 6707ec9928 Introduced multiple BW for PHY DL NR test 2021-08-03 10:46:13 +02:00
Xavier Arteaga ce0cd230bb Reduced NR PHY test PDSCH MCS to 27 2021-08-03 10:46:13 +02:00
Xavier Arteaga 956c4f8266 Added PHY NR test TDD FR1.15-1 pattern 2021-08-03 10:46:13 +02:00
Xavier Arteaga dfa323df6b Added 20MHz default configuration 2021-08-03 10:46:13 +02:00
Xavier Arteaga 4bc7df45c6 Added R.PDSCH.2-1.1 TDD reference for NZP-CSI-RS testing 2021-08-03 10:46:13 +02:00
David Rupprecht 7838b3c935 Fixed run_lte.sh script enb parameter 2021-07-30 09:33:05 +02:00
Xavier Arteaga b57df4db10 Refactored worker_end mechanism for concurrent workers 2021-07-28 12:14:37 +02:00
Francisco Paisana e64fcf6ea6 sched,nr: extend sched nr to support RAR and msg3 DCI packing. 2021-07-27 19:32:48 +02:00
Andre Puschmann 45c1971249 mac,phy,interface: clean up and add NR interface to LTE stack
* remove obsolte rx_data_ind
* add mac_phy_interface_nr to LTE stack
2021-07-27 18:26:20 +02:00