Commit Graph
334 Commits
Author SHA1 Message Date
Michael Cook 092caec8ca Merge branch 'episys-merge' into episys/trial-merge-to-master 2021-03-14 10:58:46 -04:00
Michael Cook 034d2cfed6 lte-ue.c: Allocate bigger arrays
This code allocates memory from the heap:

```
static void *UE_phy_stub_standalone_pnf_task(void *arg)
{
...
  UL_INFO->crc_ind.crc_indication_body.crc_pdu_list =
  calloc(NB_UE_INST, sizeof(nfapi_crc_indication_pdu_t));
```

I see NB_UE_INST==1.

Then this code:

```
void fill_crc_indication_UE_MAC(int Mod_id,
                                int frame,
                                int subframe,
                                UL_IND_t *UL_INFO,
                                uint8_t crc_flag,
                                int index,
                                uint16_t rnti,
                                nfapi_ul_config_request_t
                                *ul_config_req) {
...
  nfapi_crc_indication_pdu_t *pdu =
      &UL_INFO->crc_ind.crc_indication_body
           .crc_pdu_list[UL_INFO->crc_ind.crc_indication_body.number_of_crcs];
```

used .number_of_crcs to index into .crc_pdu_list without first
checking if .number_of_crcs is in range.

When run with multiple UEs, sometimes .number_of_crcs==1 and then
-fsanitize=address complains.

Change is to use NUMBER_OF_UE_MAX instead of NB_UE_INST.

With this change, -fsanitize=address stopping complaining.
2021-02-28 09:45:31 -08:00
Raymond Knopp a446eb0ebc Merge branch 'episys/master' into episys-merge
Conflicts:
	common/utils/LOG/log.h
	common/utils/ocp_itti/intertask_interface.cpp
	nfapi/oai_integration/nfapi_vnf.c
	nfapi/open-nFAPI/nfapi/src/nfapi.c
	openair2/LAYER2/MAC/main_ue.c
	openair2/LAYER2/PDCP_v10.1.0/pdcp.c
	openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
	openair2/PHY_INTERFACE/phy_stub_UE.c
	openair2/RRC/LTE/rrc_UE.c
	openair2/RRC/LTE/rrc_eNB.c
	openair3/NAS/UE/ESM/esm_ebr_context.c
	targets/COMMON/openairinterface5g_limits.h
	targets/RT/USER/lte-softmodem.c
	targets/RT/USER/lte-uesoftmodem.c
2021-02-13 22:52:33 +01:00
Thomas Schlichter bca9f74e66 Merge remote-tracking branch 'develop' into NR_RA_cleanup 2021-01-29 18:52:37 +01:00
Melissa Elkadi 78341d9db1 Updated bler table lookup mechanism and logs 2021-01-25 14:52:44 -08:00
Thomas Schlichter f32297fefa fix cppcheck warnings 2021-01-25 14:32:32 +01:00
Michael Cook ee86a66722 Merge commit '0b40edef2adc45965dcfe2071b0c4170389ae8b5' into episys/master 2021-01-12 18:11:10 -05:00
Deokseong "David" Kim b220ed29c4 Updating PDCP module for proxy
Adding ue id parameter to pdcp_init
Updating tun interface functions for proxy
2021-01-12 14:45:52 -08:00
Melissa Elkadi 42ae8207ee NFAPI_MODE logic to include standalone mode
Every if statement that includes a check for
the NFAPI_MODE that did not check for the new
PNF_STANDALONE_MODE now has been updated. Also
changed the tx_req and dl_config_req logs
when they are received at the OAI UE to be
info logs instead of error logs.
2021-01-12 06:54:16 -08:00
Melissa Elkadi a288e502f0 Cleanup before merge
The clean up includes removing white space changes, adding logs,
adding comments to make various changes more obvious, etc.
2021-01-08 14:31:13 -08:00
Laurent 42a110338c itti dynamic queue creation, and 64 bits instance id 2020-12-23 13:56:01 +01:00
Michael Cook 1687896730 Log the processor info like scheduler policy
And CPU affinity.
Also, use mlockall to keep our memory from being swapped out.
2020-11-22 13:50:35 -05:00
Melissa 7aa9a95e8e dl_config_Req and tx_reqs are queued together
Additionally, combined many of the individual
dl_config_req and tx_req handle functions.
Also removed some unused functions we added.
Futhermore, removed our additions to the
dl_config_req and tx_req memcpy functions.
2020-11-20 15:06:30 -08:00
Andrew Burger 0d865eea8a merging 2020-11-16 11:50:27 -08:00
Andrew Burger cb4e5a35c4 Episys/andrew/dlsch pdu index bug fix 2020-11-13 14:11:35 -08:00
Andrew Burger 3960694b27 Revert "This commit includes:"
This reverts commit b1ff8e1a6a.
2020-11-12 15:50:49 -08:00
Andrew Burger b1ff8e1a6a This commit includes:
1.) Shutdown fix which allows us to see who requested to abort the simulation
2.) Properly initializing the NAS layer which previously was not happening for our simulation mode 5
3.) Changes in configurations to support the EPC(Have Melissa Verify these)
2020-11-04 13:39:43 -08:00
Andrew Burger 39f07d7ac9 Set scheduler priorty to 1
To match emane.

