Skip to contentSkip to conversation

FlexRAN SDK update for 23.11

PATCH Applied Nicolas Chautru 2 participants 6 messages Oct 27, 2023 – Nov 9, 2023 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

v3 cover FlexRAN SDK update for 23.11

v3: rebase typo fixed.
v2: rebase typo fixed.

Upstreaming SDK workaround for ACC100 and updating documentation for new SDK release.

Hernan Vargas (2):
baseband/acc: support ACC100 deRM corner case SDK
doc: update FlexRAN SDK links

 doc/guides/bbdevs/turbo_sw.rst        | 53 +++++++++++++-----------
 drivers/baseband/acc/meson.build      | 21 ++++++++++
 drivers/baseband/acc/rte_acc100_pmd.c | 59 +++++++++++++++++++++++++--
 3 files changed, 106 insertions(+), 27 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v3 1/2 baseband/acc: support ACC100 deRM corner case SDK

From: Hernan Vargas <[email protected]>

Implement de-ratematch pre-processing for ACC100 SW corner cases. Some specific 5GUL FEC corner cases may cause unintended back pressure and in some cases a potential stability issue on the ACC100. The PMD can detect such code block configuration and issue an info message to the user.

---
 drivers/baseband/acc/meson.build      | 21 ++++++++++
 drivers/baseband/acc/rte_acc100_pmd.c | 59 +++++++++++++++++++++++++--
 2 files changed, 76 insertions(+), 4 deletions(-)
drivers/baseband/acc/meson.build +21 -0
index 27a654b501..449d1e176c 100644
@@ -1,6 +1,27 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2020 Intel Corporation
 
+# check for FlexRAN SDK libraries
+dep_dec5g = dependency('flexran_sdk_ldpc_decoder_5gnr', required: false)
+
+if dep_dec5g.found()
+    ext_deps += cc.find_library('stdc++', required: true)
+    ext_deps += cc.find_library('irc', required: true)
+    ext_deps += cc.find_library('imf', required: true)
+    ext_deps += cc.find_library('ipps', required: true)
+    ext_deps += cc.find_library('svml', required: true)
+    ext_deps += dep_dec5g
+    ext_deps += dependency('flexran_sdk_ldpc_encoder_5gnr', required: true)
+    ext_deps += dependency('flexran_sdk_LDPC_ratematch_5gnr', required: true)
+    ext_deps += dependency('flexran_sdk_rate_dematching_5gnr', required: true)
+    ext_deps += dependency('flexran_sdk_turbo', required: true)
+    ext_deps += dependency('flexran_sdk_crc', required: true)
+    ext_deps += dependency('flexran_sdk_rate_matching', required: true)
+    ext_deps += dependency('flexran_sdk_common', required: true)
+    cflags += ['-DRTE_BBDEV_SDK_AVX2']
+    cflags += ['-DRTE_BBDEV_SDK_AVX512']
+endif
+
 deps += ['bus_pci']
 
 sources = files('rte_acc100_pmd.c', 'rte_vrb_pmd.c')
drivers/baseband/acc/rte_acc100_pmd.c +55 -4

83 lines not on this page · raw message

Signature · 1 line
2.34.1
Reviewed-by on v3 1/2
#2 lore raw

Re: [PATCH v3 1/2] baseband/acc: support ACC100 deRM corner case SDK

Quoted 8 lines · Nicolas Chautru

From: Hernan Vargas <[email protected]>

Implement de-ratematch pre-processing for ACC100 SW corner cases. Some specific 5GUL FEC corner cases may cause unintended back pressure and in some cases a potential stability issue on the ACC100. The PMD can detect such code block configuration and issue an info message to the user.

Quoted 7 lines
---
  drivers/baseband/acc/meson.build      | 21 ++++++++++
  drivers/baseband/acc/rte_acc100_pmd.c | 59 +++++++++++++++++++++++++--
  2 files changed, 76 insertions(+), 4 deletions(-)

Thanks,
Maxime

#3 lore raw

PATCH v3 2/2 doc: update FlexRAN SDK links

In reply to Nicolas Chautru

