Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Black
OpenXG-RAN
Commits
0bbaa0db
Commit
0bbaa0db
authored
Mar 16, 2021
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Threadsafe FIFOs"
This reverts commit
0280c083
.
parent
0280c083
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
executables/nr-ue.c
executables/nr-ue.c
+5
-5
openair1/PHY/defs_common.h
openair1/PHY/defs_common.h
+2
-2
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+1
-1
No files found.
executables/nr-ue.c
View file @
0bbaa0db
...
...
@@ -394,10 +394,10 @@ void processSlotRX(void *arg) {
// under the assumption that no two slots with same slot index of different frames are processed at the same time
res
=
pullTpool
(
UE
->
respPdsch
,
&
(
get_nrUE_params
()
->
Tpool
));
if
(
res
->
key
==
proc
->
nr_slot_rx
)
check_rx_finish
=
false
;
pushNotifiedFIFO
(
UE
->
respPdsch
,
res
);
pushNotifiedFIFO
_nothreadSafe
(
UE
->
respPdsch
,
res
);
res
=
pullTpool
(
UE
->
txFifo
,
&
(
get_nrUE_params
()
->
Tpool
));
if
(
res
->
key
==
proc
->
nr_slot_tx
)
check_tx_finish
=
false
;
pushNotifiedFIFO
(
UE
->
txFifo
,
res
);
pushNotifiedFIFO
_nothreadSafe
(
UE
->
txFifo
,
res
);
}
}
else
{
...
...
@@ -565,9 +565,9 @@ void *UE_thread(void *arg) {
int
absolute_slot
=
0
,
decoded_frame_rx
=-
1
,
trashed_frames
=
0
;
for
(
int
i
=
0
;
i
<
RX_NB_TH
;
i
++
)
{
pushNotifiedFIFO
(
&
rxFifo
,
newNotifiedFIFO_elt
(
sizeof
(
nr_rxtx_thread_data_t
),
RX_JOB_ID
,
&
rxFifo
,
processSlotRX
));
pushNotifiedFIFO
(
&
txFifo
,
newNotifiedFIFO_elt
(
sizeof
(
nr_rxtx_thread_data_t
),
1
,
&
txFifo
,
processSlotTX
));
pushNotifiedFIFO
(
&
respPdsch
,
newNotifiedFIFO_elt
(
sizeof
(
pdsch_rx_thread_data_t
),
1
,
&
respPdsch
,
processPdsch
));
pushNotifiedFIFO
_nothreadSafe
(
&
rxFifo
,
newNotifiedFIFO_elt
(
sizeof
(
nr_rxtx_thread_data_t
),
RX_JOB_ID
,
&
rxFifo
,
processSlotRX
));
pushNotifiedFIFO
_nothreadSafe
(
&
txFifo
,
newNotifiedFIFO_elt
(
sizeof
(
nr_rxtx_thread_data_t
),
1
,
&
txFifo
,
processSlotTX
));
pushNotifiedFIFO
_nothreadSafe
(
&
respPdsch
,
newNotifiedFIFO_elt
(
sizeof
(
pdsch_rx_thread_data_t
),
1
,
&
respPdsch
,
processPdsch
));
}
while
(
!
oai_exit
)
{
...
...
openair1/PHY/defs_common.h
View file @
0bbaa0db
...
...
@@ -74,8 +74,8 @@
#include "nfapi_interface.h"
#define RX_NB_TH_MAX 2
#define RX_NB_TH
1
#define RX_NB_TH_PL
3
//number of parallel jobs per slot
#define RX_NB_TH
2
#define RX_NB_TH_PL
2
//number of parallel jobs per slot
#define RX_NB_TH_DL 14
#define LTE_SLOTS_PER_SUBFRAME 2
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
0bbaa0db
...
...
@@ -577,7 +577,7 @@ void phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx)
offset
=
pucch_pdu
->
start_symbol_index
*
gNB
->
frame_parms
.
ofdm_symbol_size
+
(
gNB
->
frame_parms
.
first_carrier_offset
+
pucch_pdu
->
prb_start
*
12
);
power_rxF
=
signal_energy_nodc
(
&
gNB
->
common_vars
.
rxdataF
[
0
][
offset
],
12
);
LOG_
D
(
PHY
,
"frame %d, slot %d: PUCCH signal energy %d
\n
"
,
frame_rx
,
slot_rx
,
power_rxF
);
LOG_
I
(
PHY
,
"frame %d, slot %d: PUCCH signal energy %d
\n
"
,
frame_rx
,
slot_rx
,
power_rxF
);
nr_decode_pucch0
(
gNB
,
slot_rx
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment