From patchwork Thu Jul 19 13:03:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mokhtar, Amr" X-Patchwork-Id: 43202 X-Patchwork-Delegate: pablo.de.lara.guarch@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 879BB4C8C; Thu, 19 Jul 2018 15:06:42 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id EDF294C8A for ; Thu, 19 Jul 2018 15:06:39 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jul 2018 06:06:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,374,1526367600"; d="scan'208";a="217290592" Received: from silpixa00391537.ir.intel.com ([10.237.222.189]) by orsmga004.jf.intel.com with ESMTP; 19 Jul 2018 06:04:03 -0700 From: Amr Mokhtar To: pablo.de.lara.guarch@intel.com Cc: dev@dpdk.org, Amr Mokhtar Date: Thu, 19 Jul 2018 14:03:53 +0100 Message-Id: <1532005433-89697-1-git-send-email-amr.mokhtar@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] baseband/turbo_sw: update Turbo driver for FlexRAN 1.6.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Update BBDEV Turbo SW driver download/build instructions for FlexRAN 1.6.0 release Signed-off-by: Amr Mokhtar --- doc/guides/bbdevs/turbo_sw.rst | 38 +++++++++++------------- drivers/baseband/turbo_sw/bbdev_turbo_software.c | 8 ++--- 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/doc/guides/bbdevs/turbo_sw.rst b/doc/guides/bbdevs/turbo_sw.rst index 9661a30..0b96fbb 100644 --- a/doc/guides/bbdevs/turbo_sw.rst +++ b/doc/guides/bbdevs/turbo_sw.rst @@ -47,8 +47,8 @@ Design Center `_. +*Intel FlexRAN Software Release Package -1-6-0* to download or directly through +this `link `_. After download is complete, the user needs to unpack and compile on their system before building DPDK. @@ -64,6 +64,7 @@ The following table maps DPDK versions with past FlexRAN SDK releases: ===================== ============================ 18.02 1.3.0 18.05 1.4.0 + 18.08 1.6.0 ===================== ============================ FlexRAN SDK Installation @@ -71,8 +72,8 @@ FlexRAN SDK Installation The following are pre-requisites for building FlexRAN SDK Libraries: (a) An AVX2 supporting machine - (b) Windriver TS 2 or CentOS 7 operating systems - (c) Intel ICC 17.0.3 compiler installed + (b) CentOS Linux release 7.2.1511 (Core) operating system + (c) Intel ICC 18.0.1 20171018 compiler installed The following instructions should be followed in this exact order: @@ -82,29 +83,26 @@ The following instructions should be followed in this exact order: source /linux/bin/compilervars.sh intel64 -platform linux - -#. Extract the ``576288-576288-intel-swa-sw-flexran-release-package-r1-4-0.zip`` - package, then run the SDK extractor script and accept the license: +#. Extract the ``flexran-1-6-0-tar.gz.zip`` package: .. code-block:: console - cd /FlexRAN-1.4.0/ - ./SDK-R1.4.0.sh + unzip flexran-1-6-0-tar.gz.zip + tar xvzf flexran-1-6-0-tar.gz -C FlexRAN-1.6.0/ -#. Generate makefiles based on system configuration: +#. Run the SDK extractor script and accept the license: .. code-block:: console - cd /FlexRAN-1.4.0/SDK-R1.4.0/sdk/ - ./create-makefiles-linux.sh + cd /FlexRAN-1.6.0/ + ./SDK-R1.6.0.sh -#. If build as a shared library is required, then add ``"-fPIC"`` option to file - ``/FlexRAN-1.4.0/SDK-R1.4.0/sdk/cmake/intel-compile-options.cmake`` - as follows: +#. Generate makefiles based on system configuration: .. code-block:: console - add_compile_options("-fPIC") + cd /FlexRAN-1.6.0/SDK-R1.6.0/sdk/ + ./create-makefiles-linux.sh #. A build folder is generated in this form ``build--``, enter that folder and install: @@ -112,7 +110,7 @@ The following instructions should be followed in this exact order: .. code-block:: console cd build-avx2-icc/ - make install + make && make install Initialization @@ -130,8 +128,8 @@ Example: .. code-block:: console - export FLEXRAN_SDK=/FlexRAN-1.4.0/SDK-R1.4.0/sdk/build-avx2-icc/install - export DIR_WIRELESS_SDK=/FlexRAN-1.4.0/SDK-R1.4.0/sdk/ + export FLEXRAN_SDK=/FlexRAN-1.6.0/SDK-R1.6.0/sdk/build-avx2-icc/install + export DIR_WIRELESS_SDK=/FlexRAN-1.6.0/SDK-R1.6.0/sdk/ * Set ``CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW=y`` in DPDK common configuration @@ -156,4 +154,4 @@ Example: .. code-block:: console ./test-bbdev.py -e="--vdev=baseband_turbo_sw,socket_id=0,max_nb_queues=8" \ - -c validation -v ./test_vectors/bbdev_vector_t?_default.data + -c validation -v ./turbo_*_default.data diff --git a/drivers/baseband/turbo_sw/bbdev_turbo_software.c b/drivers/baseband/turbo_sw/bbdev_turbo_software.c index 1a2430e..8ceb276 100644 --- a/drivers/baseband/turbo_sw/bbdev_turbo_software.c +++ b/drivers/baseband/turbo_sw/bbdev_turbo_software.c @@ -490,8 +490,8 @@ process_enc_cb(struct turbo_sw_queue *q, struct rte_bbdev_enc_op *op, return; } crc_req.data = in; - crc_req.len = (k - 24) >> 3; - /* Check if there is a room for CRC bits. If not use + crc_req.len = k - 24; + /* Check if there is a room for CRC bits if not use * the temporary buffer. */ if (rte_pktmbuf_append(m_in, 3) == NULL) { @@ -522,8 +522,8 @@ process_enc_cb(struct turbo_sw_queue *q, struct rte_bbdev_enc_op *op, return; } crc_req.data = in; - crc_req.len = (k - 24) >> 3; - /* Check if there is a room for CRC bits. If this is the last + crc_req.len = k - 24; + /* Check if there is a room for CRC bits if this is the last * CB in TB. If not use temporary buffer. */ if ((c - r == 1) && (rte_pktmbuf_append(m_in, 3) == NULL)) {