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
Michael Black
OpenXG-RAN
Commits
63327ce3
Commit
63327ce3
authored
Jun 28, 2022
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compute pmi at the same time as layers
parent
caa47c74
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
26 deletions
+25
-26
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+8
-11
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+13
-9
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
+0
-1
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+3
-4
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
+1
-1
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
63327ce3
...
...
@@ -397,6 +397,7 @@ bool allocate_dl_retransmission(module_id_t module_id,
// we need to verify if it is not decreased
// othwise it wouldn't be possible to transmit the same TBS
int
layers
=
(
curInfo
->
nrOfLayers
<
retInfo
->
nrOfLayers
)
?
curInfo
->
nrOfLayers
:
retInfo
->
nrOfLayers
;
int
pm_index
=
(
curInfo
->
nrOfLayers
<
retInfo
->
nrOfLayers
)
?
curInfo
->
pm_index
:
retInfo
->
pm_index
;
const
int
coresetid
=
sched_ctrl
->
coreset
->
controlResourceSetId
;
const
uint16_t
bwpSize
=
coresetid
==
0
?
RC
.
nrmac
[
module_id
]
->
cset0_bwp_size
:
dl_bwp
->
BWPSize
;
...
...
@@ -472,6 +473,7 @@ bool allocate_dl_retransmission(module_id_t module_id,
retInfo
->
rbSize
=
new_rbSize
;
retInfo
->
time_domain_allocation
=
tda
;
retInfo
->
nrOfLayers
=
layers
;
retInfo
->
pm_index
=
pm_index
;
retInfo
->
dmrs_parms
=
temp_dmrs
;
retInfo
->
tda_info
=
temp_tda
;
}
...
...
@@ -621,6 +623,10 @@ void pf_dl(module_id_t module_id,
else
sched_pdsch
->
mcs
=
get_mcs_from_bler
(
bo
,
stats
,
&
sched_ctrl
->
dl_bler_stats
,
max_mcs
,
frame
);
sched_pdsch
->
nrOfLayers
=
get_dl_nrOfLayers
(
sched_ctrl
,
current_BWP
->
dci_format
);
sched_pdsch
->
pm_index
=
set_pm_index
(
UE
,
sched_ctrl
,
sched_pdsch
->
nrOfLayers
,
mac
->
xp_pdsch_antenna_ports
);
const
uint8_t
Qm
=
nr_get_Qm_dl
(
sched_pdsch
->
mcs
,
current_BWP
->
mcsTableIdx
);
const
uint16_t
R
=
nr_get_code_rate_dl
(
sched_pdsch
->
mcs
,
current_BWP
->
mcsTableIdx
);
uint32_t
tbs
=
nr_compute_tbs
(
Qm
,
...
...
@@ -1032,17 +1038,8 @@ void nr_schedule_ue_spec(module_id_t module_id,
pdsch_pdu
->
StartSymbolIndex
=
tda_info
->
startSymbolIndex
;
pdsch_pdu
->
NrOfSymbols
=
tda_info
->
nrOfSymbols
;
// Precoding
if
(
sched_ctrl
->
set_pmi
)
{
const
int
report_id
=
sched_ctrl
->
CSI_report
.
cri_ri_li_pmi_cqi_report
.
csi_report_id
;
nr_csi_report_t
*
csi_report
=
&
UE
->
csi_report_template
[
report_id
];
pdsch_pdu
->
precodingAndBeamforming
.
prg_size
=
pdsch_pdu
->
rbSize
;
pdsch_pdu
->
precodingAndBeamforming
.
prgs_list
[
0
].
pm_idx
=
set_pm_index
(
sched_ctrl
,
nrOfLayers
,
csi_report
->
N1
,
csi_report
->
N2
,
gNB_mac
->
xp_pdsch_antenna_ports
,
csi_report
->
codebook_mode
);
}
pdsch_pdu
->
precodingAndBeamforming
.
prg_size
=
pdsch_pdu
->
rbSize
;
pdsch_pdu
->
precodingAndBeamforming
.
prgs_list
[
0
].
pm_idx
=
sched_pdsch
->
pm_index
;
// TBS_LBRM according to section 5.4.2.1 of 38.212
// TODO: verify the case where pdsch_servingcellconfig is NULL, in which case
// in principle maxMIMO_layers should be given by the maximum number of layers
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
63327ce3
...
...
@@ -153,23 +153,27 @@ uint8_t get_dl_nrOfLayers(NR_UE_sched_ctrl_t *sched_ctrl, nr_dci_format_t dci_fo
}
uint16_t
set_pm_index
(
NR_UE_sched_ctrl_t
*
sched_ctrl
,
uint16_t
set_pm_index
(
NR_UE_info_t
*
UE
,
NR_UE_sched_ctrl_t
*
sched_ctrl
,
int
layers
,
int
N1
,
int
N2
,
int
xp_pdsch_antenna_ports
,
int
codebook_mode
)
{
int
xp_pdsch_antenna_ports
)
{
if
(
layers
==
1
)
return
0
;
const
int
report_id
=
sched_ctrl
->
CSI_report
.
cri_ri_li_pmi_cqi_report
.
csi_report_id
;
const
nr_csi_report_t
*
csi_report
=
&
UE
->
csi_report_template
[
report_id
];
const
int
N1
=
csi_report
->
N1
;
const
int
N2
=
csi_report
->
N2
;
const
int
antenna_ports
=
(
N1
*
N2
)
<<
1
;
int
antenna_ports
=
(
N1
*
N2
)
<<
1
;
if
(
xp_pdsch_antenna_ports
==
1
&&
antenna_ports
>
1
)
return
0
;
//identity matrix (basic 5G configuration handled by PMI report is with XP antennas)
int
x1
=
sched_ctrl
->
CSI_report
.
cri_ri_li_pmi_cqi_report
.
pmi_x1
;
int
x2
=
sched_ctrl
->
CSI_report
.
cri_ri_li_pmi_cqi_report
.
pmi_x2
;
const
int
x1
=
sched_ctrl
->
CSI_report
.
cri_ri_li_pmi_cqi_report
.
pmi_x1
;
const
int
x2
=
sched_ctrl
->
CSI_report
.
cri_ri_li_pmi_cqi_report
.
pmi_x2
;
LOG_D
(
NR_MAC
,
"PMI report: x1 %d x2 %d
\n
"
,
x1
,
x2
);
sched_ctrl
->
set_pmi
=
false
;
if
(
antenna_ports
==
2
)
return
x2
;
else
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
View file @
63327ce3
...
...
@@ -707,7 +707,6 @@ uint8_t evaluate_pmi_report(uint8_t *payload,
sched_ctrl
->
CSI_report
.
cri_ri_li_pmi_cqi_report
.
pmi_x1
,
sched_ctrl
->
CSI_report
.
cri_ri_li_pmi_cqi_report
.
pmi_x2
);
sched_ctrl
->
set_pmi
=
true
;
return
tot_bitlen
;
}
...
...
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
63327ce3
...
...
@@ -462,11 +462,10 @@ void set_dl_dmrs_params(NR_pdsch_dmrs_t *dmrs,
NR_pdsch_tda_info_t
*
tda_info
,
int
Layers
);
uint16_t
set_pm_index
(
NR_UE_sched_ctrl_t
*
sched_ctrl
,
uint16_t
set_pm_index
(
NR_UE_info_t
*
UE
,
NR_UE_sched_ctrl_t
*
sched_ctrl
,
int
layers
,
int
N1
,
int
N2
,
int
xp_pdsch_antenna_ports
,
int
codebook_mode
);
int
xp_pdsch_antenna_ports
);
uint8_t
get_mcs_from_cqi
(
int
mcs_table
,
int
cqi_table
,
int
cqi_idx
);
...
...
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
View file @
63327ce3
...
...
@@ -462,6 +462,7 @@ typedef struct NR_sched_pdsch {
/// NR_pdsch_semi_static_t has precedence
int
time_domain_allocation
;
uint16_t
pm_index
;
uint8_t
nrOfLayers
;
NR_pdsch_dmrs_t
dmrs_parms
;
NR_pdsch_tda_info_t
tda_info
;
...
...
@@ -629,7 +630,6 @@ typedef struct {
int
ul_failure
;
struct
CSI_Report
CSI_report
;
bool
SR
;
bool
set_pmi
;
/// information about every HARQ process
NR_UE_harq_t
harq_processes
[
NR_MAX_NB_HARQ_PROCESSES
];
/// HARQ processes that are free
...
...
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