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
lizhongxiao
OpenXG-RAN
Commits
d32d40f0
Commit
d32d40f0
authored
Oct 28, 2023
by
Raymond Knopp
Committed by
Robert Schmidt
Feb 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for phy/mac interface for L1_tx_thread
parent
18b81bcd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
executables/nr-gnb.c
executables/nr-gnb.c
+5
-3
openair1/PHY/NR_TRANSPORT/nr_ulsch.c
openair1/PHY/NR_TRANSPORT/nr_ulsch.c
+6
-3
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+4
-3
No files found.
executables/nr-gnb.c
View file @
d32d40f0
...
...
@@ -133,6 +133,9 @@ static void tx_func(void *param)
T
(
T_GNB_PHY_DL_TICK
,
T_INT
(
gNB
->
Mod_id
),
T_INT
(
frame_tx
),
T_INT
(
slot_tx
));
reset_active_stats
(
gNB
,
frame_rx
);
reset_active_ulsch
(
gNB
,
frame_rx
);
if
(
1
)
{
ifi
->
NR_slot_indication
(
module_id
,
CC_id
,
frame_tx
,
slot_tx
);
gNB
->
msgDataTx
->
timestamp_tx
=
info
->
timestamp_tx
;
...
...
@@ -141,7 +144,7 @@ static void tx_func(void *param)
// At this point, MAC scheduler just ran, including scheduling
// PRACH/PUCCH/PUSCH, so trigger RX chain processing
LOG_D
(
NR_PHY
,
"%s() trigger RX
\n
"
,
__func__
);
LOG_D
(
NR_PHY
,
"%s() trigger RX
for %d.%d
\n
"
,
__func__
,
frame_rx
,
slot_rx
);
notifiedFIFO_elt_t
*
res
=
newNotifiedFIFO_elt
(
sizeof
(
processingData_L1_t
),
0
,
&
gNB
->
resp_L1
,
NULL
);
processingData_L1_t
*
syncMsg
=
NotifiedFifoData
(
res
);
syncMsg
->
gNB
=
gNB
;
...
...
@@ -232,12 +235,11 @@ void rx_func(void *param)
}
// ****************************************
reset_active_stats
(
gNB
,
frame_rx
);
reset_active_ulsch
(
gNB
,
frame_rx
);
// RX processing
int
rx_slot_type
=
nr_slot_select
(
cfg
,
frame_rx
,
slot_rx
);
if
(
rx_slot_type
==
NR_UPLINK_SLOT
||
rx_slot_type
==
NR_MIXED_SLOT
)
{
// UE-specific RX processing for subframe n
// TODO: check if this is correct for PARALLEL_RU_L1_TRX_SPLIT
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch.c
View file @
d32d40f0
...
...
@@ -74,8 +74,8 @@ void nr_fill_ulsch(PHY_VARS_gNB *gNB, int frame, int slot, nfapi_nr_pusch_pdu_t
NR_UL_gNB_HARQ_t
*
harq
=
ulsch
->
harq_process
;
if
(
ulsch_pdu
->
pusch_data
.
new_data_indicator
)
harq
->
harq_to_be_cleared
=
true
;
LOG_D
(
PHY
,
"%d.%d RNTI %x HARQ PID %d new data indicator %d
\n
"
,
LOG_D
(
NR_
PHY
,
"
NEW ULSCH
%d.%d RNTI %x HARQ PID %d new data indicator %d
\n
"
,
frame
,
slot
,
ulsch_pdu
->
rnti
,
...
...
@@ -98,8 +98,11 @@ void reset_active_ulsch(PHY_VARS_gNB *gNB, int frame)
// assuming UE disconnected or some other error occurred
for
(
int
i
=
0
;
i
<
gNB
->
max_nb_pusch
;
i
++
)
{
NR_gNB_ULSCH_t
*
ulsch
=
&
gNB
->
ulsch
[
i
];
if
(
ulsch
->
active
&&
(((
frame
-
ulsch
->
frame
+
1024
)
%
1024
)
>
NUMBER_FRAMES_PHY_UE_INACTIVE
))
int
diff
=
(
frame
-
ulsch
->
frame
+
1024
)
&
1023
;
if
(
ulsch
->
active
&&
diff
>
NUMBER_FRAMES_PHY_UE_INACTIVE
&&
diff
<
100
)
{
ulsch
->
active
=
false
;
LOG_D
(
NR_PHY
,
"Frame %d: resetting ulsch %d harq %d (programmed in %d.%d)
\n
"
,
frame
,
i
,
ulsch
->
harq_pid
,
ulsch
->
frame
,
ulsch
->
slot
);
}
}
}
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
d32d40f0
...
...
@@ -272,10 +272,11 @@ static void nr_postDecode(PHY_VARS_gNB *gNB, notifiedFIFO_elt_t *req)
}
if
(
crc_valid
&&
!
check_abort
(
&
ulsch_harq
->
abort_decode
)
&&
!
gNB
->
pusch_vars
[
rdata
->
ulsch_id
].
DTX
)
{
LOG_D
(
PHY
,
"[gNB %d] ULSCH: Setting ACK for SFN/SF %d.%d (rnti %x, pid %d, ndi %d, status %d, round %d, TBS %d, Max interation "
LOG_D
(
NR_
PHY
,
"[gNB %d] ULSCH
%d
: Setting ACK for SFN/SF %d.%d (rnti %x, pid %d, ndi %d, status %d, round %d, TBS %d, Max interation "
"(all seg) %d)
\n
"
,
gNB
->
Mod_id
,
rdata
->
ulsch_id
,
ulsch
->
frame
,
ulsch
->
slot
,
ulsch
->
rnti
,
...
...
@@ -828,9 +829,9 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx)
NR_gNB_ULSCH_t
*
ulsch
=
&
gNB
->
ulsch
[
ULSCH_id
];
NR_UL_gNB_HARQ_t
*
ulsch_harq
=
ulsch
->
harq_process
;
AssertFatal
(
ulsch_harq
!=
NULL
,
"harq_pid %d is not allocated
\n
"
,
ulsch
->
harq_pid
);
if
((
ulsch
->
active
==
true
)
&&
(
ulsch
->
frame
==
frame_rx
)
&&
(
ulsch
->
slot
==
slot_rx
)
&&
(
ulsch
->
handled
==
0
))
{
LOG_D
(
PHY
,
"PUSCH ID %d with RNTI %x detection started in frame %d slot %d
\n
"
,
ULSCH_id
,
ulsch
->
rnti
,
frame_rx
,
slot_rx
);
int
num_dmrs
=
0
;
for
(
int
s
=
0
;
s
<
NR_NUMBER_OF_SYMBOLS_PER_SLOT
;
s
++
)
num_dmrs
+=
(
ulsch_harq
->
ulsch_pdu
.
ul_dmrs_symb_pos
>>
s
)
&
1
;
...
...
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