Checked with:
```
ps ax -o pid,class,priority,comm |grep RR
```
2020-10-23 14:54:40 -07:00
Michael Cook d449a4de8a Align thread priorities
```
$ ps -eL -o pid,lwp,class,priority,comm | grep -E softmodem|oai:'
 6500  6500 RR  -80 lte-softmodem
 6500  6520 RR  -80 oai:enb-L1-rx
 6500  6522 RR  -80 oai:enb-L1-tx
 6508  6508 RR  -80 lte-uesoftmodem
 6508  6537 RR  -80 oai:ue-phy
 6508  6538 RR  -80 oai:ue-stand
 6509  6509 RR  -80 lte-uesoftmodem
$
```
2020-10-18 12:11:10 -04:00
Andrew Burger 1a96de4518 Set scheduler priorty to 1
To match emane.

Checked with:
```
ps ax -o pid,class,priority,comm |grep RR
```
2020-10-14 14:52:25 -07:00
Andrew Burger ec4a05515c Set scheduler priorty to 1
To match emane.

Checked with:
```
ps ax -o pid,class,priority,comm |grep RR
```
2020-10-12 14:35:53 -07:00
Michael Cook 920fde6a69 Fix a compiler warning 2020-10-10 11:00:19 -04:00
Andrew Burger ce2cbb9017 Episys/andrew/msg4 reception failure 2020-10-02 15:19:11 -07:00
Andrew Burger 9bb8390578 Merge branch 'episys/master' into episys/andrew/debugging_rach+fixing_rx_unpack 2020-09-18 14:34:54 -07:00
Andrew Burger 821ef8572a RRCConnectionsetup happening too early 2020-09-08 12:14:26 -07:00
Andrew Burger 96b5525d88 removal of LOG_A messages 2020-09-08 10:50:46 -07:00
Andrew Burger 465f1a77e0 New prach procedures 2020-09-08 10:31:36 -07:00
Andrew Burger d089d4a289 Additional warning/Analysis logs 2020-09-06 11:45:18 -07:00
Michael Cook a0797e76c4 Use LOG_A for lte_timing_analysis.py 2020-09-06 11:29:39 -07:00
Andrew Burger 851170379c Log_As 2020-09-06 11:01:17 -07:00
Andrew Burger 506000cdc9 Saving work 2020-09-05 10:30:32 -07:00
Andrew Burger 79df38d515 Episys/fixing cqi problem 2020-09-02 12:27:09 -07:00
Andrew Burger 5db290dd96 Need to fix these carriage returns but here are some important changes 2020-07-24 10:38:46 -07:00
Michael Cook 8c75f74cd1 Don't invoke multicast_link_start for NFAPI_MODE_STANDALONE_PNF
This code was previously commented out.
But the `if` expression was wrong.
2020-07-19 14:05:15 -04:00
Michael Cook 5714440427 Cleanup
Revert unnecessary changes relative to origin/develop

Reviewed with Andrew
2020-07-19 13:42:35 -04:00
Michael Cook 5ed1390898 Fix warnings 2020-07-19 12:24:48 -04:00
Andrew Burger 8e706131d1 New logs 2020-07-17 09:52:17 -07:00
Andrew Burger 03e0656e69 Debugging msg4 2020-07-16 12:29:05 -07:00
Andrew Burger efb786d808 Merge branch 'episys/sfn_semaphore' into episys/new_queue_system 2020-07-13 11:30:27 -07:00
Andrew Burger 42709fce5a Fixing subframe issue in UE UL 2020-07-13 10:37:37 -07:00
Andrew Burger 864e594e14 Removed logging to speed up system 2020-07-11 10:20:14 -07:00
RS 7b387999b3 Replaced usleep with semaphore for current_sfn_sf 2020-07-10 15:05:02 -07:00
Andrew Burger 9a8880fd39 Added timestamps and logging 2020-07-10 10:39:55 -07:00
Andrew Burger 423cd20c43 Changes to sfn_sf before sending to Raymond 2020-07-09 11:09:26 -07:00
Andrew Burger 4ae7d777bb added logging for debugging sockets and changed connect to bind 2020-07-08 10:03:42 -07:00
Andrew Burger ddca335b5e New address port setup 2020-07-07 16:11:50 -07:00
Michael Cook d836650d41 Call sched_setscheduler 2020-06-27 14:24:56 -04:00
Andrew Burger b6fbb51d7d Additional logging for debugging fill functions 2020-06-24 15:12:00 -07:00
Andrew Burger 6a34a8ad39 Adding ul_config_req cleanup and hi_dci0_req 2020-06-24 11:11:19 -07:00
Michael Cook 03394da33f Revert whitespace changes 2020-06-20 08:37:37 -04:00