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
c0290845
Commit
c0290845
authored
Apr 26, 2024
by
Laurent THOMAS
Committed by
Robert Schmidt
May 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix order error in ru.common.rxdataF filling lock, use consistently #define for buffer size
parent
bb66056b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
executables/nr-ru.c
executables/nr-ru.c
+5
-6
openair1/PHY/INIT/nr_init_ru.c
openair1/PHY/INIT/nr_init_ru.c
+1
-1
No files found.
executables/nr-ru.c
View file @
c0290845
...
...
@@ -1258,13 +1258,12 @@ void *ru_thread( void *param ) {
// We should make a VNF main loop with proper tasks calls in case of VNF
slot_start
=
timespec_add
(
slot_start
,
slot_duration
);
struct
timespec
curr_time
;
clock_gettime
(
CLOCK_MONOTONIC
,
&
curr_time
);
clock_gettime
(
CLOCK_MONOTONIC
,
&
curr_time
);
struct
timespec
sleep_time
;
if
((
slot_start
.
tv_sec
>
curr_time
.
tv_sec
)
||
(
slot_start
.
tv_sec
==
curr_time
.
tv_sec
&&
slot_start
.
tv_nsec
>
curr_time
.
tv_nsec
)){
if
((
slot_start
.
tv_sec
>
curr_time
.
tv_sec
)
||
(
slot_start
.
tv_sec
==
curr_time
.
tv_sec
&&
slot_start
.
tv_nsec
>
curr_time
.
tv_nsec
)){
sleep_time
=
timespec_sub
(
slot_start
,
curr_time
);
usleep
(
sleep_time
.
tv_nsec
*
1e-3
);
}
}
...
...
@@ -1346,10 +1345,10 @@ void *ru_thread( void *param ) {
if
(
!
res
)
break
;
}
ru
->
feprx
(
ru
,
proc
->
tti_rx
);
// set the tti that was generated to busy
LOG_D
(
NR_PHY
,
"Setting %d.%d (%d) to busy
\n
"
,
proc
->
frame_rx
,
proc
->
tti_rx
,
proc
->
tti_rx
%
RU_RX_SLOT_DEPTH
);
rx_tti_busy
[
proc
->
tti_rx
%
RU_RX_SLOT_DEPTH
]
=
true
;
ru
->
feprx
(
ru
,
proc
->
tti_rx
);
LOG_D
(
NR_PHY
,
"Setting %d.%d (%d) to busy
\n
"
,
proc
->
frame_rx
,
proc
->
tti_rx
,
proc
->
tti_rx
%
RU_RX_SLOT_DEPTH
);
clock_gettime
(
CLOCK_MONOTONIC
,
&
ru
->
rt_ru_profiling
.
return_RU_feprx
[
rt_prof_idx
]);
//LOG_M("rxdata.m","rxs",ru->common.rxdata[0],1228800,1,1);
LOG_D
(
PHY
,
"RU proc: frame_rx = %d, tti_rx = %d
\n
"
,
proc
->
frame_rx
,
proc
->
tti_rx
);
...
...
openair1/PHY/INIT/nr_init_ru.c
View file @
c0290845
...
...
@@ -98,7 +98,7 @@ int nr_phy_init_RU(RU_t *ru) {
ru
->
common
.
rxdataF
=
(
int32_t
**
)
malloc16
(
ru
->
nb_rx
*
sizeof
(
int32_t
*
)
);
for
(
i
=
0
;
i
<
ru
->
nb_rx
;
i
++
)
{
// allocate 4 slots of I/Q signal data (frequency)
ru
->
common
.
rxdataF
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
(
4
*
fp
->
symbols_per_slot
*
fp
->
ofdm_symbol_size
)
);
ru
->
common
.
rxdataF
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
**
ru
->
common
.
rxdataF
)
*
(
RU_RX_SLOT_DEPTH
*
fp
->
symbols_per_slot
*
fp
->
ofdm_symbol_size
)
);
LOG_I
(
PHY
,
"rxdataF[%d] %p for RU %d
\n
"
,
i
,
ru
->
common
.
rxdataF
[
i
],
ru
->
idx
);
}
...
...
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