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
zzha zzha
OpenXG-RAN
Commits
61aa4f99
Commit
61aa4f99
authored
Jul 29, 2021
by
David Kim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleaning in formatting and fixing typo.
parent
c8019373
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
20 deletions
+22
-20
executables/nr-gnb.c
executables/nr-gnb.c
+3
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+1
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+16
-16
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
+1
-1
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
+1
-1
No files found.
executables/nr-gnb.c
View file @
61aa4f99
...
...
@@ -443,7 +443,9 @@ static void *gNB_L1_thread( void *param ) {
if
(
gNB
->
CC_id
==
0
)
{
int
next_slot
;
next_slot
=
(
slot_rx
+
1
)
%
20
;
if
(
rxtx
(
gNB
,(
frame_rx
+
((
slot_rx
+
1
)
%
20
==
0
))
%
1024
,
next_slot
,(
frame_tx
+
((
slot_rx
+
1
)
%
20
==
0
))
%
1024
,
next_slot
,
thread_name
)
<
0
)
break
;
int
next_frame_rx
=
(
frame_rx
+
((
slot_rx
+
1
)
%
20
==
0
))
%
1024
;
int
next_frame_tx
=
(
frame_tx
+
((
slot_rx
+
1
)
%
20
==
0
))
%
1024
;
if
(
rxtx
(
gNB
,
next_frame_rx
,
next_slot
,
next_frame_tx
,
next_slot
,
thread_name
)
<
0
)
break
;
}
if
(
wait_on_condition
(
&
L1_proc
->
mutex
,
&
L1_proc
->
cond
,
&
L1_proc
->
instance_cnt
,
thread_name
)
<
0
)
break
;
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_gNB_PROC_RXTX0
,
1
);
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
61aa4f99
...
...
@@ -939,7 +939,7 @@ void nr_generate_Msg2(module_id_t module_idP, int CC_id, frame_t frameP, sub_fra
NR_BWP_Uplink_t
*
ubwp
=
ra
->
secondaryCellGroup
->
spCellConfig
->
spCellConfigDedicated
->
uplinkConfig
->
uplinkBWP_ToAddModList
->
list
.
array
[
ra
->
bwp_id
-
1
];
LOG_I
(
MAC
,
"[RAPROC] Scheduling common search space DCI type 1 dlBWP BW %d, rn
it
%x
\n
"
,
dci10_bw
,
ra
->
rnti
);
LOG_I
(
MAC
,
"[RAPROC] Scheduling common search space DCI type 1 dlBWP BW %d, rn
ti
%x
\n
"
,
dci10_bw
,
ra
->
rnti
);
// Qm>2 not allowed for RAR
if
(
get_softmodem_params
()
->
do_ra
)
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
61aa4f99
...
...
@@ -298,9 +298,9 @@ void nr_process_mac_pdu(
if
(
pdu_len
<
0
)
{
LOG_E
(
MAC
,
"%s() residual mac pdu length < 0!, pdu_len: %d
\n
"
,
__func__
,
pdu_len
);
LOG_E
(
MAC
,
"MAC PDU "
);
for
(
int
i
=
0
;
i
<
20
;
i
++
)
// Only printf 1st - 20nd bytes
printf
(
"%02x "
,
pdu_ptr
[
i
]);
printf
(
"
\n
"
);
//
for (int i = 0; i < 20; i++) // Only printf 1st - 20nd bytes
//
printf("%02x ", pdu_ptr[i]);
//
printf("\n");
return
;
}
}
...
...
@@ -1001,18 +1001,18 @@ void nr_schedule_ulsch(module_id_t module_id,
// If diff is more than half of maximum frame: we ignore it.
if
(
sfnslot_delta
>
NFAPI_SFNSLOT2DEC
(
512
,
0
))
{
LOG_D
(
PHY
,
"%s() SFN/SLOT DELTA between Sched and Previous. UEID %d, rnti %x Delta %d. "
LOG_D
(
NR_MAC
,
"%s() SFN/SLOT DELTA between Sched and Previous. UEID %d, rnti %x Delta %d. "
"Current:%d.%d Prev(%d):%d.%d --> Skip
\n\n\n\n\n\n\n\n\n
"
,
__
FUNCTION
__
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
sfnslot_delta
-
NFAPI_SFNSLOT2DEC
(
1024
,
0
),
__
func
__
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
sfnslot_delta
-
NFAPI_SFNSLOT2DEC
(
1024
,
0
),
frame
,
slot
,
prev_sched
[
UE_id
].
harq_id
,
prev_frame
,
prev_slot
);
continue
;
}
else
{
LOG_D
(
PHY
,
"%s() SFN/SLOT DELTA between Sched and Previous. UEID %d, rnti %x Delta %d. "
LOG_D
(
NR_MAC
,
"%s() SFN/SLOT DELTA between Sched and Previous. UEID %d, rnti %x Delta %d. "
"Current:%d.%d Prev(%d):%d.%d
\n\n\n\n\n\n\n\n\n
"
,
__
FUNCTION
__
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
sfnslot_delta
,
__
func
__
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
sfnslot_delta
,
frame
,
slot
,
prev_sched
[
UE_id
].
harq_id
,
prev_frame
,
prev_slot
);
}
...
...
@@ -1023,9 +1023,9 @@ void nr_schedule_ulsch(module_id_t module_id,
if
(
vnf_pnf_sfnslot_delta
<
0
||
time_diff_in_ms
<
4
*
(
sfnslot_delta
/
10
)
||
time_diff_in_ms
>
6
*
(
sfnslot_delta
/
10
))
{
LOG_D
(
PHY
,
"%s() SFN/SLOT DELTA between Proxy and gNB. UEID %d, rnti %x Delta %3d. gNB:%4d.%-2d "
LOG_D
(
NR_MAC
,
"%s() SFN/SLOT DELTA between Proxy and gNB. UEID %d, rnti %x Delta %3d. gNB:%4d.%-2d "
"slot_diff %4d time_diff %d : %lu.%06lu vs %lu.%06lu --> Skip
\n\n\n\n\n\n\n\n\n
"
,
__
FUNCTION
__
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
__
func
__
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
vnf_pnf_sfnslot_delta
,
frame
,
slot
,
sfnslot_delta
,
time_diff_in_ms
,
ts
.
tv_sec
,
ts
.
tv_nsec
/
1000
,
...
...
@@ -1034,9 +1034,9 @@ void nr_schedule_ulsch(module_id_t module_id,
}
else
{
LOG_D
(
PHY
,
"%s() SFN/SLOT DELTA between Proxy and gNB. UEID %d, rnti %x Delta %3d. "
LOG_D
(
NR_MAC
,
"%s() SFN/SLOT DELTA between Proxy and gNB. UEID %d, rnti %x Delta %3d. "
"gNB:%4d.%-2d slot_diff %4d time_diff %d
\n\n\n\n\n\n\n\n\n
"
,
__
FUNCTION
__
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
vnf_pnf_sfnslot_delta
,
__
func
__
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
vnf_pnf_sfnslot_delta
,
frame
,
slot
,
sfnslot_delta
,
time_diff_in_ms
);
}
}
...
...
@@ -1085,7 +1085,7 @@ void nr_schedule_ulsch(module_id_t module_id,
cur_harq
->
sched_pusch
=
*
sched_pusch
;
sched_ctrl
->
sched_ul_bytes
+=
sched_pusch
->
tb_size
;
}
else
{
LOG_D
(
MAC
,
LOG_D
(
NR_
MAC
,
"%d.%2d UL retransmission RNTI %04x sched %d.%2d HARQ PID %d round %d NDI %d
\n
"
,
frame
,
slot
,
...
...
@@ -1098,7 +1098,7 @@ void nr_schedule_ulsch(module_id_t module_id,
}
UE_info
->
mac_stats
[
UE_id
].
ulsch_current_bytes
=
sched_pusch
->
tb_size
;
LOG_D
(
MAC
,
LOG_D
(
NR_
MAC
,
"%4d.%2d RNTI %04x UL sched %4d.%2d start %d RBS %d MCS %d TBS %d HARQ PID %d round %d NDI %d
\n
"
,
frame
,
slot
,
...
...
@@ -1143,7 +1143,7 @@ void nr_schedule_ulsch(module_id_t module_id,
memset
(
pusch_pdu
,
0
,
sizeof
(
nfapi_nr_pusch_pdu_t
));
future_ul_tti_req
->
n_pdus
+=
1
;
LOG_D
(
MAC
,
"%4d.%2d Scheduling UE specific PUSCH
\n
"
,
frame
,
slot
);
LOG_D
(
NR_
MAC
,
"%4d.%2d Scheduling UE specific PUSCH
\n
"
,
frame
,
slot
);
pusch_pdu
->
pdu_bit_map
=
PUSCH_PDU_BITMAP_PUSCH_DATA
;
pusch_pdu
->
rnti
=
rnti
;
...
...
@@ -1215,7 +1215,7 @@ void nr_schedule_ulsch(module_id_t module_id,
pusch_pdu
->
pusch_data
.
new_data_indicator
=
cur_harq
->
ndi
;
pusch_pdu
->
pusch_data
.
tb_size
=
sched_pusch
->
tb_size
;
pusch_pdu
->
pusch_data
.
num_cb
=
0
;
//CBG not supported
LOG_D
(
MAC
,
"Setting harq_id pusch_pdu->pusch_data.harq_process_id %d for UE_id(%d), rnti %x
\n
"
,
harq_id
,
UE_id
,
rnti
);
LOG_D
(
NR_
MAC
,
"Setting harq_id pusch_pdu->pusch_data.harq_process_id %d for UE_id(%d), rnti %x
\n
"
,
harq_id
,
UE_id
,
rnti
);
/* TRANSFORM PRECODING --------------------------------------------------------*/
...
...
@@ -1271,7 +1271,7 @@ void nr_schedule_ulsch(module_id_t module_id,
pdcch_pdu_bwp_coreset
[
bwpid
][
coresetid
]
=
pdcch_pdu
;
}
LOG_D
(
MAC
,
"Configuring ULDCI/PDCCH in %d.%d
\n
"
,
frame
,
slot
);
LOG_D
(
NR_
MAC
,
"Configuring ULDCI/PDCCH in %d.%d
\n
"
,
frame
,
slot
);
/* Fill PDCCH DL DCI PDU */
nfapi_nr_dl_dci_pdu_t
*
dci_pdu
=
&
pdcch_pdu
->
dci_pdu
[
pdcch_pdu
->
numDlDci
];
...
...
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
View file @
61aa4f99
...
...
@@ -183,7 +183,7 @@ static bool crc_sfn_slot_matcher(void *wanted, void *candidate)
return
false
;
}
void
handle_nr_ulsch
(
NR_UL_IND_t
*
UL_info
)
void
handle_nr_ulsch
(
NR_UL_IND_t
*
UL_info
)
{
if
(
gnb_rx_ind_queue
.
num_items
==
0
||
gnb_crc_ind_queue
.
num_items
==
0
)
return
;
...
...
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
View file @
61aa4f99
...
...
@@ -322,7 +322,7 @@ static void copy_ul_dci_data_req_to_dl_info(nr_downlink_indication_t *dl_info, n
{
nfapi_nr_ul_dci_request_pdus_t
*
pdu_list
=
&
ul_dci_req
->
ul_dci_pdu_list
[
i
];
AssertFatal
(
pdu_list
->
PDUType
==
0
,
"ul_dci_req pdu type != PUCCH"
);
if
(
pdu_list
->
pdcch_pdu
.
pdcch_pdu_rel15
.
dci_pdu
->
RNTI
!=
get_mac_inst
(
0
)
->
crnti
)
if
(
pdu_list
->
pdcch_pdu
.
pdcch_pdu_rel15
.
dci_pdu
->
RNTI
!=
get_mac_inst
(
0
)
->
crnti
)
continue
;
LOG_I
(
NR_PHY
,
"[%d %d] PUCCH PDU in ul_dci for rnti %x
\n
"
,
ul_dci_req
->
SFN
,
ul_dci_req
->
Slot
,
pdu_list
->
pdcch_pdu
.
pdcch_pdu_rel15
.
dci_pdu
->
RNTI
);
uint16_t
num_dci
=
pdu_list
->
pdcch_pdu
.
pdcch_pdu_rel15
.
numDlDci
;
...
...
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