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
spbro
OpenXG-RAN
Commits
c8116b3f
Commit
c8116b3f
authored
Sep 19, 2024
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dead code
parent
31f77097
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
55 deletions
+2
-55
executables/nr-gnb.c
executables/nr-gnb.c
+2
-42
executables/nr-softmodem.c
executables/nr-softmodem.c
+0
-7
executables/nr-softmodem.h
executables/nr-softmodem.h
+0
-2
executables/nr-uesoftmodem.h
executables/nr-uesoftmodem.h
+0
-2
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
+0
-1
openair1/PHY/defs_gNB.h
openair1/PHY/defs_gNB.h
+0
-1
No files found.
executables/nr-gnb.c
View file @
c8116b3f
...
...
@@ -86,18 +86,8 @@
#include <PHY/NR_ESTIMATION/nr_ul_estimation.h>
// #define USRP_DEBUG 1
// Fix per CC openair rf/if device update
time_stats_t
softmodem_stats_mt
;
// main thread
time_stats_t
softmodem_stats_hw
;
// hw acquisition
time_stats_t
softmodem_stats_rxtx_sf
;
// total tx time
time_stats_t
nfapi_meas
;
// total tx time
time_stats_t
softmodem_stats_rx_sf
;
// total rx time
#include "executables/thread-common.h"
//#define TICK_TO_US(ts) (ts.diff)
#define TICK_TO_US(ts) (ts.trials==0?0:ts.diff/ts.trials)
#define L1STATSSTRLEN 16384
...
...
@@ -213,18 +203,14 @@ static void rx_func(processingData_L1_t *info)
int64_t
absslot_tx
=
info
->
timestamp_tx
/
samples
;
int64_t
absslot_rx
=
absslot_tx
-
gNB
->
RU_list
[
0
]
->
sl_ahead
;
int
rt_prof_idx
=
absslot_rx
%
RT_PROF_DEPTH
;
clock_gettime
(
CLOCK_MONOTONIC
,
&
info
->
gNB
->
rt_L1_profiling
.
start_L1_RX
[
rt_prof_idx
]);
start_meas
(
&
softmodem_stats_rxtx_sf
);
clock_gettime
(
CLOCK_MONOTONIC
,
&
info
->
gNB
->
rt_L1_profiling
.
start_L1_RX
[
rt_prof_idx
]);
// *******************************************************************
if
(
NFAPI_MODE
==
NFAPI_MODE_PNF
)
{
// I am a PNF and I need to let nFAPI know that we have a (sub)frame tick
//LOG_D(PHY, "oai_nfapi_slot_ind(frame:%u, slot:%d) ********\n", frame_rx, slot_rx);
start_meas
(
&
nfapi_meas
);
// LOG_D(PHY, "oai_nfapi_slot_ind(frame:%u, slot:%d) ********\n", frame_rx, slot_rx);
handle_nr_slot_ind
(
frame_rx
,
slot_rx
);
stop_meas
(
&
nfapi_meas
);
}
// ****************************************
...
...
@@ -277,7 +263,6 @@ static void rx_func(processingData_L1_t *info)
#endif
}
stop_meas
(
&
softmodem_stats_rxtx_sf
);
clock_gettime
(
CLOCK_MONOTONIC
,
&
info
->
gNB
->
rt_L1_profiling
.
return_L1_RX
[
rt_prof_idx
]);
}
...
...
@@ -394,7 +379,6 @@ void init_gNB_Tpool(int inst) {
}
void
term_gNB_Tpool
(
int
inst
)
{
PHY_VARS_gNB
*
gNB
=
RC
.
gNB
[
inst
];
abortTpool
(
&
gNB
->
threadPool
);
...
...
@@ -410,30 +394,6 @@ void term_gNB_Tpool(int inst) {
pthread_join
(
proc
->
L1_stats_thread
,
NULL
);
}
void
reset_opp_meas
(
void
)
{
int
sfn
;
reset_meas
(
&
softmodem_stats_mt
);
reset_meas
(
&
softmodem_stats_hw
);
for
(
sfn
=
0
;
sfn
<
10
;
sfn
++
)
{
reset_meas
(
&
softmodem_stats_rxtx_sf
);
reset_meas
(
&
softmodem_stats_rx_sf
);
}
}
void
print_opp_meas
(
void
)
{
int
sfn
=
0
;
print_meas
(
&
softmodem_stats_mt
,
"Main gNB Thread"
,
NULL
,
NULL
);
print_meas
(
&
softmodem_stats_hw
,
"HW Acquisation"
,
NULL
,
NULL
);
for
(
sfn
=
0
;
sfn
<
10
;
sfn
++
)
{
print_meas
(
&
softmodem_stats_rxtx_sf
,
"[gNB][total_phy_proc_rxtx]"
,
NULL
,
NULL
);
print_meas
(
&
softmodem_stats_rx_sf
,
"[gNB][total_phy_proc_rx]"
,
NULL
,
NULL
);
}
}
/// eNB kept in function name for nffapi calls, TO FIX
void
init_eNB_afterRU
(
void
)
{
int
inst
,
ru_id
,
i
,
aa
;
...
...
executables/nr-softmodem.c
View file @
c8116b3f
...
...
@@ -141,9 +141,6 @@ uint8_t nb_antenna_rx = 1;
int
otg_enabled
;
extern
void
reset_opp_meas
(
void
);
extern
void
print_opp_meas
(
void
);
extern
void
*
udp_eNB_task
(
void
*
args_p
);
int
transmission_mode
=
1
;
...
...
@@ -631,10 +628,6 @@ int main( int argc, char **argv ) {
set_taus_seed
(
0
);
printf
(
"configuring for RAU/RRU
\n
"
);
if
(
cpu_meas_enabled
)
{
reset_opp_meas
();
}
cpuf
=
get_cpu_freq_GHz
();
itti_init
(
TASK_MAX
,
tasks_info
);
// initialize mscgen log after ITTI
...
...
executables/nr-softmodem.h
View file @
c8116b3f
...
...
@@ -52,8 +52,6 @@ extern void stop_RU(int nb_ru);
extern
void
kill_NR_RU_proc
(
int
inst
);
extern
void
set_function_spec_param
(
RU_t
*
ru
);
extern
void
reset_opp_meas
(
void
);
extern
void
print_opp_meas
(
void
);
void
init_gNB_afterRU
(
void
);
void
init_pdcp
(
void
);
...
...
executables/nr-uesoftmodem.h
View file @
c8116b3f
...
...
@@ -120,8 +120,6 @@ extern int setup_nr_ue_buffers(PHY_VARS_NR_UE **phy_vars_ue, openair0_config_t *
extern
void
fill_ue_band_info
(
void
);
extern
void
init_NR_UE
(
int
,
char
*
,
char
*
,
char
*
);
extern
void
init_NR_UE_threads
(
PHY_VARS_NR_UE
*
ue
);
extern
void
reset_opp_meas
(
void
);
extern
void
print_opp_meas
(
void
);
void
start_oai_nrue_threads
(
void
);
void
*
UE_thread
(
void
*
arg
);
void
init_nr_ue_vars
(
PHY_VARS_NR_UE
*
ue
,
uint8_t
UE_id
);
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
View file @
c8116b3f
...
...
@@ -189,7 +189,6 @@ static void nr_processULSegment(void *arg)
memset
(
ulsch_harq
->
c
[
r
],
0
,
Kr_bytes
);
p_decoderParms
->
crc_type
=
crcType
(
ulsch_harq
->
C
,
A
);
p_decoderParms
->
E
=
lenWithCrc
(
ulsch_harq
->
C
,
A
);
// start_meas(&phy_vars_gNB->ulsch_ldpc_decoding_stats);
// set first 2*Z_c bits to zeros
...
...
openair1/PHY/defs_gNB.h
View file @
c8116b3f
...
...
@@ -533,7 +533,6 @@ typedef struct PHY_VARS_gNB_s {
time_stats_t
slot_indication_stats
;
time_stats_t
schedule_response_stats
;
time_stats_t
ulsch_decoding_stats
;
time_stats_t
ulsch_ldpc_decoding_stats
;
time_stats_t
ulsch_deinterleaving_stats
;
time_stats_t
ulsch_channel_estimation_stats
;
time_stats_t
ulsch_llr_stats
;
...
...
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