Commit Graph
37 Commits
Author SHA1 Message Date
Robert SchmidtandRomain Beurdouche 02bc14d8c1 get xran stats
Get xran stats in the trx_oran_get_stats function
and use trx_oran_get_stats upon stopping and ending RF.

Co-authored-by: Romain Beurdouche <romain.beurdouche@eurecom.fr>
2025-07-09 14:55:44 +02:00
Robert Schmidt e2a3cde4b7 Further cleanup: define oai_exit for 4G
The parent commit cleans up and groups oai_exit in one place,
nr-softmodem-common.h. Therefore, this 5G file is included in the 4G
defs_common.h (at least it's mostly 4G), which is not nice. Instead,
define oai_exit also in 4G softmodem-common.h, and include this in
defs_common.h. Remove the cyclic inclusion of defs_common.h in
softmodem-common.h, and resolve all subsequent errors around unknown
types and extern definition mismatches.
2025-01-09 15:28:25 +01:00
Laurent THOMAS e0ca70c36d replace a set of #define by a C bit array, remove duplicated extern global variable declaration 2025-01-09 15:28:25 +01:00
Robert Schmidt 8bffd1666d Avoid complete rebuild on cmake run with git info change
Before this commit, the following will trigger a complete rebuild:

- create another git name (git checkout -b test)
- run cmake again manually (cmake ..)
- run ninja again

The top-level CMakeLists.txt uses add_definitions() to add git
information to all targets; if some git information changes, this will
mark all command lines as dirty, triggering the build.

There is an easy solution: instead of passing this information on the
command line, pass it in a header. This commit uses configure_file() to
generate a file oai_version.h in the build directory with the same
information. Various sources files, e.g., main executables, use this to
output the same information as before. It is then also not necessary to
use header guards, as cmake takes care to create this file.

If cmake is re-run, it will update the header, and trigger only files
including this header will be rebuilt (which can be shown with the above
stpes). The information passed is the same as before, and updates the
information when the old method would have updated it.
2024-08-28 15:57:24 +02:00
Robert Schmidt 6b37d183ce Remove set_latency_target(), add lock_memory_to_ram()
set_latency_target() attempts to set keep "low latency" by
- writing a specific latency to /dev/cpu_dma_latency
- setting manually the minimum CPU processor frequency to be the maximum

There is no functionality to undo this after stopping the softmodem(s),
and most users are probably not even aware that OAI does this. It is
generally preferable to set this beforehand using a governor or by
disabling sleep states (as outlined in the tutorial, and in a follow-up
commit in the performance tuning docs).

The previous mlockall() call, to lock memory to RAM, is retained in a
new function. There were additional mlockall() calls, which have been
replaced with lock_memory_to_ram(), where necessary.
2024-06-03 13:59:41 +02:00
Laurent THOMAS 1ab3b8dd8e add version signature in core files to be able to compare with the ELF one 2024-03-08 16:29:54 +01:00
Laurent THOMAS f50d5f5a9b make multiple config instead of one implicit global 2023-11-10 10:23:11 +01:00
Robert Schmidt ddf549b1f3 Move radio CMakeLists.txt to subdirectory
- move following radios: AW2S, BladeRF, IRIS, LMSSDR, RFsimulator, USRP
- move following transports: Ethernet, benetel4g, benetel5g
- for each: create independent cmake variable to switch compilation
  on/off, in order: OAI_AW2S, OAI_BLADERF, OAI_IRIS, OAI_LMSSDR,
  OAI_SIMU, OAI_USRP, OAI_ETHERNET, OAI_BENETEL4G, OAI_BENETEL5G
- Remove RF_BOARD variable, allows to compile multiple boards at once
- where applicable: remove USERSPACE/LIB in path, i.e., move files up to
  directories, as all are userspace libraries

Note that with the above, it is now mandatory to enable a radio
implementation before compiling it, e.g., for USRP:

./build_oai -w USRP
cmake .. -DOAI_USRP=ON && ninja oai_usrpdevif
2023-07-07 08:35:28 +02:00
Robert Schmidt 3f0833b140 Merge remote-tracking branch 'origin/no-platform-const-asn-dep' into integration_2023_w10 2023-03-08 19:04:22 +01:00
Robert Schmidt 6d90aaaae2 (Almost) Remove all PHY/phy_vars* and PHY/phy_extern 2023-03-06 19:47:08 +01:00
Bruno Mongazon-Cazavet 490e230b75 merge last develop 2023-02-27 10:32:36 +01:00
Robert Schmidt 6553239fbc Remove ocp-enb/split73 2023-02-23 16:31:04 +01:00
Bruno Mongazon-Cazavet 9db78ab4d6 fix warnings introduced by changes in _Assert_Exit_ macro 2023-02-23 09:56:24 +01:00
Bruno Mongazon-Cazavet 8601b8c990 Fix IQ recorder/player for nrUE 2023-02-17 12:00:46 +01:00
laurent b74ba0fb92 cleaning only 2023-01-19 14:52:39 +01:00
francescomani e79b926905 rename sdr to radio 2022-10-19 17:42:26 +02:00
francescomani 539563f03e moving targets/ARCH to sdr/ 2022-09-26 11:17:44 +02:00
laurent cfeae9560e merge develop 2022-08-26 18:02:50 +02:00
Robert Schmidt 61ead59d13 Check oai_exit in wait_on_condition() and friends, no volatile 2022-08-16 14:44:22 +02:00
Raymond Knopp d517c0c5b2 missing definitiona for build of OAI RU 2022-08-06 14:02:28 +02:00
Raymond Knopp c66f7da278 missing declarations in main_ru.c 2021-04-29 22:45:23 +02:00
Raymond Knopp d5cff2c3c3 nfapi_setmode dummy for oairu exectuable 2021-02-23 14:07:12 +01:00
Raymond Knopp 596b54bcbe synchronization for oairu 2021-02-22 21:47:12 +01:00
Raymond Knopp b596e2abd2 added definition of usrp_tx_thread in oairu exectuable 2020-12-25 16:55:29 +01:00
Raymond Knopp 7620fe9b2d minor changes for oairu executabl 2020-12-25 16:19:41 +01:00
magounak 1698f9e20f isolation of RU (no use of RC.xxx) 2020-07-13 08:00:59 +02:00
Raymond Knopp 72e57baa09 worker acivation 2020-06-18 23:53:48 +02:00
magounak ec11548526 Merge branch 'oairu' of https://gitlab.eurecom.fr/oai/openairinterface5g into oairu 2020-06-18 19:29:46 +02:00
magounak a93deb3813 testing of standlone oairu 2020-06-18 19:26:06 +02:00
Raphael Defosseux 196ba803aa fix typos and compilation errors
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
2020-06-18 10:17:06 +02:00
Raymond Knopp f33278ac52 activated ru_threads 2020-06-17 20:52:39 +02:00
Raymond Knopp e109f83bb9 Merge branch 'oairu' of https://gitlab.eurecom.fr/oai/openairinterface5g into oairu 2020-06-17 20:39:44 +02:00
Raymond Knopp 187561a1c2 commit before merge 2020-06-17 20:39:29 +02:00
magounak d1a4911428 bug fixes in main 2020-06-17 20:36:16 +02:00
Raymond Knopp 695cb5f0cd configuration fix 2020-06-17 19:03:28 +02:00
Raymond Knopp e97122f5ea added configuration file parsing to oairu 2020-06-17 17:52:46 +02:00
Raymond Knopp e99ad54b66 added missing file 2020-06-17 12:49:56 +02:00