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
fd67b1bb
Commit
fd67b1bb
authored
Oct 17, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove verbose logs
parent
1c7795d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+14
-0
openair2/LAYER2/MAC/eNB_scheduler.c
openair2/LAYER2/MAC/eNB_scheduler.c
+6
-0
No files found.
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
fd67b1bb
...
...
@@ -2018,7 +2018,9 @@ void process_HARQ_feedback(uint8_t UE_id,
ack0
=
phy_vars_eNB
->
ulsch_eNB
[(
uint8_t
)
UE_id
]
->
harq_processes
[
harq_pid
]
->
o_ACK
[
0
];
else
ack0
=
pucch_payload
[
0
];
#if MEGALOG
printf
(
"ACKNACK **** fr/subfr %d/%d pCC %d ack %d
\n
"
,
frame
,
subframe
,
phy_vars_eNB
->
CC_id
,
ack0
);
#endif
}
/* is there an ACK/NACK on the secondary CC? */
if
(
dlsch
->
dlsch_s
[
0
][
0
]
->
subframe_tx
[
subframe_m4
]
>
0
)
{
...
...
@@ -2029,7 +2031,9 @@ printf("ACKNACK **** fr/subfr %d/%d pCC %d ack %d\n", frame, subframe, phy_vars_
ack1
=
phy_vars_eNB
->
ulsch_eNB
[(
uint8_t
)
UE_id
]
->
harq_processes
[
harq_pid
]
->
o_ACK
[
i
];
else
ack1
=
pucch_payload
[
1
];
/* this is 1, not i */
#if MEGALOG
printf
(
"ACKNACK **** fr/subfr %d/%d sCC %d ack %d
\n
"
,
frame
,
subframe
,
phy_vars_eNB
->
sCC_id
[
UE_id
][
0
],
ack1
);
#endif
}
/* process ACK/NACK for primary CC */
if
(
pcarrier
)
{
...
...
@@ -2268,7 +2272,9 @@ if (harq_pid == 8) *n1_pucch1 = -1; else {
*
n1_pucch1
=
phy_vars_eNB
->
pucch_config_dedicated
[
UE_id
].
n1PUCCH_AN_CS_list
[
dlsch0_harq
->
TPC
][
0
];
}
*
n1_pucch1
=
31
;
#if MEGALOG
printf
(
"n1_pucch0 %d n1_pucch1 %d
\n
"
,
*
n1_pucch0
,
*
n1_pucch1
);
#endif
}
}
...
...
@@ -2774,9 +2780,11 @@ void pucch_procedures(const unsigned char sched_subframe,PHY_VARS_eNB *phy_vars_
subframe
);
#endif
}
// abstraction flag
#if MEGALOG
printf
(
"NO CC SR f/sf %d/%d: do_SR %d/pl %d (n1 SR %d/noSR %d) m %d pucch payload %d format %d (1a %d 1b %d) (tb1 %d 2 %d)
\n
"
,
frame
,
subframe
,
do_SR
,
SR_payload
,
phy_vars_eNB
->
scheduling_request_config
[
UE_id
].
sr_PUCCH_ResourceIndex
,
n1_pucch0
,
metric0
,
pucch_payload0
[
0
],
format
,
pucch_format1a
,
pucch_format1b
,
phy_vars_eNB
->
dlsch_eNB
[
UE_id
][
0
]
->
subframe_tx
[
sfm4
],
phy_vars_eNB
->
dlsch_eNB
[
UE_id
][
1
]
->
subframe_tx
[
sfm4
]);
#endif
}
// active_SCCs=0
#ifdef Rel10
else
if
((
phy_vars_eNB
->
n_configured_SCCs
[
UE_id
]
==
1
)
&&
...
...
@@ -2941,8 +2949,10 @@ printf("pucch detect on pucch %d payload %d %d (metric %d/%d)\n", metric0 > metr
frame
,
subframe
,
PUCCH1b_THRES
);
#if MEGALOG
printf
(
"SR: do_SR %d (n1 %d/%d/%d) m0/m1/m2 %d/%d/%d p0 %d%d cs0 %d cs1 %d
\n
"
,
do_SR
,
phy_vars_eNB
->
scheduling_request_config
[
UE_id
].
sr_PUCCH_ResourceIndex
,
n1_pucch0
,
n1_pucch1
,
metric0
,
metric1
,
metric2
,
pucch_payload0
[
0
],
pucch_payload0
[
1
],
cs0
,
cs1
);
#endif
if
(
do_SR
==
1
&&
metric0
>
metric1
&&
metric0
>
metric2
)
{
SR_payload
=
1
;
}
else
if
(
metric1
>
metric2
)
{
...
...
@@ -3479,10 +3489,12 @@ printf("PHY RX f/sf %d/%d sched_sf %d\n", frame, subframe, sched_subframe);
#endif
phy_vars_eNB
->
ulsch_eNB
[
i
]
->
harq_processes
[
harq_pid
]
->
o_ACK
[
0
]
=
0
;
phy_vars_eNB
->
ulsch_eNB
[
i
]
->
harq_processes
[
harq_pid
]
->
o_ACK
[
1
]
=
0
;
#if MEGALOG
if
(
phy_vars_eNB
->
ulsch_eNB
[
i
]
->
harq_processes
[
harq_pid
]
->
O_ACK
)
printf
(
"pusch f/sf %d/%d harq_pid %d ulsch %p O_ACK %d (%d %d)
\n
"
,
frame
,
subframe
,
harq_pid
,
phy_vars_eNB
->
ulsch_eNB
[
i
],
phy_vars_eNB
->
ulsch_eNB
[
i
]
->
harq_processes
[
harq_pid
]
->
O_ACK
,
phy_vars_eNB
->
dlsch_eNB
[
i
][
0
]
->
subframe_tx
[
sf
]
>
0
,
phy_vars_eNB
->
n_configured_SCCs
[
i
]
==
1
&&
phy_vars_eNB
->
dlsch_eNB
[
i
][
0
]
->
dlsch_s
[
0
][
0
]
->
subframe_tx
[
sf
]
>
0
);
#endif
}
LOG_D
(
PHY
,
...
...
@@ -3565,8 +3577,10 @@ printf("pusch f/sf %d/%d harq_pid %d ulsch %p O_ACK %d (%d %d)\n", frame, subfra
ret
);
#if MEGALOG
if
(
phy_vars_eNB
->
ulsch_eNB
[
i
]
->
harq_processes
[
harq_pid
]
->
O_ACK
)
printf
(
"o_ACK %d %d
\n
"
,
phy_vars_eNB
->
ulsch_eNB
[
i
]
->
harq_processes
[
harq_pid
]
->
o_ACK
[
0
],
phy_vars_eNB
->
ulsch_eNB
[
i
]
->
harq_processes
[
harq_pid
]
->
o_ACK
[
1
]);
#endif
//compute the expected ULSCH RX power (for the stats)
phy_vars_eNB
->
ulsch_eNB
[(
uint32_t
)
i
]
->
harq_processes
[
harq_pid
]
->
delta_TF
=
get_hundred_times_delta_IF_eNB
(
phy_vars_eNB
,
i
,
harq_pid
,
0
);
// 0 means bw_factor is not considered
...
...
openair2/LAYER2/MAC/eNB_scheduler.c
View file @
fd67b1bb
...
...
@@ -784,6 +784,7 @@ static void fapi_schedule_retransmission_ue(int module_id, int CC_id, int frame,
/* TODO: handle the case where CC_id != servCellIndex */
if
(
CC_id
!=
d
->
servCellIndex
)
{
printf
(
"%s:%d:%s: TODO
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
);
abort
();
}
#if MEGALOG
static
char
*
X
[]
=
{
"ONE"
,
"ONE_A"
,
"ONE_B"
,
"ONE_C"
,
"ONE_D"
,
"TWO"
,
"TWO_A"
,
"TWO_B"
};
static
char
*
Y
[]
=
{
"VRB_DISTRIBUTED"
,
"VRB_LOCALIZED"
};
printf
(
"RETR fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d nr_of_tbs %d tbsSize[0] %d mcs[0] %d (latest %d) ndi[0] %d rv[0] %d cceIndex %d aggrLevel %d precodingInfo %d format %s tpc %d harqProcess %d vrbFormat %s tbSwap %d spsRelease %d preambleIndex %d prachMaskIndex %d nGap %d dlPowerOffset %d pdcchPowerOffset %d cifPresent %d
\n
"
,
...
...
@@ -815,6 +816,7 @@ printf("RETR fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d n
d
->
dci
.
dlPowerOffset
,
d
->
dci
.
pdcchPowerOffset
,
d
->
dci
.
cifPresent
);
#endif
/* TODO: deal with MCS 29-31 in the PHY layer
* in the meantime, let's replace with the last used MCS
*/
...
...
@@ -889,6 +891,7 @@ static void fapi_schedule_ue(int module_id, int CC_id, int frame, int subframe,
if
(
d
->
nr_rlcPDU_List
[
0
]
!=
1
)
{
printf
(
"%s:%d:%s: TODO
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
);
return
;
}
#if MEGALOG
static
char
*
X
[]
=
{
"ONE"
,
"ONE_A"
,
"ONE_B"
,
"ONE_C"
,
"ONE_D"
,
"TWO"
,
"TWO_A"
,
"TWO_B"
};
static
char
*
Y
[]
=
{
"VRB_DISTRIBUTED"
,
"VRB_LOCALIZED"
};
printf
(
"fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d nr_of_tbs %d tbsSize[0] %d mcs[0] %d ndi[0] %d rv[0] %d cceIndex %d aggrLevel %d precodingInfo %d format %s tpc %d harqProcess %d vrbFormat %s tbSwap %d spsRelease %d preambleIndex %d prachMaskIndex %d nGap %d dlPowerOffset %d pdcchPowerOffset %d cifPresent %d
\n
"
,
...
...
@@ -919,6 +922,7 @@ printf("fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d nr_of_
d
->
dci
.
dlPowerOffset
,
d
->
dci
.
pdcchPowerOffset
,
d
->
dci
.
cifPresent
);
#endif
/* generate DCI */
if
(
dci_pdu
->
Num_common_dci
>=
NUM_DCI_MAX
)
{
printf
(
"%s:%d:%s: too much DCIs
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
);
abort
();
}
...
...
@@ -1067,9 +1071,11 @@ abort();
T
(
T_ENB_MAC_UE_DL_PDU_WITH_DATA
,
T_INT
(
module_id
),
T_INT
(
CC_id
),
T_INT
(
d
->
rnti
),
T_INT
(
frame
),
T_INT
(
subframe
),
T_INT
(
d
->
dci
.
harqProcess
),
T_BUFFER
(
UE_list
->
DLSCH_pdu
[
CC_id
][
0
][
UE_id
].
payload
[
0
],
tbs
));
#if MEGALOG
printf
(
"BLOCK (%d)"
,
tbs
);
for
(
i
=
0
;
i
<
tbs
;
i
++
)
printf
(
" %2.2x"
,
(
unsigned
char
)
UE_list
->
DLSCH_pdu
[
CC_id
][
0
][
UE_id
].
payload
[
0
][
i
]);
printf
(
"
\n
"
);
#endif
add_ue_dlsch_info
(
module_id
,
CC_id
,
UE_id
,
...
...
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