Commit Graph
8075 Commits
Author SHA1 Message Date
Melissa Elkadi 746d074646 Queuing all nFAPI messages and handling after slot ind
This commit changes the stub functionality entirely.
We are now queueing any received NR nFAPI message
and handling it only after we recevie a slot ind
that corresponds with the nFAPI message's sfn/slot
value. When doing this, an existing issue has been
brought to light. The gNB and NR UE are not in sync
when it comes to their slot indications. Generally,
the NR UE seems to be ahead of the gNB by around 6-7
slots. This commit has a hack... when we receive a
slot indication at the moment, we decrament it by 6
to try to keep the NRUE from being ahead of the gNB.
This will be fixed shortly... This was a temporary
fix..
2021-10-06 18:13:13 -07:00
Melissa Elkadi 98bc149e98 Reverting change that that forces DCI config before handling
By reverting this change, we will see the NRUE2 crash
because the DCI wont be configured before handling.
This will get fixed in the next commit by adding
queues for the nFAPI messages, therefore forcing
us to handle the nfapi messages only after we have
processes the corresponding slot indication.
2021-10-06 09:47:19 -07:00
francescomani 652d0f57eb improve sib1 code for aggregation levels 2021-10-06 16:45:46 +02:00
matzakos 3105a23248 Address two remaining review comments 2021-10-06 13:39:29 +02:00
Robert Schmidt 41dff7b190 Add MCS from HARQ BLER
- Estimates correct MCS using EMA, kept between target thresholds
  dl_bler_target_upper and dl_bler_target_lower (conf options) for 1st
  retx and below dl_rd2_bler_threshold for 2nd retx
- Maximum MCS configurable
- on 3rd retx, reduce MCS by 5
2021-10-06 08:38:21 +02:00
Melissa Elkadi 47e96132f6 Handling multiple DCIs in a single DL_TTI and TX_REQ 2021-10-05 16:09:52 -07:00
Melissa Elkadi 1b2d8b5288 def_dci_pdu_rel15 fix.
In this commit we were trying to understand why
the memset of the def_dci_pdu_rel15 array in the NRUE
was casuing the NR UE to crash. This was happening
becuase some of the members of the def_dci_pdu_rel15
array canont be zero in NSA mode. This was happening
because sometimes, we would recevied two DCI indications
in a row, after the first one, we would be memesetting
the array to all 0s and then try to process the second
DCI. The fix we have implemnted is to call the configure_dci()
prior to processing ANY DCI, to ensure we have properly
configured the UE to handle these DCIs.

Also, in the gNB, it was not able to find the UL scheduled
slot for the feedback harq because it was not accounting for
the slot wrapping.
2021-10-05 11:40:40 -07:00
luis_pereira87 db2c6ce79e Fix maxL for NSA 2021-10-04 18:40:41 +01:00
francescomani 97d114e0ed bugfix 2021-10-04 17:11:41 +02:00
Raphael Defosseux 05f0206cf0 style(MAC): lowering one log line to match previous behavior
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
2021-10-04 16:44:18 +02:00
Laurent Thomas f9bb4150cb astyle only 2021-10-03 22:04:17 +02:00
Sakthivel Velumani 35d150771e L1 perf logging changes
Moved the L1 timing stats logs from stdout to nrL1_stats.log
2021-10-02 14:02:29 +05:30
Melissa Elkadi fb0a80ee84 Adding memset of def_dci_pdu_rel15 back in
Removing the memset seemed to hide the problem
and now the problem is appearing in a differnt
manner... it is causing the NRUE to skip HARQ
PIDs as its filling the UCI indication and process
the DCI PDUs. So adding the memset causes the NR UE
to crash becasue the DL_BWP_ID is becoming 0
which leads us to index into an pointer that is not
allocated and then a crash happens in DCI handling.
2021-10-01 15:53:23 -07:00
Melissa Elkadi a5d6ff5a75 We are now sending either SR or HARQ based on UL_TTI_REQ
This requires some updates to the nFAPI code as well.
We also have declared the def_dci_rel15 extern variable
consistently throughout the code.

