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
spbro
OpenXG-RAN
Commits
5836ab19
Commit
5836ab19
authored
Sep 01, 2021
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build warnings
parent
a45eb42f
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
32 deletions
+21
-32
executables/nr-gnb.c
executables/nr-gnb.c
+1
-0
executables/nr-ru.c
executables/nr-ru.c
+1
-2
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
+1
-3
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+3
-3
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+1
-1
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+0
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
+8
-10
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+0
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+6
-5
No files found.
executables/nr-gnb.c
View file @
5836ab19
...
...
@@ -87,6 +87,7 @@
#include "nfapi/oai_integration/vendor_ext.h"
#include <nfapi/oai_integration/nfapi_pnf.h>
#include <openair1/PHY/NR_TRANSPORT/nr_ulsch.h>
#include <openair1/PHY/NR_TRANSPORT/nr_dlsch.h>
#include <PHY/NR_ESTIMATION/nr_ul_estimation.h>
//#define DEBUG_THREADS 1
...
...
executables/nr-ru.c
View file @
5836ab19
...
...
@@ -1241,7 +1241,6 @@ void *ru_thread( void *param ) {
int
slot
=
fp
->
slots_per_frame
-
1
;
int
frame
=
1023
;
char
threadname
[
40
];
int
aa
;
nfapi_nr_config_request_scf_t
*
cfg
=
&
ru
->
config
;
// set default return value
ru_thread_status
=
0
;
...
...
@@ -1367,7 +1366,7 @@ void *ru_thread( void *param ) {
/*
LOG_D(PHY,"Copying rxdataF from RU to gNB\n");
for (aa=0; aa<ru->nb_rx; aa++)
for (
int
aa=0; aa<ru->nb_rx; aa++)
memcpy((void *)RC.gNB[0]->common_vars.rxdataF[aa],
(void *)ru->common.rxdataF[aa], fp->symbols_per_slot*fp->ofdm_symbol_size*sizeof(int32_t));
*/
...
...
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
View file @
5836ab19
...
...
@@ -109,14 +109,12 @@ void gNB_I0_measurements(PHY_VARS_gNB *gNB,int slot, int first_symb,int num_symb
PHY_MEASUREMENTS_gNB
*
measurements
=
&
gNB
->
measurements
;
int
rb
,
offset
,
offset0
,
nb_symb
[
275
],
len
;
int32_t
*
ul_ch
;
int32_t
n0_power_tot
[
275
];
LOG_D
(
PHY
,
"slot %d Doing I0 for first_symb %d, num_symb %d
\n
"
,
slot
,
first_symb
,
num_symb
);
for
(
int
s
=
first_symb
;
s
<
(
first_symb
+
num_symb
);
s
++
)
{
for
(
rb
=
0
;
rb
<
frame_parms
->
N_RB_UL
;
rb
++
)
{
if
(
s
==
first_symb
)
{
n0_power_tot
[
rb
]
=
0
;
if
(
s
==
first_symb
)
{
nb_symb
[
rb
]
=
0
;
}
offset0
=
(
slot
&
3
)
*
(
frame_parms
->
symbols_per_slot
*
frame_parms
->
ofdm_symbol_size
)
+
(
frame_parms
->
first_carrier_offset
+
(
rb
*
12
))
%
frame_parms
->
ofdm_symbol_size
;
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
5836ab19
...
...
@@ -261,7 +261,7 @@ void nr_postDecode(PHY_VARS_gNB *gNB, notifiedFIFO_elt_t *req) {
}
}
int
dumpsig
=
0
;
//
int dumpsig=0;
// if all segments are done
if
(
rdata
->
nbSegments
==
ulsch_harq
->
processedSegments
)
{
if
(
decodeSuccess
)
{
...
...
@@ -273,7 +273,7 @@ void nr_postDecode(PHY_VARS_gNB *gNB, notifiedFIFO_elt_t *req) {
LOG_D
(
PHY
,
"ULSCH received ok
\n
"
);
nr_fill_indication
(
gNB
,
ulsch_harq
->
frame
,
ulsch_harq
->
slot
,
rdata
->
ulsch_id
,
rdata
->
harq_pid
,
0
,
0
);
dumpsig
=
1
;
//
dumpsig=1;
}
else
{
LOG_I
(
PHY
,
"[gNB %d] ULSCH: Setting NAK for SFN/SF %d/%d (pid %d, ndi %d, status %d, round %d, RV %d, TBS %d) r %d
\n
"
,
gNB
->
Mod_id
,
ulsch_harq
->
frame
,
ulsch_harq
->
slot
,
...
...
@@ -592,7 +592,7 @@ void phy_procedures_gNB_common_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx)
uint8_t
symbol
;
unsigned
char
aa
;
int
offset
=
(
slot_rx
&
3
)
*
(
gNB
->
frame_parms
.
symbols_per_slot
*
gNB
->
frame_parms
.
ofdm_symbol_size
);
for
(
symbol
=
0
;
symbol
<
(
gNB
->
frame_parms
.
Ncp
==
EXTENDED
?
12
:
14
);
symbol
++
)
{
for
(
aa
=
0
;
aa
<
gNB
->
frame_parms
.
nb_antennas_rx
;
aa
++
)
{
nr_slot_fep_ul
(
&
gNB
->
frame_parms
,
...
...
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
5836ab19
...
...
@@ -604,7 +604,7 @@ void config_control_ue(NR_UE_MAC_INST_t *mac){
for
(
int
css_id
=
0
;
css_id
<
commonSearchSpaceList
->
list
.
count
;
css_id
++
)
{
NR_SearchSpace_t
*
css
=
commonSearchSpaceList
->
list
.
array
[
css_id
];
AssertFatal
(
css
->
controlResourceSetId
!=
NULL
,
"ss->controlResourceSetId is null
\n
"
);
AssertFatal
(
*
css
->
controlResourceSetId
==
0
||
*
css
->
controlResourceSetId
==
mac
->
coreset
[
dl_bwp_id
][
coreset_id
-
1
]
->
controlResourceSetId
,
"css->controlResourceSetId %
d is unknown, mac->coreset[%d][%d]->controlResourceSetId %
d
\n
"
,
*
css
->
controlResourceSetId
,
dl_bwp_id
,
coreset_id
-
1
,
mac
->
coreset
[
dl_bwp_id
][
coreset_id
-
1
]
->
controlResourceSetId
);
AssertFatal
(
*
css
->
controlResourceSetId
==
0
||
*
css
->
controlResourceSetId
==
mac
->
coreset
[
dl_bwp_id
][
coreset_id
-
1
]
->
controlResourceSetId
,
"css->controlResourceSetId %
ld is unknown, mac->coreset[%ld][%d]->controlResourceSetId %l
d
\n
"
,
*
css
->
controlResourceSetId
,
dl_bwp_id
,
coreset_id
-
1
,
mac
->
coreset
[
dl_bwp_id
][
coreset_id
-
1
]
->
controlResourceSetId
);
AssertFatal
(
css
->
searchSpaceType
!=
NULL
,
"css->searchSpaceType is null
\n
"
);
AssertFatal
(
css
->
monitoringSymbolsWithinSlot
!=
NULL
,
"css->monitoringSymbolsWithinSlot is null
\n
"
);
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
5836ab19
...
...
@@ -743,7 +743,6 @@ int8_t nr_ue_process_dci(module_id_t module_id, int cc_id, uint8_t gNB_index, fr
fapi_nr_dl_config_dlsch_pdu_rel15_t
*
dlsch_config_pdu_1_0
=
&
dl_config
->
dl_config_list
[
dl_config
->
number_pdus
].
dlsch_config_pdu
.
dlsch_config_rel15
;
NR_PDSCH_Config_t
*
pdsch_config
=
(
mac
->
DLbwp
[
0
])
?
mac
->
DLbwp
[
0
]
->
bwp_Dedicated
->
pdsch_Config
->
choice
.
setup
:
NULL
;
uint16_t
BWPSize
=
n_RB_DLBWP
;
int
is_common
=
0
;
if
(
rnti
==
SI_RNTI
)
{
NR_Type0_PDCCH_CSS_config_t
type0_PDCCH_CSS_config
=
mac
->
type0_PDCCH_CSS_config
;
...
...
@@ -753,7 +752,6 @@ int8_t nr_ue_process_dci(module_id_t module_id, int cc_id, uint8_t gNB_index, fr
dlsch_config_pdu_1_0
->
BWPStart
=
mac
->
type0_PDCCH_CSS_config
.
cset_start_rb
;
dlsch_config_pdu_1_0
->
SubcarrierSpacing
=
mac
->
mib
->
subCarrierSpacingCommon
;
if
(
pdsch_config
)
pdsch_config
->
dmrs_DownlinkForPDSCH_MappingTypeA
->
choice
.
setup
->
dmrs_AdditionalPosition
=
NULL
;
// For PDSCH with mapping type A, the UE shall assume dmrs-AdditionalPosition='pos2'
BWPSize
=
dlsch_config_pdu_1_0
->
BWPSize
;
}
else
{
if
(
ra
->
RA_window_cnt
>=
0
&&
rnti
==
ra
->
ra_rnti
){
dl_config
->
dl_config_list
[
dl_config
->
number_pdus
].
pdu_type
=
FAPI_NR_DL_CONFIG_TYPE_RA_DLSCH
;
...
...
@@ -773,7 +771,6 @@ int8_t nr_ue_process_dci(module_id_t module_id, int cc_id, uint8_t gNB_index, fr
if
(
!
get_softmodem_params
()
->
sa
)
{
// NSA mode is not using the Initial BWP
dlsch_config_pdu_1_0
->
BWPStart
=
NRRIV2PRBOFFSET
(
mac
->
DLbwp
[
0
]
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
,
MAX_BWP_SIZE
);
pdsch_config
=
mac
->
DLbwp
[
0
]
->
bwp_Dedicated
->
pdsch_Config
->
choice
.
setup
;
BWPSize
=
dlsch_config_pdu_1_0
->
BWPSize
;
}
}
else
if
(
mac
->
DLbwp
[
0
])
{
dlsch_config_pdu_1_0
->
BWPSize
=
NRRIV2BW
(
mac
->
DLbwp
[
0
]
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
,
MAX_BWP_SIZE
);
...
...
@@ -1945,7 +1942,6 @@ uint8_t get_downlink_ack(NR_UE_MAC_INST_t *mac,
NR_BWP_Id_t
dl_bwp_id
=
mac
->
DL_BWP_Id
;
NR_BWP_Id_t
ul_bwp_id
=
mac
->
UL_BWP_Id
;
NR_PDSCH_Config_t
*
pdsch_Config
=
NULL
;
NR_BWP_DownlinkDedicated_t
*
bwpd
=
NULL
;
NR_BWP_DownlinkCommon_t
*
bwpc
=
NULL
;
NR_BWP_UplinkDedicated_t
*
ubwpd
=
NULL
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
View file @
5836ab19
...
...
@@ -74,17 +74,7 @@ void dump_mac_stats(gNB_MAC_INST *gNB)
memset
(
output
,
0
,
MACSTATSSTRLEN
);
int
stroff
=
0
;
for
(
int
UE_id
=
UE_info
->
list
.
head
;
UE_id
>=
0
;
UE_id
=
UE_info
->
list
.
next
[
UE_id
])
{
stroff
=
sprintf
(
output
,
"UE ID %d RNTI %04x (%d/%d)
\n
"
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
num
++
,
UE_info
->
num_UEs
,
UE_info
->
UE_sched_ctrl
[
UE_id
].
ph
,
UE_info
->
UE_sched_ctrl
[
UE_id
].
pcmax
);
LOG_I
(
NR_MAC
,
"UE ID %d RNTI %04x (%d/%d) PH %d dB PCMAX %d dBm
\n
"
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
num
++
,
UE_info
->
num_UEs
,
UE_info
->
UE_sched_ctrl
[
UE_id
].
ph
,
UE_info
->
UE_sched_ctrl
[
UE_id
].
pcmax
);
stroff
+=
sprintf
(
output
+
stroff
,
"UE ID %d RNTI %04x (%d/%d) PH %d dB PCMAX %d dBm
\n
"
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
...
...
@@ -93,6 +83,14 @@ void dump_mac_stats(gNB_MAC_INST *gNB)
UE_info
->
UE_sched_ctrl
[
UE_id
].
ph
,
UE_info
->
UE_sched_ctrl
[
UE_id
].
pcmax
);
LOG_I
(
NR_MAC
,
"UE ID %d RNTI %04x (%d/%d) PH %d dB PCMAX %d dBm
\n
"
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
num
++
,
UE_info
->
num_UEs
,
UE_info
->
UE_sched_ctrl
[
UE_id
].
ph
,
UE_info
->
UE_sched_ctrl
[
UE_id
].
pcmax
);
NR_mac_stats_t
*
stats
=
&
UE_info
->
mac_stats
[
UE_id
];
const
int
avg_rsrp
=
stats
->
num_rsrp_meas
>
0
?
stats
->
cumul_rsrp
/
stats
->
num_rsrp_meas
:
0
;
stroff
+=
sprintf
(
output
+
stroff
,
"UE %d: dlsch_rounds %d/%d/%d/%d, dlsch_errors %d, pucch0_DTX %d average RSRP %d (%d meas)
\n
"
,
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
5836ab19
...
...
@@ -591,10 +591,6 @@ void pf_dl(module_id_t module_id,
/* get the PID of a HARQ process awaiting retrnasmission, or -1 otherwise */
sched_pdsch
->
dl_harq_pid
=
sched_ctrl
->
retrans_dl_harq
.
head
;
NR_CellGroupConfig_t
*
cg
=
UE_info
->
CellGroup
[
UE_id
];
NR_BWP_DownlinkDedicated_t
*
bwpd
=
cg
?
cg
->
spCellConfig
->
spCellConfigDedicated
->
initialDownlinkBWP
:
NULL
;
/* Calculate Throughput */
const
float
a
=
0
.
0005
f
;
// corresponds to 200ms window
const
uint32_t
b
=
UE_info
->
mac_stats
[
UE_id
].
dlsch_current_bytes
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
5836ab19
...
...
@@ -283,12 +283,13 @@ void nr_set_pdsch_semi_static(const NR_ServingCellConfigCommon_t *scc,
SLIV2SL
(
startSymbolAndLength
,
&
ps
->
startSymbolIndex
,
&
ps
->
nrOfSymbols
);
NR_BWP_DownlinkDedicated_t
*
bwpd
;
ps
->
mcsTableIdx
=
0
;
if
(
bwp
&&
bwp
->
bwp_Dedicated
&&
bwp
->
bwp_Dedicated
)
bwpd
=
bwp
->
bwp_Dedicated
;
else
bwpd
=
bwpd0
;
if
(
bwp
&&
bwp
->
bwp_Dedicated
)
{
bwpd
=
bwp
->
bwp_Dedicated
;
}
else
{
bwpd
=
(
NR_BWP_DownlinkDedicated_t
*
)
bwpd0
;
}
ps
->
mcsTableIdx
=
0
;
if
(
bwpd
->
pdsch_Config
&&
bwpd
->
pdsch_Config
->
choice
.
setup
&&
bwpd
->
pdsch_Config
->
choice
.
setup
->
mcs_Table
)
{
...
...
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