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
常顺宇
OpenXG-RAN
Commits
55a39eb2
Commit
55a39eb2
authored
Sep 15, 2017
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial version for testing with nFAPI interfaces. Still lots of debugging traces.
parent
d2249d5c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
293 deletions
+28
-293
openair1/PHY/LTE_TRANSPORT/dci_tools.c
openair1/PHY/LTE_TRANSPORT/dci_tools.c
+9
-1
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+4
-284
openair2/LAYER2/MAC/eNB_scheduler_RA.c
openair2/LAYER2/MAC/eNB_scheduler_RA.c
+1
-2
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+13
-6
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
+1
-0
No files found.
openair1/PHY/LTE_TRANSPORT/dci_tools.c
View file @
55a39eb2
...
...
@@ -1224,7 +1224,7 @@ int fill_dci_and_dlsch(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC_t *dci_
}
LOG_I
(
PHY
,
"DCI: Set harq_ids[%d] to %d
\n
"
,
subframe
,
rel8
->
harq_process
);
LOG_I
(
PHY
,
"DCI: Set harq_ids[%d] to %d
(%p)
\n
"
,
subframe
,
rel8
->
harq_process
,
dlsch0
);
dlsch0
->
harq_ids
[
subframe
]
=
rel8
->
harq_process
;
...
...
@@ -2275,6 +2275,7 @@ void fill_dci0(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC_t *dci_alloc,
((
DCI0_1_5MHz_TDD_1_6_t
*
)
dci_pdu
)
->
rballoc
=
rballoc
;
// hopping = ((DCI0_1_5MHz_TDD_1_6_t *)dci_pdu)->hopping;
((
DCI0_1_5MHz_TDD_1_6_t
*
)
dci_pdu
)
->
type
=
0
;
dci_alloc
->
dci_length
=
sizeof_DCI0_1_5MHz_TDD_1_6_t
;
}
else
{
((
DCI0_1_5MHz_FDD_t
*
)
dci_pdu
)
->
cqi_req
=
cqi_req
;
((
DCI0_1_5MHz_FDD_t
*
)
dci_pdu
)
->
cshift
=
cshift
;
...
...
@@ -2284,6 +2285,7 @@ void fill_dci0(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC_t *dci_alloc,
((
DCI0_1_5MHz_FDD_t
*
)
dci_pdu
)
->
rballoc
=
rballoc
;
// hopping = ((DCI0_1_5MHz_FDD_t *)dci_pdu)->hopping;
((
DCI0_1_5MHz_FDD_t
*
)
dci_pdu
)
->
type
=
0
;
dci_alloc
->
dci_length
=
sizeof_DCI0_1_5MHz_FDD_t
;
}
break
;
...
...
@@ -2299,6 +2301,7 @@ void fill_dci0(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC_t *dci_alloc,
((
DCI0_5MHz_TDD_1_6_t
*
)
dci_pdu
)
->
rballoc
=
rballoc
;
// hopping = ((DCI0_5MHz_TDD_1_6_t *)dci_pdu)->hopping;
((
DCI0_5MHz_TDD_1_6_t
*
)
dci_pdu
)
->
type
=
0
;
dci_alloc
->
dci_length
=
sizeof_DCI0_5MHz_TDD_1_6_t
;
}
else
{
((
DCI0_5MHz_FDD_t
*
)
dci_pdu
)
->
cqi_req
=
cqi_req
;
((
DCI0_5MHz_FDD_t
*
)
dci_pdu
)
->
cshift
=
cshift
;
...
...
@@ -2308,6 +2311,7 @@ void fill_dci0(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC_t *dci_alloc,
((
DCI0_5MHz_FDD_t
*
)
dci_pdu
)
->
rballoc
=
rballoc
;
// hopping = ((DCI0_5MHz_FDD_t *)dci_pdu)->hopping;
((
DCI0_5MHz_FDD_t
*
)
dci_pdu
)
->
type
=
0
;
dci_alloc
->
dci_length
=
sizeof_DCI0_5MHz_FDD_t
;
}
break
;
...
...
@@ -2323,6 +2327,7 @@ void fill_dci0(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC_t *dci_alloc,
((
DCI0_10MHz_TDD_1_6_t
*
)
dci_pdu
)
->
rballoc
=
rballoc
;
// hopping = ((DCI0_10MHz_TDD_1_6_t *)dci_pdu)->hopping;
((
DCI0_10MHz_TDD_1_6_t
*
)
dci_pdu
)
->
type
=
0
;
dci_alloc
->
dci_length
=
sizeof_DCI0_10MHz_TDD_1_6_t
;
}
else
{
((
DCI0_10MHz_FDD_t
*
)
dci_pdu
)
->
cqi_req
=
cqi_req
;
((
DCI0_10MHz_FDD_t
*
)
dci_pdu
)
->
cshift
=
cshift
;
...
...
@@ -2332,6 +2337,7 @@ void fill_dci0(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC_t *dci_alloc,
((
DCI0_10MHz_FDD_t
*
)
dci_pdu
)
->
rballoc
=
rballoc
;
// hopping = ((DCI0_10MHz_FDD_t *)dci_pdu)->hopping;
((
DCI0_10MHz_FDD_t
*
)
dci_pdu
)
->
type
=
0
;
dci_alloc
->
dci_length
=
sizeof_DCI0_10MHz_FDD_t
;
}
break
;
...
...
@@ -2347,6 +2353,7 @@ void fill_dci0(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC_t *dci_alloc,
((
DCI0_20MHz_TDD_1_6_t
*
)
dci_pdu
)
->
rballoc
=
rballoc
;
// hopping = ((DCI0_20MHz_TDD_1_6_t *)dci_pdu)->hopping;
((
DCI0_20MHz_TDD_1_6_t
*
)
dci_pdu
)
->
type
=
0
;
dci_alloc
->
dci_length
=
sizeof_DCI0_20MHz_TDD_1_6_t
;
}
else
{
((
DCI0_20MHz_FDD_t
*
)
dci_pdu
)
->
cqi_req
=
cqi_req
;
((
DCI0_20MHz_FDD_t
*
)
dci_pdu
)
->
cshift
=
cshift
;
...
...
@@ -2356,6 +2363,7 @@ void fill_dci0(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC_t *dci_alloc,
((
DCI0_20MHz_FDD_t
*
)
dci_pdu
)
->
rballoc
=
rballoc
;
// hopping = ((DCI0_20MHz_FDD_t *)dci_pdu)->hopping;
((
DCI0_20MHz_FDD_t
*
)
dci_pdu
)
->
type
=
0
;
dci_alloc
->
dci_length
=
sizeof_DCI0_20MHz_FDD_t
;
}
//printf("eNB: rb_alloc (20 MHz dci) %d\n",rballoc);
...
...
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
55a39eb2
This diff is collapsed.
Click to expand it.
openair2/LAYER2/MAC/eNB_scheduler_RA.c
View file @
55a39eb2
...
...
@@ -872,7 +872,7 @@ void generate_Msg4(module_id_t module_idP,int CC_idP,frame_t frameP,sub_frame_t
lcid
=
0
;
//
set HARQ process 0 round to 0 for this U
E
//
put HARQ process 0 round to IDL
E
if
(
cc
->
tdd_Config
)
harq_pid
=
((
frameP
*
10
)
+
subframeP
)
%
10
;
else
harq_pid
=
((
frameP
*
10
)
+
subframeP
)
&
7
;
UE_list
->
UE_sched_ctrl
[
UE_id
].
round
[
CC_idP
][
harq_pid
]
=
0
;
...
...
@@ -1010,7 +1010,6 @@ void check_Msg4_retransmission(module_id_t module_idP,int CC_idP,frame_t frameP,
// check HARQ status and retransmit if necessary
// Get candidate harq_pid from PHY
UE_id
=
find_UE_id
(
module_idP
,
RA_template
->
rnti
);
AssertFatal
(
UE_id
>=
0
,
"Can't find UE for t-crnti
\n
"
);
...
...
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
View file @
55a39eb2
...
...
@@ -648,7 +648,7 @@ schedule_ue_spec(
/* process retransmission */
if
(
round
>
0
)
{
if
(
round
!=
8
)
{
// get freq_allocation
nb_rb
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
nb_rb
[
harq_pid
];
...
...
@@ -760,6 +760,8 @@ schedule_ue_spec(
0
// number of beamforming vectors, not used here
);
LOG_I
(
MAC
,
"Filled NFAPI configuration for DCI/DLSCH %d, retransmission round %d
\n
"
,
eNB
->
pdu_index
[
CC_id
],
round
);
eNB
->
pdu_index
[
CC_id
]
++
;
program_dlsch_acknak
(
module_idP
,
CC_id
,
UE_id
,
frameP
,
subframeP
,
dl_config_pdu
->
dci_dl_pdu
.
dci_dl_pdu_rel8
.
cce_idx
);
// No TX request for retransmission (check if null request for FAPI)
...
...
@@ -1202,16 +1204,19 @@ schedule_ue_spec(
dl_config_pdu
->
dci_dl_pdu
.
dci_dl_pdu_rel8
.
redundancy_version_2
=
1
;
if
(
cc
[
CC_id
].
tdd_Config
!=
NULL
)
{
//TDD
dl_config_pdu
->
dci_dl_pdu
.
dci_dl_pdu_rel8
.
downlink_assignment_index
=
(
UE_list
->
UE_template
[
CC_id
][
UE_id
].
DAI
-
1
)
&
3
;
LOG_D
(
MAC
,
"[eNB %d]
Retransmission CC_id %d : harq_pid %d, roun
d %d, dai %d, mcs %d
\n
"
,
module_idP
,
CC_id
,
harq_pid
,
round
,
LOG_D
(
MAC
,
"[eNB %d]
Initial transmission CC_id %d : harq_pi
d %d, dai %d, mcs %d
\n
"
,
module_idP
,
CC_id
,
harq_pid
,
(
UE_list
->
UE_template
[
CC_id
][
UE_id
].
DAI
-
1
),
mcs
);
}
else
{
LOG_D
(
MAC
,
"[eNB %d]
Retransmission CC_id %d : harq_pid %d, roun
d %d, mcs %d
\n
"
,
module_idP
,
CC_id
,
harq_pid
,
round
,
mcs
);
LOG_D
(
MAC
,
"[eNB %d]
Initial transmission CC_id %d : harq_pi
d %d, mcs %d
\n
"
,
module_idP
,
CC_id
,
harq_pid
,
mcs
);
}
if
(
!
CCE_allocation_infeasible
(
module_idP
,
CC_id
,
1
,
subframeP
,
dl_config_pdu
->
dci_dl_pdu
.
dci_dl_pdu_rel8
.
aggregation_level
,
rnti
))
{
ue_sched_ctl
->
round
[
CC_id
][
harq_pid
]
=
0
;
dl_req
->
number_dci
++
;
dl_req
->
number_pdu
++
;
...
...
@@ -1256,9 +1261,11 @@ schedule_ue_spec(
&
eNB
->
pdu_index
[
CC_id
],
eNB
->
UE_list
.
DLSCH_pdu
[
CC_id
][
0
][(
unsigned
char
)
UE_id
].
payload
[
harq_pid
]);
LOG_I
(
MAC
,
"Filled NFAPI configuration for DCI/DLSCH/TXREQ %d, new SDU
\n
"
,
eNB
->
pdu_index
[
CC_id
]);
eNB
->
pdu_index
[
CC_id
]
++
;
program_dlsch_acknak
(
module_idP
,
CC_id
,
UE_id
,
frameP
,
subframeP
,
dl_config_pdu
->
dci_dl_pdu
.
dci_dl_pdu_rel8
.
cce_idx
);
}
else
{
LOG_W
(
MAC
,
"Frame %d, Subframe %d: Dropping DLSCH allocation for UE %d/%x, infeasible CCE allocations
\n
"
,
...
...
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
View file @
55a39eb2
...
...
@@ -1636,6 +1636,7 @@ int add_new_ue(module_id_t mod_idP, int cc_idP, rnti_t rntiP,int harq_pidP
for
(
j
=
0
;
j
<
8
;
j
++
)
{
UE_list
->
UE_template
[
cc_idP
][
UE_id
].
oldNDI
[
j
]
=
(
j
==
0
)
?
1
:
0
;
// 1 because first transmission is with format1A (Msg4) for harq_pid 0
UE_list
->
UE_template
[
cc_idP
][
UE_id
].
oldNDI_UL
[
j
]
=
(
j
==
harq_pidP
)
?
0
:
1
;
// 1st transmission is with Msg3;
UE_list
->
UE_sched_ctrl
[
UE_id
].
round
[
cc_idP
][
j
]
=
8
;
}
eNB_ulsch_info
[
mod_idP
][
cc_idP
][
UE_id
].
status
=
S_UL_WAITING
;
...
...
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