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
e9ff5ee5
Commit
e9ff5ee5
authored
Feb 21, 2023
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improving the logic of reusing the old tda and applying to UL
parent
bc21da6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
17 deletions
+11
-17
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+8
-12
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+3
-5
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
e9ff5ee5
...
@@ -383,7 +383,8 @@ bool allocate_dl_retransmission(module_id_t module_id,
...
@@ -383,7 +383,8 @@ bool allocate_dl_retransmission(module_id_t module_id,
uint16_t
*
rballoc_mask
,
uint16_t
*
rballoc_mask
,
int
*
n_rb_sched
,
int
*
n_rb_sched
,
NR_UE_info_t
*
UE
,
NR_UE_info_t
*
UE
,
int
current_harq_pid
)
{
int
current_harq_pid
)
{
int
CC_id
=
0
;
int
CC_id
=
0
;
gNB_MAC_INST
*
nr_mac
=
RC
.
nrmac
[
module_id
];
gNB_MAC_INST
*
nr_mac
=
RC
.
nrmac
[
module_id
];
...
@@ -411,24 +412,19 @@ bool allocate_dl_retransmission(module_id_t module_id,
...
@@ -411,24 +412,19 @@ bool allocate_dl_retransmission(module_id_t module_id,
/* Check first whether the old TDA can be reused
/* Check first whether the old TDA can be reused
* this helps allocate retransmission when TDA changes (e.g. new nrOfSymbols > old nrOfSymbols) */
* this helps allocate retransmission when TDA changes (e.g. new nrOfSymbols > old nrOfSymbols) */
NR_tda_info_t
temp_tda
=
nr_get_pdsch_tda_info
(
dl_bwp
,
tda
);
NR_tda_info_t
temp_tda
=
nr_get_pdsch_tda_info
(
dl_bwp
,
tda
);
const
uint16_t
temp_bitmap
=
SL_to_bitmap
(
temp_tda
.
startSymbolIndex
,
temp_tda
.
nrOfSymbols
);
bool
reuse_old_tda
=
(
retInfo
->
tda_info
.
startSymbolIndex
==
temp_tda
.
startSymbolIndex
)
&&
(
retInfo
->
tda_info
.
nrOfSymbols
<=
temp_tda
.
nrOfSymbols
);
NR_tda_info_t
*
old_tda
=
&
retInfo
->
tda_info
;
const
uint16_t
old_bitmap
=
SL_to_bitmap
(
old_tda
->
startSymbolIndex
,
old_tda
->
nrOfSymbols
);
bool
reuse_old_tda
=
(
old_bitmap
&
temp_bitmap
)
==
old_bitmap
;
LOG_D
(
NR_MAC
,
"[UE %x] %s old TDA, %s number of layers
\n
"
,
LOG_D
(
NR_MAC
,
"[UE %x] %s old TDA, %s number of layers
\n
"
,
UE
->
rnti
,
UE
->
rnti
,
reuse_old_tda
?
"reuse"
:
"do not reuse"
,
reuse_old_tda
?
"reuse"
:
"do not reuse"
,
layers
==
retInfo
->
nrOfLayers
?
"same"
:
"different"
);
layers
==
retInfo
->
nrOfLayers
?
"same"
:
"different"
);
if
((
reuse_old_tda
||
tda
==
retInfo
->
time_domain_allocation
)
&&
layers
==
retInfo
->
nrOfLayers
)
{
if
(
reuse_old_tda
&&
layers
==
retInfo
->
nrOfLayers
)
{
/* Check that there are enough resources for retransmission */
/* Check that there are enough resources for retransmission */
while
(
rbSize
<
retInfo
->
rbSize
)
{
while
(
rbSize
<
retInfo
->
rbSize
)
{
rbStart
+=
rbSize
;
/* last iteration rbSize was not enough, skip it */
rbStart
+=
rbSize
;
/* last iteration rbSize was not enough, skip it */
rbSize
=
0
;
rbSize
=
0
;
const
uint16_t
slbitmap
=
reuse_old_tda
?
old_bitmap
:
temp_bitmap
;
const
uint16_t
slbitmap
=
SL_to_bitmap
(
retInfo
->
tda_info
.
startSymbolIndex
,
retInfo
->
tda_info
.
nrOfSymbols
)
;
while
(
rbStart
<
bwpSize
&&
(
rballoc_mask
[
rbStart
]
&
slbitmap
)
!=
slbitmap
)
while
(
rbStart
<
bwpSize
&&
(
rballoc_mask
[
rbStart
]
&
slbitmap
)
!=
slbitmap
)
rbStart
++
;
rbStart
++
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
e9ff5ee5
...
@@ -1432,9 +1432,9 @@ static bool allocate_ul_retransmission(gNB_MAC_INST *nrmac,
...
@@ -1432,9 +1432,9 @@ static bool allocate_ul_retransmission(gNB_MAC_INST *nrmac,
const
uint8_t
nrOfLayers
=
retInfo
->
nrOfLayers
;
const
uint8_t
nrOfLayers
=
retInfo
->
nrOfLayers
;
LOG_D
(
NR_MAC
,
"retInfo->time_domain_allocation = %d, tda = %d
\n
"
,
retInfo
->
time_domain_allocation
,
tda
);
LOG_D
(
NR_MAC
,
"retInfo->time_domain_allocation = %d, tda = %d
\n
"
,
retInfo
->
time_domain_allocation
,
tda
);
LOG_D
(
NR_MAC
,
"tbs %d
\n
"
,
retInfo
->
tb_size
);
LOG_D
(
NR_MAC
,
"tbs %d
\n
"
,
retInfo
->
tb_size
);
if
(
tda
==
retInfo
->
time_domain_allocation
&&
NR_tda_info_t
tda_info
=
nr_get_pusch_tda_info
(
&
UE
->
current_UL_BWP
,
tda
);
nrOfLayers
==
retInfo
->
nrOfLayers
)
{
bool
reuse_old_tda
=
(
retInfo
->
tda_info
.
startSymbolIndex
==
tda_info
.
startSymbolIndex
)
&&
(
retInfo
->
tda_info
.
nrOfSymbols
<=
tda_info
.
nrOfSymbols
);
if
(
reuse_old_tda
&&
nrOfLayers
==
retInfo
->
nrOfLayers
)
{
/* Check the resource is enough for retransmission */
/* Check the resource is enough for retransmission */
const
uint16_t
slbitmap
=
SL_to_bitmap
(
retInfo
->
tda_info
.
startSymbolIndex
,
retInfo
->
tda_info
.
nrOfSymbols
);
const
uint16_t
slbitmap
=
SL_to_bitmap
(
retInfo
->
tda_info
.
startSymbolIndex
,
retInfo
->
tda_info
.
nrOfSymbols
);
while
(
rbStart
<
bwpSize
&&
(
rballoc_mask
[
rbStart
]
&
slbitmap
)
!=
slbitmap
)
while
(
rbStart
<
bwpSize
&&
(
rballoc_mask
[
rbStart
]
&
slbitmap
)
!=
slbitmap
)
...
@@ -1451,8 +1451,6 @@ static bool allocate_ul_retransmission(gNB_MAC_INST *nrmac,
...
@@ -1451,8 +1451,6 @@ static bool allocate_ul_retransmission(gNB_MAC_INST *nrmac,
}
}
LOG_D
(
NR_MAC
,
"%s(): retransmission keeping TDA %d and TBS %d
\n
"
,
__func__
,
tda
,
retInfo
->
tb_size
);
LOG_D
(
NR_MAC
,
"%s(): retransmission keeping TDA %d and TBS %d
\n
"
,
__func__
,
tda
,
retInfo
->
tb_size
);
}
else
{
}
else
{
NR_tda_info_t
tda_info
=
nr_get_pusch_tda_info
(
&
UE
->
current_UL_BWP
,
tda
);
NR_pusch_dmrs_t
dmrs_info
=
get_ul_dmrs_params
(
scc
,
NR_pusch_dmrs_t
dmrs_info
=
get_ul_dmrs_params
(
scc
,
&
UE
->
current_UL_BWP
,
&
UE
->
current_UL_BWP
,
&
tda_info
,
&
tda_info
,
...
...
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