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
58ea7357
Commit
58ea7357
authored
Jan 29, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add option to configure max MIMO layers for PUSCH TBSLBRM computation from UE capabilities
parent
e6b02c6d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
31 deletions
+71
-31
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+47
-22
openair2/LAYER2/NR_MAC_UE/mac_defs.h
openair2/LAYER2/NR_MAC_UE/mac_defs.h
+2
-1
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
+2
-1
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+20
-7
No files found.
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
58ea7357
...
@@ -1930,29 +1930,54 @@ static void configure_BWPs(NR_UE_MAC_INST_t *mac, NR_ServingCellConfig_t *scd)
...
@@ -1930,29 +1930,54 @@ static void configure_BWPs(NR_UE_MAC_INST_t *mac, NR_ServingCellConfig_t *scd)
static
void
handle_mac_uecap_info
(
NR_UE_MAC_INST_t
*
mac
,
NR_UE_NR_Capability_t
*
ue_Capability
)
static
void
handle_mac_uecap_info
(
NR_UE_MAC_INST_t
*
mac
,
NR_UE_NR_Capability_t
*
ue_Capability
)
{
{
if
(
ue_Capability
->
featureSets
)
{
if
(
!
ue_Capability
->
featureSets
)
if
(
ue_Capability
->
featureSets
->
featureSetsDownlinkPerCC
)
{
return
;
struct
NR_FeatureSets__featureSetsDownlinkPerCC
*
fs_dlcc_list
=
ue_Capability
->
featureSets
->
featureSetsDownlinkPerCC
;
if
(
ue_Capability
->
featureSets
->
featureSetsDownlinkPerCC
)
{
for
(
int
i
=
0
;
i
<
fs_dlcc_list
->
list
.
count
;
i
++
)
{
struct
NR_FeatureSets__featureSetsDownlinkPerCC
*
fs_dlcc_list
=
ue_Capability
->
featureSets
->
featureSetsDownlinkPerCC
;
NR_FeatureSetDownlinkPerCC_t
*
fs_dl_cc
=
fs_dlcc_list
->
list
.
array
[
i
];
for
(
int
i
=
0
;
i
<
fs_dlcc_list
->
list
.
count
;
i
++
)
{
if
(
mac
->
current_DL_BWP
->
scs
!=
fs_dl_cc
->
supportedSubcarrierSpacingDL
)
NR_FeatureSetDownlinkPerCC_t
*
fs_dl_cc
=
fs_dlcc_list
->
list
.
array
[
i
];
continue
;
if
(
mac
->
current_DL_BWP
->
scs
!=
fs_dl_cc
->
supportedSubcarrierSpacingDL
)
int
uecap_bw_index
;
continue
;
if
(
fs_dl_cc
->
supportedBandwidthDL
.
present
==
NR_SupportedBandwidth_PR_fr1
)
{
int
uecap_bw_index
;
uecap_bw_index
=
fs_dl_cc
->
supportedBandwidthDL
.
choice
.
fr1
;
if
(
fs_dl_cc
->
supportedBandwidthDL
.
present
==
NR_SupportedBandwidth_PR_fr1
)
{
// 90 MHz option is indicated by a separate pointer in case indicated supported BW is 100MHz
uecap_bw_index
=
fs_dl_cc
->
supportedBandwidthDL
.
choice
.
fr1
;
// so we need to increase the index by 1 unit to point to 100 MHz if not 90MHz
// 90 MHz option is indicated by a separate pointer in case indicated supported BW is 100MHz
if
(
uecap_bw_index
==
NR_SupportedBandwidth__fr1_mhz100
&&
!
fs_dl_cc
->
channelBW_90mhz
)
// so we need to increase the index by 1 unit to point to 100 MHz if not 90MHz
uecap_bw_index
++
;
if
(
uecap_bw_index
==
NR_SupportedBandwidth__fr1_mhz100
&&
!
fs_dl_cc
->
channelBW_90mhz
)
}
uecap_bw_index
++
;
else
}
uecap_bw_index
=
fs_dl_cc
->
supportedBandwidthDL
.
choice
.
fr2
;
else
int
dl_bw_mhz
=
mac
->
phy_config
.
config_req
.
carrier_config
.
dl_bandwidth
;
uecap_bw_index
=
fs_dl_cc
->
supportedBandwidthDL
.
choice
.
fr2
;
if
(
dl_bw_mhz
!=
get_supported_bw_mhz
(
mac
->
frequency_range
,
uecap_bw_index
))
int
dl_bw_mhz
=
mac
->
phy_config
.
config_req
.
carrier_config
.
dl_bandwidth
;
continue
;
if
(
dl_bw_mhz
!=
get_supported_bw_mhz
(
mac
->
frequency_range
,
uecap_bw_index
))
if
(
fs_dl_cc
->
maxNumberMIMO_LayersPDSCH
)
continue
;
mac
->
uecap_maxMIMO_PDSCH_layers
=
2
<<
*
fs_dl_cc
->
maxNumberMIMO_LayersPDSCH
;
if
(
fs_dl_cc
->
maxNumberMIMO_LayersPDSCH
)
mac
->
uecap_maxMIMO_PDSCH_layers
=
2
<<
*
fs_dl_cc
->
maxNumberMIMO_LayersPDSCH
;
}
}
if
(
ue_Capability
->
featureSets
->
featureSetsUplinkPerCC
)
{
struct
NR_FeatureSets__featureSetsUplinkPerCC
*
fs_ulcc_list
=
ue_Capability
->
featureSets
->
featureSetsUplinkPerCC
;
for
(
int
i
=
0
;
i
<
fs_ulcc_list
->
list
.
count
;
i
++
)
{
NR_FeatureSetUplinkPerCC_t
*
fs_ul_cc
=
fs_ulcc_list
->
list
.
array
[
i
];
if
(
mac
->
current_UL_BWP
->
scs
!=
fs_ul_cc
->
supportedSubcarrierSpacingUL
)
continue
;
int
uecap_bw_index
;
if
(
fs_ul_cc
->
supportedBandwidthUL
.
present
==
NR_SupportedBandwidth_PR_fr1
)
{
uecap_bw_index
=
fs_ul_cc
->
supportedBandwidthUL
.
choice
.
fr1
;
// 90 MHz option is indicated by a separate pointer in case indicated supported BW is 100MHz
// so we need to increase the index by 1 unit to point to 100 MHz if not 90MHz
if
(
uecap_bw_index
==
NR_SupportedBandwidth__fr1_mhz100
&&
!
fs_ul_cc
->
channelBW_90mhz
)
uecap_bw_index
++
;
}
}
else
uecap_bw_index
=
fs_ul_cc
->
supportedBandwidthUL
.
choice
.
fr2
;
int
ul_bw_mhz
=
mac
->
phy_config
.
config_req
.
carrier_config
.
uplink_bandwidth
;
if
(
ul_bw_mhz
!=
get_supported_bw_mhz
(
mac
->
frequency_range
,
uecap_bw_index
))
continue
;
if
(
fs_ul_cc
->
maxNumberMIMO_LayersNonCB_PUSCH
)
mac
->
uecap_maxMIMO_PUSCH_layers_nocb
=
1
<<
*
fs_ul_cc
->
maxNumberMIMO_LayersNonCB_PUSCH
;
if
(
fs_ul_cc
->
mimo_CB_PUSCH
&&
fs_ul_cc
->
mimo_CB_PUSCH
->
maxNumberMIMO_LayersCB_PUSCH
)
mac
->
uecap_maxMIMO_PUSCH_layers_cb
=
1
<<
*
fs_ul_cc
->
mimo_CB_PUSCH
->
maxNumberMIMO_LayersCB_PUSCH
;
}
}
}
}
}
}
...
...
openair2/LAYER2/NR_MAC_UE/mac_defs.h
View file @
58ea7357
...
@@ -475,7 +475,8 @@ typedef struct NR_UE_MAC_INST_s {
...
@@ -475,7 +475,8 @@ typedef struct NR_UE_MAC_INST_s {
bool
harq_ACK_SpatialBundlingPUSCH
;
bool
harq_ACK_SpatialBundlingPUSCH
;
uint32_t
uecap_maxMIMO_PDSCH_layers
;
uint32_t
uecap_maxMIMO_PDSCH_layers
;
uint32_t
uecap_maxMIMO_PUSCH_layers
;
uint32_t
uecap_maxMIMO_PUSCH_layers_cb
;
uint32_t
uecap_maxMIMO_PUSCH_layers_nocb
;
NR_UL_TIME_ALIGNMENT_t
ul_time_alignment
;
NR_UL_TIME_ALIGNMENT_t
ul_time_alignment
;
NR_TDD_UL_DL_ConfigCommon_t
*
tdd_UL_DL_ConfigurationCommon
;
NR_TDD_UL_DL_ConfigCommon_t
*
tdd_UL_DL_ConfigurationCommon
;
...
...
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
View file @
58ea7357
...
@@ -68,7 +68,8 @@ void nr_ue_init_mac(module_id_t module_idP)
...
@@ -68,7 +68,8 @@ void nr_ue_init_mac(module_id_t module_idP)
mac
->
harq_ACK_SpatialBundlingPUCCH
=
false
;
mac
->
harq_ACK_SpatialBundlingPUCCH
=
false
;
mac
->
harq_ACK_SpatialBundlingPUSCH
=
false
;
mac
->
harq_ACK_SpatialBundlingPUSCH
=
false
;
mac
->
uecap_maxMIMO_PDSCH_layers
=
0
;
mac
->
uecap_maxMIMO_PDSCH_layers
=
0
;
mac
->
uecap_maxMIMO_PUSCH_layers
=
0
;
mac
->
uecap_maxMIMO_PUSCH_layers_cb
=
0
;
mac
->
uecap_maxMIMO_PUSCH_layers_nocb
=
0
;
memset
(
&
mac
->
ssb_measurements
,
0
,
sizeof
(
mac
->
ssb_measurements
));
memset
(
&
mac
->
ssb_measurements
,
0
,
sizeof
(
mac
->
ssb_measurements
));
memset
(
&
mac
->
ul_time_alignment
,
0
,
sizeof
(
mac
->
ul_time_alignment
));
memset
(
&
mac
->
ul_time_alignment
,
0
,
sizeof
(
mac
->
ul_time_alignment
));
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
58ea7357
...
@@ -692,16 +692,28 @@ int nr_config_pusch_pdu(NR_UE_MAC_INST_t *mac,
...
@@ -692,16 +692,28 @@ int nr_config_pusch_pdu(NR_UE_MAC_INST_t *mac,
N_PRB_oh
=
0
;
N_PRB_oh
=
0
;
if
(
sc_info
->
rateMatching_PUSCH
)
{
if
(
sc_info
->
rateMatching_PUSCH
)
{
long
*
maxMIMO_Layers
=
sc_info
->
maxMIMO_Layers_PUSCH
;
long
maxMIMO_Layers
=
0
;
if
(
!
maxMIMO_Layers
)
if
(
sc_info
->
maxMIMO_Layers_PUSCH
)
maxMIMO_Layers
=
pusch_Config
?
pusch_Config
->
maxRank
:
NULL
;
maxMIMO_Layers
=
*
sc_info
->
maxMIMO_Layers_PUSCH
;
AssertFatal
(
maxMIMO_Layers
!=
NULL
,
"Option with max MIMO layers not configured is not supported
\n
"
);
else
if
(
pusch_Config
&&
pusch_Config
->
maxRank
)
pusch_config_pdu
->
tbslbrm
=
nr_compute_tbslbrm
(
pusch_config_pdu
->
mcs_table
,
sc_info
->
ul_bw_tbslbrm
,
*
maxMIMO_Layers
);
maxMIMO_Layers
=
*
pusch_Config
->
maxRank
;
else
{
if
(
pusch_Config
&&
pusch_Config
->
txConfig
)
{
if
(
*
pusch_Config
->
txConfig
==
NR_PUSCH_Config__txConfig_codebook
)
maxMIMO_Layers
=
mac
->
uecap_maxMIMO_PUSCH_layers_cb
;
else
maxMIMO_Layers
=
mac
->
uecap_maxMIMO_PUSCH_layers_nocb
;
}
else
maxMIMO_Layers
=
1
;
// single antenna port
}
AssertFatal
(
maxMIMO_Layers
>
0
,
"Invalid number of max MIMO layers for PUSCH
\n
"
);
pusch_config_pdu
->
tbslbrm
=
nr_compute_tbslbrm
(
pusch_config_pdu
->
mcs_table
,
sc_info
->
ul_bw_tbslbrm
,
maxMIMO_Layers
);
}
else
}
else
pusch_config_pdu
->
tbslbrm
=
0
;
pusch_config_pdu
->
tbslbrm
=
0
;
/* PTRS */
/* PTRS */
if
(
pusch_Config
&&
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeB
&&
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeB
->
choice
.
setup
->
phaseTrackingRS
)
{
if
(
pusch_Config
&&
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeB
&&
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeB
->
choice
.
setup
->
phaseTrackingRS
)
{
if
(
pusch_config_pdu
->
transform_precoding
==
NR_PUSCH_Config__transformPrecoder_disabled
)
{
if
(
pusch_config_pdu
->
transform_precoding
==
NR_PUSCH_Config__transformPrecoder_disabled
)
{
nfapi_nr_ue_ptrs_ports_t
ptrs_ports_list
;
nfapi_nr_ue_ptrs_ports_t
ptrs_ports_list
;
pusch_config_pdu
->
pusch_ptrs
.
ptrs_ports_list
=
&
ptrs_ports_list
;
pusch_config_pdu
->
pusch_ptrs
.
ptrs_ports_list
=
&
ptrs_ports_list
;
...
@@ -718,7 +730,8 @@ int nr_config_pusch_pdu(NR_UE_MAC_INST_t *mac,
...
@@ -718,7 +730,8 @@ int nr_config_pusch_pdu(NR_UE_MAC_INST_t *mac,
if
(
valid_ptrs_setup
==
true
)
{
if
(
valid_ptrs_setup
==
true
)
{
pusch_config_pdu
->
pdu_bit_map
|=
PUSCH_PDU_BITMAP_PUSCH_PTRS
;
pusch_config_pdu
->
pdu_bit_map
|=
PUSCH_PDU_BITMAP_PUSCH_PTRS
;
}
}
LOG_D
(
NR_MAC
,
"UL PTRS values: PTRS time den: %d, PTRS freq den: %d
\n
"
,
pusch_config_pdu
->
pusch_ptrs
.
ptrs_time_density
,
pusch_config_pdu
->
pusch_ptrs
.
ptrs_freq_density
);
LOG_D
(
NR_MAC
,
"UL PTRS values: PTRS time den: %d, PTRS freq den: %d
\n
"
,
pusch_config_pdu
->
pusch_ptrs
.
ptrs_time_density
,
pusch_config_pdu
->
pusch_ptrs
.
ptrs_freq_density
);
}
}
}
}
}
}
...
...
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