In this commit, the gNB is still crashing. However, it seems
that the NSA UE is sending the proper responses back, but there
some sort of incorrect management of the def_dci_pdu_rel15
variable. If we memset this array to 0, we can see incorrect
0 assignments to elements of the UCI indications. Hopefully
fixing this issue will result in less gNB crashes.
2021-10-01 14:52:32 -07:00
Laurent THOMAS c17ba044bc make gtp-u port on F1-U configurable 2021-10-01 17:14:02 +02:00
luis_pereira87 4fd861a28a Fix nr_get_tpc to return increase 3dB 2021-10-01 13:36:49 +01:00
Laurent THOMAS 2acecb40a2 code review, CI result configuration issues, gcc warnings 2021-10-01 12:59:08 +02:00
matzakos da65316765 Additional corrections for non-mandatory presence of DRB,SRB setup lists in handling of F1AP UE ctxt setup request,response messages 2021-10-01 12:42:37 +02:00
matzakos b75fc441c5 Change presence of gNB_CU_UE_F1AP_ID as mandatory field in handling UE context setup response 2021-10-01 12:23:11 +02:00
luis_pereira87 bf0bc0de54 Remove hardcoded maxL (kept only for do-ra) 2021-10-01 10:59:45 +01:00
luis_pereira87 c23117da6f Fix effective_BWPSize when coreset has 96 PRBs for Msg2 2021-10-01 10:26:09 +01:00
matzakos c43bde33f5 Use the updates of the masterCellGroup configuration as input to UE context setup response, instead of the whole mastercellgroup configuration stored at the UE context of the DU.
-Deallocate memory for the updates on masterCellGroup config. after the information is encoded.
2021-10-01 10:58:35 +02:00
Melissa Elkadi ce8301ba38 Setting SR flag to 0 in NR UE to ensure we dont handle SRs 2021-09-30 19:25:57 -07:00
Melissa 3eafdff63a Syncing our OAI merge branch with our internal NSA master branch 2021-09-30 23:16:46 +00:00
Laurent THOMAS 2a1e7b739f fix gcc warnings, hardcode gtpu debug level for ci debug 2021-09-30 21:40:11 +02:00
rmagueta ff34838423 Put back scheduling request configuration after the cherry-pick which solved the segfault 2021-09-30 17:18:00 +01:00
rmagueta a58fd73e17 Merge remote-tracking branch 'origin/bandwidth-testing-abs' into bandwidth-testing-abs 2021-09-30 17:15:41 +01:00
Mario Joa-Ng dffd63d35a fix a segfault when uci_01->harq is null 2021-09-30 17:12:02 +01:00
francescomani 0fdd2fb42a comment added log fixed 2021-09-30 18:11:49 +02:00
Raymond Knopp 9e5a4a4868 MAC statistics in separate thread 2021-09-30 17:22:45 +02:00
Melissa Elkadi 354cf0820f Merge remote-tracking branch 'eurecom/bandwidth-testing-abs' into episys/mel/merge_bw_testing_abs 2021-09-30 07:10:51 -07:00
francescomani 70d81ac8fa additional fix for coreset in calculate_preferred_dl_tda 2021-09-30 15:49:57 +02:00
francescomani c77fd8aae7 fix do-ra 2021-09-30 14:55:56 +02:00
mjoang f48c1d913b handle pdu_length up 65535byte. 2021-09-30 13:22:04 +01:00
rmagueta 081d566201 Fix calculate_preferred_dl_tda and remove duplicated code 2021-09-30 13:08:15 +01:00
rmagueta 568071cb57 Change LOG levels 2021-09-30 12:52:22 +01:00
rmagueta dc1cbfaa63 Revert wrong merge related to num_dmrs_cdm_grps_no_data in scheduler DLSCH 2021-09-30 10:16:11 +01:00
francescomani b8af250fb9 improve ssb sco condition 2021-09-30 09:47:03 +02:00
Melissa Elkadi cf0430a5bc Correctly packing UCI indications.
Also, removing memset for def_dci_pdu_rel15 because
it is setting the DL_BWP_ID = 0 before we have used
it.
2021-09-29 12:15:58 -07:00
rmagueta 432e00a0c1 General tda selection 2021-09-29 15:56:13 +01:00
francescomani 169d286919 some more lines of cleanup 2021-09-29 16:04:48 +02:00
mjoang 721594102a run astyle to change format 2021-09-29 09:57:15 -04:00
francescomani 8b276ce226 some additional cleanup 2021-09-29 15:25:52 +02:00
francescomani 36c321a785 Merge remote-tracking branch 'origin/develop' into NR_2port_CSIRS 2021-09-29 14:11:27 +02:00
francescomani 10aee35f5b missed changes in previous commit for nr_set_pdsch_semi_static 2021-09-29 14:00:27 +02:00
mjoang 5664999f9b Fix a bug so that BSR will be triggered when RLC entity has data. 2021-09-28 17:58:08 -04:00
Deokseong "David" Kim a3557eb486 processing crc_ind and rx_ind per pdu in gNB. 2021-09-28 21:57:10 +00:00
Melissa Elkadi abb81d8d70 Fixing a typo 2021-09-28 14:46:40 -07:00
Melissa Elkadi 4cbea4cc8c Cleaning up MR code 2021-09-28 14:30:31 -07:00
Melissa Elkadi df79567b16 Merge remote-tracking branch 'origin/episys/david/processing_crc_ind_rx_ind_per_pdu' into episys/mel/merge_bw_testing_abs 2021-09-28 13:18:06 -07:00