1. 28 Jan, 2025 16 commits
  2. 27 Jan, 2025 24 commits
    • Jaroslava Fiedlerova's avatar
      Merge remote-tracking branch 'origin/preamble-index-logs' into integration_2025_w04 (!3220) · 7bd248e1
      Jaroslava Fiedlerova authored
      Improve RA logs
      
      Modify existing LOG entries to include preamble index, timing advance and
      estimated distance from the gNB. This makes mapping RA attempts to
      physical/simulated UEs easier via sent/received preamble index or physical
      distance from the gNB in scenarios with >1 UE.
      7bd248e1
    • Jaroslava Fiedlerova's avatar
      Merge remote-tracking branch 'origin/fhi72-fdd-mode' into integration_2025_w04 (!3210) · c7a90ed2
      Jaroslava Fiedlerova authored
      FHI72: FDD support
      
      - harmonize DL/UL PRB mapping in one get_xran_prb_map() function with support
        of mixed slot and duplex mode
      - do not assume TDD by default
      c7a90ed2
    • Jaroslava Fiedlerova's avatar
      Merge remote-tracking branch 'origin/nfapi-fixes' into integration_2025_w04 (!2999) · 699f2e5d
      Jaroslava Fiedlerova authored
      Repair nFAPI in 5G
      
      Add 5G nFAPI in OAI/Make it it work.
      
      Many commits in this branch are basically bug fixes of things that don't work
      properly, such as
      
      - check for correct conditions (e.g. instance numbers in the RAN context)
      - remove artificial limitation (e.g. only one PUCCH per TDD period in the PNF)
      - improve performance (reduce big mallocs, make some static buffers such as a
        global ring buffer for nFAPI messages in the PNF)
      - fix bugs in nFAPI (e.g., increase maximum message size to ~64kB instead of
        1500 bytes, because the latter is way too small for many TX_data.requests in
        5G, and it will delay message arrival unduly)
      - fix bugs in message enc/dec (e.g., handle FDD in config.request)
      - adjust the L1 such that the condition "we run monolithic" is not necessery
        (e.g., some message numbers in nFAPI struct where reset in MAC, instead of
        L1, and this breaks when running the PNF)
      
      There are instructions that explain how to set it up. Two CI tests have been
      added, one with COTS UE and MIMO in DL+UL in TDD numerology 1 (30kHz), and a
      second test with FDD mu=0 (15kHZ) in RFsimulator.
      
      These were some old to-dos that have been addressed.
      
      - test with COTS UE - 4x4 pipeline works good in DL, UL now also work
      - test in RFsim
      - make PNF status message
      - make FDD in u0 work
      699f2e5d
    • Robert Schmidt's avatar
      382820dc
    • Robert Schmidt's avatar
      pnf_nr_p7_pack_and_send_p7_message(): don't use global buffer · 3ad9a438
      Robert Schmidt authored
      This function packs P7 messages. At least RX_data.indication messages
      might be much bigger than the global buffer that is used here. Allocate
      the buffer on the stack, and make it bigger. Do not use the global
      buffer, it's simply not necessary; increasing the global tx buffer size
      might have negative effects elsewhere in the code.
      
      That change might make the function reentrant. The mutex seems to only
      guards the codec config. However, leave it to not introduce any
      regressions as of now.
      3ad9a438
    • Robert Schmidt's avatar
      Merge remote-tracking branch 'origin/e1-setup-encdec-tests' into integration_2025_w04 (!3152) · 377ff897
      Robert Schmidt authored
      E1 Setup enc/dec library and unit test
      
      This MR is adding a library for E1 Setup enc/dec functions:
      
      - E1 CU-UP Setup Request
      - E1 CU-UP Setup Response
      - E1 Setup Failure
      
      and relevant unit tests
      377ff897
    • Robert Schmidt's avatar
      Merge remote-tracking branch 'origin/f1-ue-data-no-assert' into integration_2025_w04 (!3212) · f6243e90
      Robert Schmidt authored
      F1AP IDs: Add update, fix concurrency bug
      
      I suspect a concurrency bug: For instance, during reestablishment, the
      CU needs to update the DU UE ID under which the UE is identified in the
      DU. Previously, the CU would remove, then add the DU UE ID info. At the
      same time, the PDCP thread might look up the information. This can lead
      to asserts. Modify the code to do the update under (one) lock.
      
      Also, refactor some code.
      f6243e90
    • Robert Schmidt's avatar
      Merge remote-tracking branch 'origin/fix-huge-malloc' into integration_2025_w04 (!3211) · 2cecffb0
      Robert Schmidt authored
      Avoid huge calloc by alloc'ing TBs independently
      
      Fix real-time problems on smaller machines due to big calloc(). See the
      commit(s) for more details.
      2cecffb0
    • Robert Schmidt's avatar
      transform RFsim band 66 u0 test to nFAPI · 6be89880
      Robert Schmidt authored
      6be89880
    • Robert Schmidt's avatar
      Modify 4x4 60MHz COTS UE test to use nFAPI · c5531736
      Robert Schmidt authored
      Modify the existing 4x4 60MHz USRP+COTS UE test to use nFAPI. The
      throughput tests remain the same.
      c5531736
    • Robert Schmidt's avatar
      Add documentation for nFAPI · 03b63257
      Robert Schmidt authored
      03b63257
    • Robert Schmidt's avatar
      Consolidate 2 gnb-vnf configs in 1 · 48d52fdf
      Robert Schmidt authored
      48d52fdf
    • Robert Schmidt's avatar
      Remove hardcoding of numerology in VNF · 970eb04a
      Robert Schmidt authored
      Similar to the parent commit, make the numerology in the VNF
      configurable. Unlike for the PNF change, the VNF frame/slot info is in a
      per-PNF connection structure to which the "oai_integration" code has no
      access. So we need to hack the nfapi_vnf_p7_add_pnf() function signature
      to take the numerology, to be able to save this on a per-PNF basis.
      
      The fact that we store this on a per-PNF basis is not strictly required,
      as the VNF cannot handle multiple numerologies as of now, either.
      However, we might want to extend this in the future, so it seems prudent
      to store this on a per-PNF basis, so that we could start handling
      multiple numerologies at the L2 without the need to change the L1 or
      nFAPI code itself.
      
      Also, the numerology is not needed except for some code that deals with
      timing over nFAPI. As of now, we don't use this code (nFAPI gets a
      trigger every slot, as per the VNF request, see an earlier commit in
      this series), but also here, let's not make the future more complicated
      by storing the numerology for each PNF now (this could always be reverted).
      
      For 4G, put numerology 0 (15kHZ SCS), which is the SCS that LTE uses.
      970eb04a
    • Robert Schmidt's avatar
      Remove hardcoding of numerology in PNF · 58f2f9b3
      Robert Schmidt authored
      Fill in the dynamically received numerology, and make the numerology at
      the PNF configurable, following the changes in the parent commit.
      
      The change for the reading is somewhat of a hack, because nFAPI, as of
      now, does not really foresee to store the numerology, so we fill the
      numerology during the start request, when the numerlogy has been
      received in the config request, but at that time, the structure for the
      time information (frame/slot) does not exist yet.
      58f2f9b3
    • Robert Schmidt's avatar
    • Robert Schmidt's avatar
      nFAPI time conversion: handle numerologies flexibly · f7617f8c
      Robert Schmidt authored
      At both the PNF and the VNF, introduce a separate numerology field, and
      pass the numerology when converting time information using macros from
      nfapi_interface.h. The actually numerology is still hardcoded to 1 (as it
      was before), but the follow-up commits will put a suitable numerology.
      
      In both cases, but the numerology next to the frame/slot information.
      f7617f8c
    • Robert Schmidt's avatar
      L1-emul UE: Make independent of numerology · abe77333
      Robert Schmidt authored
      Similarly as the parent commit(s):
      - remove hardcoding to specific numerology
      - avoid conversion when we don't need it
      abe77333
    • Robert Schmidt's avatar
      Make independent of numerology: no time conversion macros · 08ddce47
      Robert Schmidt authored
      Similar as the parent comment, remove time macros. In this particular
      case, we can just pass the exact frame/slot information, instead of
      squeezing it in a single integer.
      08ddce47
    • Robert Schmidt's avatar
      Simplify code: no time conversion macros necessary · e051c9bb
      Robert Schmidt authored
      The next commits will modify the time macros used in the 5G nFAPI code
      to handle different numerologies. As a preparation, remove all the
      usages of these macros where they really don't matter (e.g., don't
      convert if we don't need to).
      e051c9bb
    • Robert Schmidt's avatar
      Remove original nfapi patch file · 5435585b
      Robert Schmidt authored
      This file is 8y old. It does not seem to serve any purpose. Remove it.
      5435585b
    • Robert Schmidt's avatar
      add header guards · d028cab7
      Robert Schmidt authored
      d028cab7
    • Robert Schmidt's avatar
      config.request: handle FDD · 871311d9
      Robert Schmidt authored
      871311d9
    • Robert Schmidt's avatar
    • Robert Schmidt's avatar
      Print sfn/slot directly · 0659148d
      Robert Schmidt authored
      0659148d