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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG-RAN
Commits
7beb8842
Commit
7beb8842
authored
2 months ago
by
Teodora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use [HW] logging instead of [PHY] or [NR_PHY]
parent
a4479a2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
19 deletions
+19
-19
radio/fhi_72/oaioran.c
radio/fhi_72/oaioran.c
+12
-12
radio/fhi_72/oran-init.c
radio/fhi_72/oran-init.c
+1
-1
radio/fhi_72/oran_isolate.c
radio/fhi_72/oran_isolate.c
+6
-6
No files found.
radio/fhi_72/oaioran.c
View file @
7beb8842
...
...
@@ -90,7 +90,7 @@ void oai_xran_fh_rx_callback(void *pCallbackTag, xran_status_t status)
rx_sym
=
callback_tag
->
symbol
&
0xFF
;
uint32_t
ru_id
=
callback_tag
->
oXuId
;
LOG_D
(
NR_PHY
,
LOG_D
(
HW
,
"rx_callback frame %d, subframe %d, slot %d, second %lld, rx_sym %d ru_id %d
\n
"
,
frame
,
subframe
,
...
...
@@ -127,7 +127,7 @@ void oai_xran_fh_rx_callback(void *pCallbackTag, xran_status_t status)
rx_RU
[
ru_id
][
slot2
]
=
1
;
if
(
last_frame
>
0
&&
frame
>
0
&&
((
slot2
>
0
&&
last_frame
!=
frame
)
||
(
slot2
==
0
&&
last_frame
!=
((
1024
+
frame
-
1
)
&
1023
))))
LOG_E
(
PHY
,
"Jump in frame counter last_frame %d => %d, slot %d
\n
"
,
last_frame
,
frame
,
slot2
);
LOG_E
(
HW
,
"Jump in frame counter last_frame %d => %d, slot %d
\n
"
,
last_frame
,
frame
,
slot2
);
for
(
int
i
=
0
;
i
<
num_ports
;
i
++
)
{
if
(
rx_RU
[
i
][
slot2
]
==
0
)
return
;
...
...
@@ -142,16 +142,16 @@ void oai_xran_fh_rx_callback(void *pCallbackTag, xran_status_t status)
info
->
tti
=
tti
;
info
->
sl
=
slot2
;
info
->
f
=
frame
;
LOG_D
(
PHY
,
"Push %d.%d.%d (slot %d, subframe %d,last_slot %d)
\n
"
,
frame
,
info
->
sl
,
slot
,
ru_id
,
subframe
,
last_slot
);
LOG_D
(
HW
,
"Push %d.%d.%d (slot %d, subframe %d,last_slot %d)
\n
"
,
frame
,
info
->
sl
,
slot
,
ru_id
,
subframe
,
last_slot
);
pushNotifiedFIFO
(
&
oran_sync_fifo
,
req
);
#else
LOG_D
(
PHY
,
"Writing %d.%d.%d (slot %d, subframe %d,last_slot %d)
\n
"
,
frame
,
slot2
,
ru_id
,
slot
,
subframe
,
last_slot
);
LOG_D
(
HW
,
"Writing %d.%d.%d (slot %d, subframe %d,last_slot %d)
\n
"
,
frame
,
slot2
,
ru_id
,
slot
,
subframe
,
last_slot
);
oran_sync_info
.
tti
=
tti
;
oran_sync_info
.
sl
=
slot2
;
oran_sync_info
.
f
=
frame
;
#endif
}
else
LOG_E
(
PHY
,
"Cannot Push %d.%d.%d (slot %d, subframe %d,last_slot %d)
\n
"
,
frame
,
slot2
,
ru_id
,
slot
,
subframe
,
last_slot
);
LOG_E
(
HW
,
"Cannot Push %d.%d.%d (slot %d, subframe %d,last_slot %d)
\n
"
,
frame
,
slot2
,
ru_id
,
slot
,
subframe
,
last_slot
);
last_slot
=
slot2
;
last_frame
=
frame
;
}
// rx_sym == 7
...
...
@@ -289,7 +289,7 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
while
((
f
=
pollNotifiedFIFO
(
&
oran_sync_fifo
))
!=
NULL
)
{
oran_sync_info_t
*
old_info
=
NotifiedFifoData
(
res
);
oran_sync_info_t
*
new_info
=
NotifiedFifoData
(
f
);
LOG_E
(
PHY
,
"Detected double sync message %d.%d => %d.%d
\n
"
,
old_info
->
f
,
old_info
->
sl
,
new_info
->
f
,
new_info
->
sl
);
LOG_E
(
HW
,
"Detected double sync message %d.%d => %d.%d
\n
"
,
old_info
->
f
,
old_info
->
sl
,
new_info
->
f
,
new_info
->
sl
);
delNotifiedFIFO_elt
(
res
);
res
=
f
;
}
...
...
@@ -305,14 +305,14 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
uint32_t
tti_in
=
oran_sync_info
.
tti
;
static
int
last_slot
=
-
1
;
LOG_D
(
PHY
,
"oran slot %d, last_slot %d
\n
"
,
*
slot
,
last_slot
);
LOG_D
(
HW
,
"oran slot %d, last_slot %d
\n
"
,
*
slot
,
last_slot
);
int
cnt
=
0
;
// while (*slot == last_slot) {
while
(
tti_in
==
oran_sync_info
.
tti
)
{
//*slot = oran_sync_info.sl;
cnt
++
;
}
LOG_D
(
PHY
,
"cnt %d, Reading %d.%d
\n
"
,
cnt
,
*
frame
,
*
slot
);
LOG_D
(
HW
,
"cnt %d, Reading %d.%d
\n
"
,
cnt
,
*
frame
,
*
slot
);
last_slot
=
*
slot
;
#endif
// return(0);
...
...
@@ -380,9 +380,9 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
int16_t
payload_len
=
0
;
LOG_D
(
PHY
,
"pRbMap->nPrbElm %d
\n
"
,
pRbMap
->
nPrbElm
);
LOG_D
(
HW
,
"pRbMap->nPrbElm %d
\n
"
,
pRbMap
->
nPrbElm
);
for
(
idxElm
=
0
;
idxElm
<
pRbMap
->
nPrbElm
;
idxElm
++
)
{
LOG_D
(
PHY
,
LOG_D
(
HW
,
"prbMap[%d] : PRBstart %d nPRBs %d
\n
"
,
idxElm
,
pRbMap
->
prbMap
[
idxElm
].
nRBStart
,
...
...
@@ -436,7 +436,7 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
}
// vv_inf
if
((
*
frame
&
0x7f
)
==
0
&&
*
slot
==
0
&&
xran_get_common_counters
(
gxran_handle
,
&
x_counters
[
0
])
==
XRAN_STATUS_SUCCESS
)
{
for
(
int
o_xu_id
=
0
;
o_xu_id
<
fh_init
->
xran_ports
;
o_xu_id
++
)
{
LOG_I
(
NR_PHY
,
LOG_I
(
HW
,
"[%s%d][rx %7ld pps %7ld kbps %7ld][tx %7ld pps %7ld kbps %7ld][Total Msgs_Rcvd %ld]
\n
"
,
"o-du "
,
o_xu_id
,
...
...
@@ -448,7 +448,7 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
x_counters
[
o_xu_id
].
tx_bytes_per_sec
*
8
/
1000L
,
x_counters
[
o_xu_id
].
Total_msgs_rcvd
);
for
(
int
rxant
=
0
;
rxant
<
ru
->
nb_rx
/
fh_init
->
xran_ports
;
rxant
++
)
LOG_I
(
NR_PHY
,
LOG_I
(
HW
,
"[%s%d][pusch%d %7ld prach%d %7ld]
\n
"
,
"o_du"
,
o_xu_id
,
...
...
This diff is collapsed.
Click to expand it.
radio/fhi_72/oran-init.c
View file @
7beb8842
...
...
@@ -443,7 +443,7 @@ int *oai_oran_initialize(struct xran_fh_init *xran_fh_init, struct xran_fh_confi
pi
->
prach_tag
=
tag
;
pi
->
pusch_tag
=
tag
;
#ifdef E_RELEASE
LOG_W
(
PHY
,
"Please be aware that E release support will be removed in the future. Consider switching to F release.
\n
"
);
LOG_W
(
HW
,
"Please be aware that E release support will be removed in the future. Consider switching to F release.
\n
"
);
oran_allocate_buffers
(
gxran_handle
,
o_xu_id
,
1
,
pi
,
&
xran_fh_config
[
o_xu_id
]);
#elif defined F_RELEASE
oran_allocate_buffers
(
gxran_handle
,
o_xu_id
,
1
,
pi
,
xran_fh_init
->
mtu
,
&
xran_fh_config
[
o_xu_id
]);
...
...
This diff is collapsed.
Click to expand it.
radio/fhi_72/oran_isolate.c
View file @
7beb8842
...
...
@@ -214,11 +214,11 @@ void oran_fh_if4p5_south_in(RU_t *ru, int *frame, int *slot)
RU_proc_t
*
proc
=
&
ru
->
proc
;
int
f
,
sl
;
LOG_D
(
PHY
,
"Read rxdataF %p,%p
\n
"
,
ru_info
.
rxdataF
[
0
],
ru_info
.
rxdataF
[
1
]);
LOG_D
(
HW
,
"Read rxdataF %p,%p
\n
"
,
ru_info
.
rxdataF
[
0
],
ru_info
.
rxdataF
[
1
]);
start_meas
(
&
ru
->
rx_fhaul
);
int
ret
=
xran_fh_rx_read_slot
(
&
ru_info
,
&
f
,
&
sl
);
stop_meas
(
&
ru
->
rx_fhaul
);
LOG_D
(
PHY
,
"Read %d.%d rxdataF %p,%p
\n
"
,
f
,
sl
,
ru_info
.
rxdataF
[
0
],
ru_info
.
rxdataF
[
1
]);
LOG_D
(
HW
,
"Read %d.%d rxdataF %p,%p
\n
"
,
f
,
sl
,
ru_info
.
rxdataF
[
0
],
ru_info
.
rxdataF
[
1
]);
if
(
ret
!=
0
)
{
printf
(
"ORAN: %d.%d ORAN_fh_if4p5_south_in ERROR in RX function
\n
"
,
f
,
sl
);
}
...
...
@@ -231,7 +231,7 @@ void oran_fh_if4p5_south_in(RU_t *ru, int *frame, int *slot)
if
(
proc
->
first_rx
==
0
)
{
if
(
proc
->
tti_rx
!=
*
slot
)
{
LOG_E
(
PHY
,
LOG_E
(
HW
,
"Received Time doesn't correspond to the time we think it is (slot mismatch, received %d.%d, expected %d.%d)
\n
"
,
proc
->
frame_rx
,
proc
->
tti_rx
,
...
...
@@ -241,7 +241,7 @@ void oran_fh_if4p5_south_in(RU_t *ru, int *frame, int *slot)
}
if
(
proc
->
frame_rx
!=
*
frame
)
{
LOG_E
(
PHY
,
LOG_E
(
HW
,
"Received Time doesn't correspond to the time we think it is (frame mismatch, %d.%d , expected %d.%d)
\n
"
,
proc
->
frame_rx
,
proc
->
tti_rx
,
...
...
@@ -251,10 +251,10 @@ void oran_fh_if4p5_south_in(RU_t *ru, int *frame, int *slot)
}
}
else
{
proc
->
first_rx
=
0
;
LOG_I
(
PHY
,
"before adjusting, OAI: frame=%d slot=%d, XRAN: frame=%d slot=%d
\n
"
,
*
frame
,
*
slot
,
proc
->
frame_rx
,
proc
->
tti_rx
);
LOG_I
(
HW
,
"before adjusting, OAI: frame=%d slot=%d, XRAN: frame=%d slot=%d
\n
"
,
*
frame
,
*
slot
,
proc
->
frame_rx
,
proc
->
tti_rx
);
*
frame
=
proc
->
frame_rx
;
*
slot
=
proc
->
tti_rx
;
LOG_I
(
PHY
,
"After adjusting, OAI: frame=%d slot=%d, XRAN: frame=%d slot=%d
\n
"
,
*
frame
,
*
slot
,
proc
->
frame_rx
,
proc
->
tti_rx
);
LOG_I
(
HW
,
"After adjusting, OAI: frame=%d slot=%d, XRAN: frame=%d slot=%d
\n
"
,
*
frame
,
*
slot
,
proc
->
frame_rx
,
proc
->
tti_rx
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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