From: Hernan Vargas <[email protected]>

Update FlexRAN SDK module link to use FEC_SDK_23.07. Update compiler links to use ICX.
Update build SDK build instructions.

---
 doc/guides/bbdevs/turbo_sw.rst | 53 +++++++++++++++++++---------------
 1 file changed, 30 insertions(+), 23 deletions(-)
doc/guides/bbdevs/turbo_sw.rst +30 -23
index 1056e7a47a..9445cf1327 100644
@@ -67,11 +67,13 @@ FlexRAN SDK Download
 As an option it is possible to link this driver with FleXRAN SDK libraries
 which can enable real time signal processing using AVX instructions.
 
-These libraries are available through this `link <https://software.intel.com/en-us/articles/flexran-lte-and-5g-nr-fec-software-development-kit-modules>`_.
+These libraries are available through this `link <https://github.com/intel/FlexRAN-FEC-SDK-Modules/tree/Branch_FEC_SDK_23.07>`_.
 
 After download is complete, the user needs to unpack and compile on their
 system before building DPDK.
 
+To get the FlexRAN FEC SDK User manual extract this `doxygen <https://github.com/intel/FlexRAN-FEC-SDK-Modules/blob/Branch_FEC_SDK_23.07/doc/doxygen/html.zip>`_.
+
 The following table maps DPDK versions with past FlexRAN SDK releases:
 
 .. _table_flexran_releases:
@@ -83,6 +85,7 @@ The following table maps DPDK versions with past FlexRAN SDK releases:
    =====================  ============================
    19.08 to 22.07         19.04
    22.11+                 22.11
+   23.11+                 FEC_SDK_23.07
    =====================  ============================
 
 FlexRAN SDK Installation
@@ -91,31 +94,34 @@ FlexRAN SDK Installation
 Note that the installation of these libraries is optional.
 
 The following are pre-requisites for building FlexRAN SDK Libraries:
- (a) An AVX2 or AVX512 supporting machine
- (b) CentOS Linux release 7.2.1511 (Core) operating system is advised
- (c) Intel ICC 18.0.1 20171018 compiler or more recent and related libraries
-     ICC is `available with a free community license <https://software.intel.com/en-us/system-studio/choose-download#technical>`_.
+ (a) An AVX512 supporting machine.
+ (b) Ubuntu Linux release 22.04 operating system is advised.
+ (c) Intel ICX 2023.0.0 compiler or more recent and related libraries.
+     ICX is available `here <https://docs.o-ran-sc.org/projects/o-ran-sc-o-du-phy/en/latest/build_prerequisite.html#download-and-install-oneapi>`_.
+ (d) `FlexRAN SDK Modules <https://github.com/intel/FlexRAN-FEC-SDK-Modules/tree/Branch_FEC_SDK_23.07>`_.
+ (e) CMake 3.9.2 (Minimum 2.8.12)
+ (f) Google Test 1.7.0 (Required to run the verification and compute performance tests)
+ (g) Math Kernel Library 18.0 (Required by some functions in SDK)
 
 The following instructions should be followed in this exact order:
 
-#. Set the environment variables:
+#. Clone the SDK (Folder name needs to end in 'sdk')
 
     .. code-block:: console
 
-        source <path-to-icc-compiler-install-folder>/linux/bin/compilervars.sh intel64 -platform linux
+        git clone -b Branch_FEC_SDK_23.07 https://github.com/intel/FlexRAN-FEC-SDK-Modules.git flexran_sdk
 
-#. Run the SDK extractor script and accept the license:
+#. Set the environment variables:
 
     .. code-block:: console
 
-        cd <path-to-workspace>
-        ./FlexRAN-FEC-SDK-19-04.sh
+        source <path-to-workspace>/export_settings.sh -o -avx512
 
 #. Generate makefiles based on system configuration:
 
     .. code-block:: console
 
-        cd <path-to-workspace>/FlexRAN-FEC-SDK-19-04/sdk/
+        cd <path-to-workspace>
         ./create-makefiles-linux.sh
 
 #. A build folder is generated in this form ``build-<ISA>-<CC>``, enter that
