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
fca07aae
Commit
fca07aae
authored
Dec 15, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/NR_improve_SRS_configuration' into integration_2022_wk50
parents
6ecf3db1
df6a5fd8
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
133 additions
and
43 deletions
+133
-43
openair1/PHY/NR_TRANSPORT/srs_rx.c
openair1/PHY/NR_TRANSPORT/srs_rx.c
+1
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
+7
-7
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
+2
-2
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_srs.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_srs.c
+9
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+14
-14
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+1
-1
openair2/RRC/NR/MESSAGES/asn1_msg.c
openair2/RRC/NR/MESSAGES/asn1_msg.c
+5
-3
openair2/RRC/NR/nr_rrc_config.c
openair2/RRC/NR/nr_rrc_config.c
+91
-9
openair2/RRC/NR/nr_rrc_config.h
openair2/RRC/NR/nr_rrc_config.h
+2
-1
openair2/RRC/NR/rrc_gNB_reconfig.c
openair2/RRC/NR/rrc_gNB_reconfig.c
+1
-1
No files found.
openair1/PHY/NR_TRANSPORT/srs_rx.c
View file @
fca07aae
...
@@ -74,7 +74,7 @@ int nr_find_srs(rnti_t rnti,
...
@@ -74,7 +74,7 @@ int nr_find_srs(rnti_t rnti,
}
}
if
(
index
==-
1
)
if
(
index
==-
1
)
LOG_E
(
MAC
,
"SRS list is full
\n
"
);
LOG_E
(
PHY
,
"SRS list is full
\n
"
);
return
(
index
);
return
(
index
);
}
}
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
View file @
fca07aae
...
@@ -64,18 +64,18 @@ uint8_t vnf_first_sched_entry = 1;
...
@@ -64,18 +64,18 @@ uint8_t vnf_first_sched_entry = 1;
void
clear_nr_nfapi_information
(
gNB_MAC_INST
*
gNB
,
void
clear_nr_nfapi_information
(
gNB_MAC_INST
*
gNB
,
int
CC_idP
,
int
CC_idP
,
frame_t
frameP
,
frame_t
frameP
,
sub_frame_t
slotP
){
sub_frame_t
slotP
)
{
NR_ServingCellConfigCommon_t
*
scc
=
gNB
->
common_channels
->
ServingCellConfigCommon
;
NR_ServingCellConfigCommon_t
*
scc
=
gNB
->
common_channels
->
ServingCellConfigCommon
;
const
int
num_slots
=
nr_slots_per_frame
[
*
scc
->
ssbSubcarrierSpacing
];
const
int
num_slots
=
nr_slots_per_frame
[
*
scc
->
ssbSubcarrierSpacing
];
UL_tti_req_ahead_initialization
(
gNB
,
scc
,
num_slots
,
CC_idP
);
UL_tti_req_ahead_initialization
(
gNB
,
scc
,
num_slots
,
CC_idP
);
nfapi_nr_dl_tti_request_t
*
DL_req
=
&
gNB
->
DL_req
[
0
];
nfapi_nr_dl_tti_request_t
*
DL_req
=
&
gNB
->
DL_req
[
0
];
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
**
pdcch
=
(
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
**
)
gNB
->
pdcch_pdu_idx
[
CC_idP
];
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
**
pdcch
=
(
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
**
)
gNB
->
pdcch_pdu_idx
[
CC_idP
];
nfapi_nr_ul_tti_request_t
*
future_ul_tti_req
=
nfapi_nr_ul_tti_request_t
*
future_ul_tti_req
=
&
gNB
->
UL_tti_req_ahead
[
CC_idP
][(
slotP
+
num_slots
-
1
)
%
num_slots
];
&
gNB
->
UL_tti_req_ahead
[
CC_idP
][(
slotP
+
num_slots
-
1
)
%
num_slots
];
nfapi_nr_ul_dci_request_t
*
UL_dci_req
=
&
gNB
->
UL_dci_req
[
0
];
nfapi_nr_ul_dci_request_t
*
UL_dci_req
=
&
gNB
->
UL_dci_req
[
0
];
nfapi_nr_tx_data_request_t
*
TX_req
=
&
gNB
->
TX_req
[
0
];
nfapi_nr_tx_data_request_t
*
TX_req
=
&
gNB
->
TX_req
[
0
];
gNB
->
pdu_index
[
CC_idP
]
=
0
;
gNB
->
pdu_index
[
CC_idP
]
=
0
;
...
@@ -223,7 +223,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
...
@@ -223,7 +223,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
nr_schedule_srs
(
module_idP
,
frame
);
nr_schedule_srs
(
module_idP
,
frame
);
// This schedule RA procedure if not in phy_test mode
// This schedule RA procedure if not in phy_test mode
// Otherwise
already
consider 5G already connected
// Otherwise consider 5G already connected
if
(
get_softmodem_params
()
->
phy_test
==
0
)
{
if
(
get_softmodem_params
()
->
phy_test
==
0
)
{
nr_schedule_RA
(
module_idP
,
frame
,
slot
);
nr_schedule_RA
(
module_idP
,
frame
,
slot
);
}
}
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
View file @
fca07aae
...
@@ -344,7 +344,7 @@ bool nr_ul_preprocessor_phytest(module_id_t module_id, frame_t frame, sub_frame_
...
@@ -344,7 +344,7 @@ bool nr_ul_preprocessor_phytest(module_id_t module_id, frame_t frame, sub_frame_
const
int
mu
=
ul_bwp
->
scs
;
const
int
mu
=
ul_bwp
->
scs
;
const
struct
NR_PUSCH_TimeDomainResourceAllocationList
*
tdaList
=
ul_bwp
->
tdaList
;
const
struct
NR_PUSCH_TimeDomainResourceAllocationList
*
tdaList
=
ul_bwp
->
tdaList
;
const
int
temp_tda
=
get_ul_tda
(
nr_mac
,
scc
,
slot
);
const
int
temp_tda
=
get_ul_tda
(
nr_mac
,
scc
,
frame
,
slot
);
if
(
temp_tda
<
0
)
if
(
temp_tda
<
0
)
return
false
;
return
false
;
AssertFatal
(
temp_tda
<
tdaList
->
list
.
count
,
AssertFatal
(
temp_tda
<
tdaList
->
list
.
count
,
...
@@ -354,7 +354,7 @@ bool nr_ul_preprocessor_phytest(module_id_t module_id, frame_t frame, sub_frame_
...
@@ -354,7 +354,7 @@ bool nr_ul_preprocessor_phytest(module_id_t module_id, frame_t frame, sub_frame_
int
K2
=
get_K2
(
ul_bwp
->
tdaList
,
temp_tda
,
mu
);
int
K2
=
get_K2
(
ul_bwp
->
tdaList
,
temp_tda
,
mu
);
const
int
sched_frame
=
frame
+
(
slot
+
K2
>=
nr_slots_per_frame
[
mu
]);
const
int
sched_frame
=
frame
+
(
slot
+
K2
>=
nr_slots_per_frame
[
mu
]);
const
int
sched_slot
=
(
slot
+
K2
)
%
nr_slots_per_frame
[
mu
];
const
int
sched_slot
=
(
slot
+
K2
)
%
nr_slots_per_frame
[
mu
];
const
int
tda
=
get_ul_tda
(
nr_mac
,
scc
,
sched_slot
);
const
int
tda
=
get_ul_tda
(
nr_mac
,
scc
,
sched_
frame
,
sched_
slot
);
if
(
tda
<
0
)
if
(
tda
<
0
)
return
false
;
return
false
;
AssertFatal
(
tda
<
tdaList
->
list
.
count
,
AssertFatal
(
tda
<
tdaList
->
list
.
count
,
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_srs.c
View file @
fca07aae
...
@@ -137,8 +137,8 @@ void nr_srs_ri_computation(const nfapi_nr_srs_normalized_channel_iq_matrix_t *nr
...
@@ -137,8 +137,8 @@ void nr_srs_ri_computation(const nfapi_nr_srs_normalized_channel_iq_matrix_t *nr
}
}
void
nr_configure_srs
(
nfapi_nr_srs_pdu_t
*
srs_pdu
,
int
module_id
,
int
CC_id
,
NR_UE_info_t
*
UE
,
NR_SRS_ResourceSet_t
*
srs_resource_set
,
NR_SRS_Resource_t
*
srs_resource
)
{
void
nr_configure_srs
(
nfapi_nr_srs_pdu_t
*
srs_pdu
,
int
slot
,
int
module_id
,
int
CC_id
,
NR_UE_info_t
*
UE
,
NR_SRS_ResourceSet_t
*
srs_resource_set
,
NR_SRS_Resource_t
*
srs_resource
)
{
NR_UE_UL_BWP_t
*
current_BWP
=
&
UE
->
current_UL_BWP
;
NR_UE_UL_BWP_t
*
current_BWP
=
&
UE
->
current_UL_BWP
;
srs_pdu
->
rnti
=
UE
->
rnti
;
srs_pdu
->
rnti
=
UE
->
rnti
;
...
@@ -189,6 +189,11 @@ void nr_configure_srs(nfapi_nr_srs_pdu_t *srs_pdu, int module_id, int CC_id,NR_U
...
@@ -189,6 +189,11 @@ void nr_configure_srs(nfapi_nr_srs_pdu_t *srs_pdu, int module_id, int CC_id,NR_U
srs_pdu
->
beamforming
.
num_prgs
=
m_SRS
[
srs_pdu
->
config_index
];
srs_pdu
->
beamforming
.
num_prgs
=
m_SRS
[
srs_pdu
->
config_index
];
srs_pdu
->
beamforming
.
prg_size
=
1
;
srs_pdu
->
beamforming
.
prg_size
=
1
;
}
}
uint16_t
*
vrb_map_UL
=
&
RC
.
nrmac
[
module_id
]
->
common_channels
[
CC_id
].
vrb_map_UL
[
slot
*
MAX_BWP_SIZE
];
uint64_t
mask
=
SL_to_bitmap
(
13
-
srs_pdu
->
time_start_position
,
srs_pdu
->
num_symbols
);
for
(
int
i
=
0
;
i
<
srs_pdu
->
bwp_size
;
++
i
)
vrb_map_UL
[
i
+
srs_pdu
->
bwp_start
]
|=
mask
;
}
}
void
nr_fill_nfapi_srs
(
int
module_id
,
int
CC_id
,
NR_UE_info_t
*
UE
,
sub_frame_t
slot
,
NR_SRS_ResourceSet_t
*
srs_resource_set
,
NR_SRS_Resource_t
*
srs_resource
)
{
void
nr_fill_nfapi_srs
(
int
module_id
,
int
CC_id
,
NR_UE_info_t
*
UE
,
sub_frame_t
slot
,
NR_SRS_ResourceSet_t
*
srs_resource_set
,
NR_SRS_Resource_t
*
srs_resource
)
{
...
@@ -203,7 +208,7 @@ void nr_fill_nfapi_srs(int module_id, int CC_id, NR_UE_info_t* UE, sub_frame_t s
...
@@ -203,7 +208,7 @@ void nr_fill_nfapi_srs(int module_id, int CC_id, NR_UE_info_t* UE, sub_frame_t s
memset
(
srs_pdu
,
0
,
sizeof
(
nfapi_nr_srs_pdu_t
));
memset
(
srs_pdu
,
0
,
sizeof
(
nfapi_nr_srs_pdu_t
));
future_ul_tti_req
->
n_pdus
+=
1
;
future_ul_tti_req
->
n_pdus
+=
1
;
nr_configure_srs
(
srs_pdu
,
module_id
,
CC_id
,
UE
,
srs_resource_set
,
srs_resource
);
nr_configure_srs
(
srs_pdu
,
slot
,
module_id
,
CC_id
,
UE
,
srs_resource_set
,
srs_resource
);
}
}
/*******************************************************************
/*******************************************************************
...
@@ -271,7 +276,7 @@ void nr_schedule_srs(int module_id, frame_t frame) {
...
@@ -271,7 +276,7 @@ void nr_schedule_srs(int module_id, frame_t frame) {
int
n_slots_frame
=
nr_slots_per_frame
[
current_BWP
->
scs
];
int
n_slots_frame
=
nr_slots_per_frame
[
current_BWP
->
scs
];
// Check if UE will transmit the SRS in this frame
// Check if UE will transmit the SRS in this frame
if
(
((
frame
-
offset
/
n_slots_frame
)
*
n_slots_frame
)
%
period
==
0
)
{
if
(
((
frame
-
offset
/
n_slots_frame
)
*
n_slots_frame
)
%
period
==
0
)
{
LOG_D
(
NR_MAC
,
"Scheduling SRS reception for %d.%d
\n
"
,
frame
,
offset
%
n_slots_frame
);
LOG_D
(
NR_MAC
,
"Scheduling SRS reception for %d.%d
\n
"
,
frame
,
offset
%
n_slots_frame
);
nr_fill_nfapi_srs
(
module_id
,
CC_id
,
UE
,
offset
%
n_slots_frame
,
srs_resource_set
,
srs_resource
);
nr_fill_nfapi_srs
(
module_id
,
CC_id
,
UE
,
offset
%
n_slots_frame
,
srs_resource_set
,
srs_resource
);
sched_ctrl
->
sched_srs
.
frame
=
frame
;
sched_ctrl
->
sched_srs
.
frame
=
frame
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
fca07aae
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
//#define SRS_IND_DEBUG
//#define SRS_IND_DEBUG
const
int
get_ul_tda
(
const
gNB_MAC_INST
*
nrmac
,
const
NR_ServingCellConfigCommon_t
*
scc
,
int
slot
)
{
const
int
get_ul_tda
(
gNB_MAC_INST
*
nrmac
,
const
NR_ServingCellConfigCommon_t
*
scc
,
int
frame
,
int
slot
)
{
/* there is a mixed slot only when in TDD */
/* there is a mixed slot only when in TDD */
const
NR_TDD_UL_DL_Pattern_t
*
tdd
=
scc
->
tdd_UL_DL_ConfigurationCommon
?
&
scc
->
tdd_UL_DL_ConfigurationCommon
->
pattern1
:
NULL
;
const
NR_TDD_UL_DL_Pattern_t
*
tdd
=
scc
->
tdd_UL_DL_ConfigurationCommon
?
&
scc
->
tdd_UL_DL_ConfigurationCommon
->
pattern1
:
NULL
;
...
@@ -48,8 +48,16 @@ const int get_ul_tda(const gNB_MAC_INST *nrmac, const NR_ServingCellConfigCommon
...
@@ -48,8 +48,16 @@ const int get_ul_tda(const gNB_MAC_INST *nrmac, const NR_ServingCellConfigCommon
if
(
tdd
&&
tdd
->
nrofUplinkSymbols
>
1
)
{
// if there is uplink symbols in mixed slot
if
(
tdd
&&
tdd
->
nrofUplinkSymbols
>
1
)
{
// if there is uplink symbols in mixed slot
const
int
nr_slots_period
=
tdd
->
nrofDownlinkSlots
+
tdd
->
nrofUplinkSlots
+
1
;
const
int
nr_slots_period
=
tdd
->
nrofDownlinkSlots
+
tdd
->
nrofUplinkSlots
+
1
;
if
((
slot
%
nr_slots_period
)
==
tdd
->
nrofDownlinkSlots
)
if
((
slot
%
nr_slots_period
)
==
tdd
->
nrofDownlinkSlots
)
return
2
;
}
// Avoid slots with the SRS
UE_iterator
(
nrmac
->
UE_info
.
list
,
UE
)
{
NR_sched_srs_t
sched_srs
=
UE
->
UE_sched_ctrl
.
sched_srs
;
if
(
sched_srs
.
srs_scheduled
&&
sched_srs
.
frame
==
frame
&&
sched_srs
.
slot
==
slot
)
return
1
;
return
1
;
}
}
return
0
;
// if FDD or not mixed slot in TDD, for now use default TDA (TODO handle CSI-RS slots)
return
0
;
// if FDD or not mixed slot in TDD, for now use default TDA (TODO handle CSI-RS slots)
}
}
...
@@ -1583,7 +1591,7 @@ void pf_ul(module_id_t module_id,
...
@@ -1583,7 +1591,7 @@ void pf_ul(module_id_t module_id,
LOG_D
(
NR_MAC
,
"pf_ul: UE %04x harq_pid %d
\n
"
,
UE
->
rnti
,
sched_pusch
->
ul_harq_pid
);
LOG_D
(
NR_MAC
,
"pf_ul: UE %04x harq_pid %d
\n
"
,
UE
->
rnti
,
sched_pusch
->
ul_harq_pid
);
if
(
sched_pusch
->
ul_harq_pid
>=
0
)
{
if
(
sched_pusch
->
ul_harq_pid
>=
0
)
{
/* Allocate retransmission*/
/* Allocate retransmission*/
const
int
tda
=
get_ul_tda
(
nrmac
,
scc
,
sched_pusch
->
slot
);
const
int
tda
=
get_ul_tda
(
nrmac
,
scc
,
sched_pusch
->
frame
,
sched_pusch
->
slot
);
bool
r
=
allocate_ul_retransmission
(
nrmac
,
frame
,
slot
,
rballoc_mask
,
&
n_rb_sched
,
UE
,
sched_pusch
->
ul_harq_pid
,
scc
,
tda
);
bool
r
=
allocate_ul_retransmission
(
nrmac
,
frame
,
slot
,
rballoc_mask
,
&
n_rb_sched
,
UE
,
sched_pusch
->
ul_harq_pid
,
scc
,
tda
);
if
(
!
r
)
{
if
(
!
r
)
{
LOG_D
(
NR_MAC
,
"%4d.%2d UL retransmission UE RNTI %04x can NOT be allocated
\n
"
,
frame
,
slot
,
UE
->
rnti
);
LOG_D
(
NR_MAC
,
"%4d.%2d UL retransmission UE RNTI %04x can NOT be allocated
\n
"
,
frame
,
slot
,
UE
->
rnti
);
...
@@ -1638,7 +1646,7 @@ void pf_ul(module_id_t module_id,
...
@@ -1638,7 +1646,7 @@ void pf_ul(module_id_t module_id,
}
}
sched_pusch
->
nrOfLayers
=
sched_ctrl
->
srs_feedback
.
ul_ri
+
1
;
sched_pusch
->
nrOfLayers
=
sched_ctrl
->
srs_feedback
.
ul_ri
+
1
;
sched_pusch
->
time_domain_allocation
=
get_ul_tda
(
nrmac
,
scc
,
sched_pusch
->
slot
);
sched_pusch
->
time_domain_allocation
=
get_ul_tda
(
nrmac
,
scc
,
sched_pusch
->
frame
,
sched_pusch
->
slot
);
sched_pusch
->
tda_info
=
nr_get_pusch_tda_info
(
current_BWP
,
sched_pusch
->
time_domain_allocation
);
sched_pusch
->
tda_info
=
nr_get_pusch_tda_info
(
current_BWP
,
sched_pusch
->
time_domain_allocation
);
sched_pusch
->
dmrs_info
=
get_ul_dmrs_params
(
scc
,
sched_pusch
->
dmrs_info
=
get_ul_dmrs_params
(
scc
,
current_BWP
,
current_BWP
,
...
@@ -1724,7 +1732,7 @@ void pf_ul(module_id_t module_id,
...
@@ -1724,7 +1732,7 @@ void pf_ul(module_id_t module_id,
NR_sched_pusch_t
*
sched_pusch
=
&
sched_ctrl
->
sched_pusch
;
NR_sched_pusch_t
*
sched_pusch
=
&
sched_ctrl
->
sched_pusch
;
sched_pusch
->
nrOfLayers
=
sched_ctrl
->
srs_feedback
.
ul_ri
+
1
;
sched_pusch
->
nrOfLayers
=
sched_ctrl
->
srs_feedback
.
ul_ri
+
1
;
sched_pusch
->
time_domain_allocation
=
get_ul_tda
(
nrmac
,
scc
,
sched_pusch
->
slot
);
sched_pusch
->
time_domain_allocation
=
get_ul_tda
(
nrmac
,
scc
,
sched_pusch
->
frame
,
sched_pusch
->
slot
);
sched_pusch
->
tda_info
=
nr_get_pusch_tda_info
(
current_BWP
,
sched_pusch
->
time_domain_allocation
);
sched_pusch
->
tda_info
=
nr_get_pusch_tda_info
(
current_BWP
,
sched_pusch
->
time_domain_allocation
);
sched_pusch
->
dmrs_info
=
get_ul_dmrs_params
(
scc
,
sched_pusch
->
dmrs_info
=
get_ul_dmrs_params
(
scc
,
current_BWP
,
current_BWP
,
...
@@ -1821,11 +1829,11 @@ bool nr_fr1_ulsch_preprocessor(module_id_t module_id, frame_t frame, sub_frame_t
...
@@ -1821,11 +1829,11 @@ bool nr_fr1_ulsch_preprocessor(module_id_t module_id, frame_t frame, sub_frame_t
NR_UE_sched_ctrl_t
*
sched_ctrl
=
&
nr_mac
->
UE_info
.
list
[
0
]
->
UE_sched_ctrl
;
NR_UE_sched_ctrl_t
*
sched_ctrl
=
&
nr_mac
->
UE_info
.
list
[
0
]
->
UE_sched_ctrl
;
NR_UE_UL_BWP_t
*
current_BWP
=
&
nr_mac
->
UE_info
.
list
[
0
]
->
current_UL_BWP
;
NR_UE_UL_BWP_t
*
current_BWP
=
&
nr_mac
->
UE_info
.
list
[
0
]
->
current_UL_BWP
;
int
mu
=
current_BWP
->
scs
;
int
mu
=
current_BWP
->
scs
;
const
int
temp_tda
=
get_ul_tda
(
nr_mac
,
scc
,
slot
);
const
int
temp_tda
=
get_ul_tda
(
nr_mac
,
scc
,
frame
,
slot
);
int
K2
=
get_K2
(
current_BWP
->
tdaList
,
temp_tda
,
mu
);
int
K2
=
get_K2
(
current_BWP
->
tdaList
,
temp_tda
,
mu
);
const
int
sched_frame
=
(
frame
+
(
slot
+
K2
>=
nr_slots_per_frame
[
mu
]))
&
1023
;
const
int
sched_frame
=
(
frame
+
(
slot
+
K2
>=
nr_slots_per_frame
[
mu
]))
&
1023
;
const
int
sched_slot
=
(
slot
+
K2
)
%
nr_slots_per_frame
[
mu
];
const
int
sched_slot
=
(
slot
+
K2
)
%
nr_slots_per_frame
[
mu
];
const
int
tda
=
get_ul_tda
(
nr_mac
,
scc
,
sched_slot
);
const
int
tda
=
get_ul_tda
(
nr_mac
,
scc
,
sched_
frame
,
sched_
slot
);
if
(
tda
<
0
)
if
(
tda
<
0
)
return
false
;
return
false
;
DevAssert
(
K2
==
get_K2
(
current_BWP
->
tdaList
,
tda
,
mu
));
DevAssert
(
K2
==
get_K2
(
current_BWP
->
tdaList
,
tda
,
mu
));
...
@@ -1833,14 +1841,6 @@ bool nr_fr1_ulsch_preprocessor(module_id_t module_id, frame_t frame, sub_frame_t
...
@@ -1833,14 +1841,6 @@ bool nr_fr1_ulsch_preprocessor(module_id_t module_id, frame_t frame, sub_frame_t
if
(
!
is_xlsch_in_slot
(
nr_mac
->
ulsch_slot_bitmap
[
sched_slot
/
64
],
sched_slot
))
if
(
!
is_xlsch_in_slot
(
nr_mac
->
ulsch_slot_bitmap
[
sched_slot
/
64
],
sched_slot
))
return
false
;
return
false
;
// Avoid slots with the SRS
UE_iterator
(
nr_mac
->
UE_info
.
list
,
UE
)
{
NR_sched_srs_t
sched_srs
=
UE
->
UE_sched_ctrl
.
sched_srs
;
if
(
sched_srs
.
srs_scheduled
&&
sched_srs
.
frame
==
sched_frame
&&
sched_srs
.
slot
==
sched_slot
)
{
return
false
;
}
}
sched_ctrl
->
sched_pusch
.
slot
=
sched_slot
;
sched_ctrl
->
sched_pusch
.
slot
=
sched_slot
;
sched_ctrl
->
sched_pusch
.
frame
=
sched_frame
;
sched_ctrl
->
sched_pusch
.
frame
=
sched_frame
;
UE_iterator
(
nr_mac
->
UE_info
.
list
,
UE2
)
{
UE_iterator
(
nr_mac
->
UE_info
.
list
,
UE2
)
{
...
...
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
fca07aae
...
@@ -475,7 +475,7 @@ void set_sched_pucch_list(NR_UE_sched_ctrl_t *sched_ctrl,
...
@@ -475,7 +475,7 @@ void set_sched_pucch_list(NR_UE_sched_ctrl_t *sched_ctrl,
const
NR_ServingCellConfigCommon_t
*
scc
);
const
NR_ServingCellConfigCommon_t
*
scc
);
const
int
get_dl_tda
(
const
gNB_MAC_INST
*
nrmac
,
const
NR_ServingCellConfigCommon_t
*
scc
,
int
slot
);
const
int
get_dl_tda
(
const
gNB_MAC_INST
*
nrmac
,
const
NR_ServingCellConfigCommon_t
*
scc
,
int
slot
);
const
int
get_ul_tda
(
const
gNB_MAC_INST
*
nrmac
,
const
NR_ServingCellConfigCommon_t
*
scc
,
int
slot
);
const
int
get_ul_tda
(
gNB_MAC_INST
*
nrmac
,
const
NR_ServingCellConfigCommon_t
*
scc
,
int
frame
,
int
slot
);
int
get_cce_index
(
const
gNB_MAC_INST
*
nrmac
,
int
get_cce_index
(
const
gNB_MAC_INST
*
nrmac
,
const
int
CC_id
,
const
int
CC_id
,
...
...
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
fca07aae
...
@@ -748,7 +748,7 @@ void fill_initial_SpCellConfig(int uid,
...
@@ -748,7 +748,7 @@ void fill_initial_SpCellConfig(int uid,
// We are using do_srs = 0 here because the periodic SRS will only be enabled in update_cellGroupConfig() if do_srs == 1
// We are using do_srs = 0 here because the periodic SRS will only be enabled in update_cellGroupConfig() if do_srs == 1
initialUplinkBWP
->
srs_Config
=
calloc
(
1
,
sizeof
(
*
initialUplinkBWP
->
srs_Config
));
initialUplinkBWP
->
srs_Config
=
calloc
(
1
,
sizeof
(
*
initialUplinkBWP
->
srs_Config
));
config_srs
(
initialUplinkBWP
->
srs_Config
,
NULL
,
curr_bwp
,
uid
,
0
,
maxMIMO_Layers
,
0
);
config_srs
(
scc
,
initialUplinkBWP
->
srs_Config
,
NULL
,
curr_bwp
,
uid
,
0
,
maxMIMO_Layers
,
0
);
scheduling_request_config
(
scc
,
pucch_Config
);
scheduling_request_config
(
scc
,
pucch_Config
);
...
@@ -1113,7 +1113,8 @@ void update_cellGroupConfig(NR_CellGroupConfig_t *cellGroupConfig,
...
@@ -1113,7 +1113,8 @@ void update_cellGroupConfig(NR_CellGroupConfig_t *cellGroupConfig,
if
(
!
uplinkConfig
->
initialUplinkBWP
->
srs_Config
)
{
if
(
!
uplinkConfig
->
initialUplinkBWP
->
srs_Config
)
{
uplinkConfig
->
initialUplinkBWP
->
srs_Config
=
calloc
(
1
,
sizeof
(
*
uplinkConfig
->
initialUplinkBWP
->
srs_Config
));
uplinkConfig
->
initialUplinkBWP
->
srs_Config
=
calloc
(
1
,
sizeof
(
*
uplinkConfig
->
initialUplinkBWP
->
srs_Config
));
}
}
config_srs
(
uplinkConfig
->
initialUplinkBWP
->
srs_Config
,
config_srs
(
scc
,
SpCellConfig
->
spCellConfigDedicated
->
uplinkConfig
->
initialUplinkBWP
->
srs_Config
,
uecap
,
uecap
,
curr_bwp
,
curr_bwp
,
uid
,
uid
,
...
@@ -1146,7 +1147,8 @@ void update_cellGroupConfig(NR_CellGroupConfig_t *cellGroupConfig,
...
@@ -1146,7 +1147,8 @@ void update_cellGroupConfig(NR_CellGroupConfig_t *cellGroupConfig,
}
}
*
pusch_Config
->
maxRank
=
ul_max_layers
;
*
pusch_Config
->
maxRank
=
ul_max_layers
;
}
}
config_srs
(
ul_bwp
->
bwp_Dedicated
->
srs_Config
,
config_srs
(
scc
,
ul_bwp
->
bwp_Dedicated
->
srs_Config
,
uecap
,
uecap
,
bwp_size
,
bwp_size
,
uid
,
uid
,
...
...
openair2/RRC/NR/nr_rrc_config.c
View file @
fca07aae
This diff is collapsed.
Click to expand it.
openair2/RRC/NR/nr_rrc_config.h
View file @
fca07aae
...
@@ -79,7 +79,8 @@ void config_csirs(const NR_ServingCellConfigCommon_t *servingcellconfigcommon,
...
@@ -79,7 +79,8 @@ void config_csirs(const NR_ServingCellConfigCommon_t *servingcellconfigcommon,
int
id
);
int
id
);
void
config_csiim
(
int
do_csirs
,
int
dl_antenna_ports
,
int
curr_bwp
,
void
config_csiim
(
int
do_csirs
,
int
dl_antenna_ports
,
int
curr_bwp
,
NR_CSI_MeasConfig_t
*
csi_MeasConfig
,
int
id
);
NR_CSI_MeasConfig_t
*
csi_MeasConfig
,
int
id
);
void
config_srs
(
NR_SetupRelease_SRS_Config_t
*
setup_release_srs_Config
,
void
config_srs
(
const
NR_ServingCellConfigCommon_t
*
scc
,
NR_SetupRelease_SRS_Config_t
*
setup_release_srs_Config
,
const
NR_UE_NR_Capability_t
*
uecap
,
const
NR_UE_NR_Capability_t
*
uecap
,
const
int
curr_bwp
,
const
int
curr_bwp
,
const
int
uid
,
const
int
uid
,
...
...
openair2/RRC/NR/rrc_gNB_reconfig.c
View file @
fca07aae
...
@@ -247,7 +247,7 @@ void fill_default_secondaryCellGroup(NR_ServingCellConfigCommon_t *servingcellco
...
@@ -247,7 +247,7 @@ void fill_default_secondaryCellGroup(NR_ServingCellConfigCommon_t *servingcellco
int
curr_bwp
=
NRRIV2BW
(
servingcellconfigcommon
->
downlinkConfigCommon
->
initialDownlinkBWP
->
genericParameters
.
locationAndBandwidth
,
MAX_BWP_SIZE
);
int
curr_bwp
=
NRRIV2BW
(
servingcellconfigcommon
->
downlinkConfigCommon
->
initialDownlinkBWP
->
genericParameters
.
locationAndBandwidth
,
MAX_BWP_SIZE
);
initialUplinkBWP
->
srs_Config
=
calloc
(
1
,
sizeof
(
*
initialUplinkBWP
->
srs_Config
));
initialUplinkBWP
->
srs_Config
=
calloc
(
1
,
sizeof
(
*
initialUplinkBWP
->
srs_Config
));
config_srs
(
initialUplinkBWP
->
srs_Config
,
NULL
,
curr_bwp
,
uid
,
0
,
maxMIMO_Layers
,
configuration
->
do_SRS
);
config_srs
(
servingcellconfigcommon
,
initialUplinkBWP
->
srs_Config
,
NULL
,
curr_bwp
,
uid
,
0
,
maxMIMO_Layers
,
configuration
->
do_SRS
);
// Downlink BWPs
// Downlink BWPs
int
n_dl_bwp
=
1
;
int
n_dl_bwp
=
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