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
ZhouShuya
OpenXG-RAN
Commits
4fdbfc31
Commit
4fdbfc31
authored
May 16, 2018
by
Wang Tsu-Han
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding timing check for emulate-rf
parent
7e10daaf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
openair1/PHY/defs.h
openair1/PHY/defs.h
+1
-0
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+1
-0
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+8
-1
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+1
-1
No files found.
openair1/PHY/defs.h
View file @
4fdbfc31
...
@@ -463,6 +463,7 @@ typedef struct RU_proc_t_s {
...
@@ -463,6 +463,7 @@ typedef struct RU_proc_t_s {
/// pipeline ready state
/// pipeline ready state
int
ru_rx_ready
;
int
ru_rx_ready
;
int
ru_tx_ready
;
int
ru_tx_ready
;
int
emulate_rf_busy
;
}
RU_proc_t
;
}
RU_proc_t
;
/// Context data structure for eNB subframe processing
/// Context data structure for eNB subframe processing
...
...
targets/RT/USER/lte-enb.c
View file @
4fdbfc31
...
@@ -644,6 +644,7 @@ int wakeup_rxtx(PHY_VARS_eNB *eNB,RU_t *ru) {
...
@@ -644,6 +644,7 @@ int wakeup_rxtx(PHY_VARS_eNB *eNB,RU_t *ru) {
}
}
pthread_mutex_unlock
(
&
proc_rxtx0
->
mutex_rxtx
);
pthread_mutex_unlock
(
&
proc_rxtx0
->
mutex_rxtx
);
ru_proc
->
emulate_rf_busy
=
0
;
return
(
0
);
return
(
0
);
}
}
...
...
targets/RT/USER/lte-ru.c
View file @
4fdbfc31
...
@@ -122,6 +122,7 @@ extern volatile int oai_exit;
...
@@ -122,6 +122,7 @@ extern volatile int oai_exit;
extern
int
emulate_rf
;
extern
int
emulate_rf
;
extern
int
numerology
;
extern
int
numerology
;
extern
int
fepw
;
extern
int
fepw
;
extern
int
single_thread_flag
;
extern
void
phy_init_RU
(
RU_t
*
);
extern
void
phy_init_RU
(
RU_t
*
);
...
@@ -703,6 +704,11 @@ static void* emulatedRF_thread(void* param) {
...
@@ -703,6 +704,11 @@ static void* emulatedRF_thread(void* param) {
wait_sync
(
"emulatedRF_thread"
);
wait_sync
(
"emulatedRF_thread"
);
while
(
!
oai_exit
){
while
(
!
oai_exit
){
nanosleep
(
&
req
,
(
struct
timespec
*
)
NULL
);
nanosleep
(
&
req
,
(
struct
timespec
*
)
NULL
);
if
(
proc
->
emulate_rf_busy
)
{
LOG_E
(
PHY
,
"rf being delayed in emulated RF
\n
"
);
}
proc
->
emulate_rf_busy
=
1
;
pthread_mutex_lock
(
&
proc
->
mutex_emulateRF
);
pthread_mutex_lock
(
&
proc
->
mutex_emulateRF
);
++
proc
->
instance_cnt_emulateRF
;
++
proc
->
instance_cnt_emulateRF
;
pthread_mutex_unlock
(
&
proc
->
mutex_emulateRF
);
pthread_mutex_unlock
(
&
proc
->
mutex_emulateRF
);
...
@@ -1652,7 +1658,7 @@ static void* ru_thread( void* param ) {
...
@@ -1652,7 +1658,7 @@ static void* ru_thread( void* param ) {
// wakeup all eNB processes waiting for this RU
// wakeup all eNB processes waiting for this RU
if
(
ru
->
num_eNB
>
0
)
wakeup_eNBs
(
ru
);
if
(
ru
->
num_eNB
>
0
)
wakeup_eNBs
(
ru
);
if
(
get_nprocs
()
<=
4
){
if
(
get_nprocs
()
<=
4
||
single_thread_flag
){
// do TX front-end processing if needed (precoding and/or IDFTs)
// do TX front-end processing if needed (precoding and/or IDFTs)
if
(
ru
->
feptx_prec
)
ru
->
feptx_prec
(
ru
);
if
(
ru
->
feptx_prec
)
ru
->
feptx_prec
(
ru
);
...
@@ -1664,6 +1670,7 @@ static void* ru_thread( void* param ) {
...
@@ -1664,6 +1670,7 @@ static void* ru_thread( void* param ) {
if
(
ru
->
fh_north_out
)
ru
->
fh_north_out
(
ru
);
if
(
ru
->
fh_north_out
)
ru
->
fh_north_out
(
ru
);
}
}
proc
->
emulate_rf_busy
=
0
;
}
}
}
}
...
...
targets/RT/USER/lte-softmodem.c
View file @
4fdbfc31
...
@@ -218,7 +218,7 @@ extern void init_eNB_afterRU(void);
...
@@ -218,7 +218,7 @@ extern void init_eNB_afterRU(void);
int
transmission_mode
=
1
;
int
transmission_mode
=
1
;
int
emulate_rf
=
0
;
int
emulate_rf
=
0
;
int
numerology
=
0
;
int
numerology
=
2
;
int
codingw
=
0
;
int
codingw
=
0
;
int
fepw
=
0
;
int
fepw
=
0
;
...
...
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