@@ -123,11 +129,11 @@ The following instructions should be followed in this exact order:
 
     .. code-block:: console
 
-        cd build-avx512-icc/
-        make && make install
+        cd <path-to-workspace>/build-${WIRELESS_SDK_TARGET_ISA}-${WIRELESS_SDK_TOOLCHAIN}/
+        make -j$(nproc) && make install
 
-Initialization
---------------
+DPDK Initialization
+~~~~~~~~~~~~~~~~~~~
 
 In order to enable this virtual bbdev PMD, the user may:
 
@@ -142,18 +148,20 @@ In order to enable this virtual bbdev PMD, the user may:
 
 Example:
 
-.. code-block:: console
+    .. code-block:: console
 
-    export FLEXRAN_SDK=<path-to-workspace>/FlexRAN-FEC-SDK-19-04/sdk/build-avx2-icc/install
-    export DIR_WIRELESS_SDK=<path-to-workspace>/FlexRAN-FEC-SDK-19-04/sdk/build-avx2-icc/
-    export PKG_CONFIG_PATH=$DIR_WIRELESS_SDK/pkgcfg:$PKG_CONFIG_PATH
-    cd build
-    meson configure
+        export FLEXRAN_SDK=<path-to-workspace>/build-${WIRELESS_SDK_TARGET_ISA}-${WIRELESS_SDK_TOOLCHAIN}/install
+        export DIR_WIRELESS_SDK=<path-to-workspace>/build-${WIRELESS_SDK_TARGET_ISA}-${WIRELESS_SDK_TOOLCHAIN}
+        export PKG_CONFIG_PATH=${DIR_WIRELESS_SDK}/pkgcfg:${PKG_CONFIG_PATH}
+        cd build
+        meson configure
 
 * For AVX512 machines with SDK libraries installed then both 4G and 5G can be enabled for full real time FEC capability.
   For AVX2 machines it is possible to only enable the 4G libraries and the PMD capabilities will be limited to 4G FEC.
   If no library is present then the PMD will still build but its capabilities will be limited accordingly.
 
+SW Turbo PMD Usage
+~~~~~~~~~~~~~~~~~~
 
 To use the PMD in an application, user must:
 
@@ -169,9 +177,8 @@ The following parameters (all optional) can be provided in the previous two call
 * ``max_nb_queues``: Specify the maximum number of queues in the device (default is ``RTE_MAX_LCORE``).
 
 Example:
-~~~~~~~~
 
-.. code-block:: console
+  .. code-block:: console
 
     ./test-bbdev.py -e="--vdev=baseband_turbo_sw,socket_id=0,max_nb_queues=8" \
     -c validation -v ./turbo_*_default.data
Signature · 1 line
2.34.1
Reviewed-by on v3 2/2
#4 lore raw

Re: [PATCH v3 2/2] doc: update FlexRAN SDK links

Quoted 11 lines · Nicolas Chautru

From: Hernan Vargas <[email protected]>

Update FlexRAN SDK module link to use FEC_SDK_23.07. Update compiler links to use ICX.
Update build SDK build instructions.

---
  doc/guides/bbdevs/turbo_sw.rst | 53 +++++++++++++++++++---------------
  1 file changed, 30 insertions(+), 23 deletions(-)

Thanks,
Maxime

#5 lore raw
In reply to Nicolas Chautru
Quoted 9 lines · Nicolas Chautru

v3: rebase typo fixed.
v2: rebase typo fixed.

Upstreaming SDK workaround for ACC100 and updating documentation for new SDK release.

Quoted 9 lines

Hernan Vargas (2):
baseband/acc: support ACC100 deRM corner case SDK
doc: update FlexRAN SDK links

  doc/guides/bbdevs/turbo_sw.rst        | 53 +++++++++++++-----------
  drivers/baseband/acc/meson.build      | 21 ++++++++++
  drivers/baseband/acc/rte_acc100_pmd.c | 59 +++++++++++++++++++++++++--
  3 files changed, 106 insertions(+), 27 deletions(-)

Applied to next-baseband/for-main.

Thanks,
Maxime