From patchwork Wed Dec 18 05:39:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruifeng Wang X-Patchwork-Id: 63977 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B1437A04F9; Wed, 18 Dec 2019 06:39:36 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 70FB134EF; Wed, 18 Dec 2019 06:39:36 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 271A32C60 for ; Wed, 18 Dec 2019 06:39:35 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A8DBF1FB; Tue, 17 Dec 2019 21:39:34 -0800 (PST) Received: from net-arm-thunderx2-02.shanghai.arm.com (net-arm-thunderx2-02.shanghai.arm.com [10.169.41.157]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 08A943F6CF; Tue, 17 Dec 2019 21:39:31 -0800 (PST) From: Ruifeng Wang To: aconole@redhat.com, maicolgabriel@hotmail.com, thomas@monjalon.net, ferruh.yigit@intel.com, arybchenko@solarflare.com Cc: dev@dpdk.org, gavin.hu@arm.com, honnappa.nagarahalli@arm.com, nd@arm.com, Ruifeng Wang Date: Wed, 18 Dec 2019 13:39:01 +0800 Message-Id: <20191218053902.193417-2-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191218053902.193417-1-ruifeng.wang@arm.com> References: <20191218053902.193417-1-ruifeng.wang@arm.com> Subject: [dpdk-dev] [PATCH 1/2] ci: add travis ci support for aarch64 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" Add Travis compilation jobs for aarch64. gcc/clang compilations for static/shared libraries are added. Some limitations for current aarch64 Travis support: 1. Container is used. Huge page is not available due to security reason. 2. Missing kernel header package in Xenial distribution. Solutions to address the limitations: 1. Not to add unit test for now. And run tests with no-huge in future. 2. Use Bionic distribution for all aarch64 jobs. Signed-off-by: Ruifeng Wang Reviewed-by: Gavin Hu --- .ci/linux-setup.sh | 11 +++++++---- .travis.yml | 42 +++++++++++++++++++++++++++++++++++++++++- 2 files changed, 48 insertions(+), 5 deletions(-) diff --git a/.ci/linux-setup.sh b/.ci/linux-setup.sh index dfb9d4a20..a92978037 100755 --- a/.ci/linux-setup.sh +++ b/.ci/linux-setup.sh @@ -3,7 +3,10 @@ # need to install as 'root' since some of the unit tests won't run without it sudo python3 -m pip install --upgrade meson -# setup hugepages -cat /proc/meminfo -sudo sh -c 'echo 1024 > /proc/sys/vm/nr_hugepages' -cat /proc/meminfo +# hugepage settings are skipped on aarch64 due to environment limitation +if [ "$TRAVIS_ARCH" != "aarch64" ]; then + # setup hugepages + cat /proc/meminfo + sudo sh -c 'echo 1024 > /proc/sys/vm/nr_hugepages' + cat /proc/meminfo +fi diff --git a/.travis.yml b/.travis.yml index 8f90d06f2..980c7605d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -115,6 +115,46 @@ matrix: apt: packages: - *extra_packages - + - env: DEF_LIB="static" + arch: arm64 + compiler: gcc + dist: bionic + addons: + apt: + packages: + - *required_packages + - env: DEF_LIB="shared" + arch: arm64 + compiler: gcc + dist: bionic + addons: + apt: + packages: + - *required_packages + - env: DEF_LIB="static" + arch: arm64 + dist: bionic + compiler: clang + addons: + apt: + packages: + - *required_packages + - env: DEF_LIB="shared" + arch: arm64 + dist: bionic + compiler: clang + addons: + apt: + packages: + - *required_packages + - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" BUILD_DOCS=1 + arch: arm64 + compiler: gcc + dist: bionic + addons: + apt: + packages: + - *required_packages + - *doc_packages script: ./.ci/${TRAVIS_OS_NAME}-build.sh From patchwork Wed Dec 18 05:39:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruifeng Wang X-Patchwork-Id: 63978 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7877BA04F9; Wed, 18 Dec 2019 06:39:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 50DBC37B0; Wed, 18 Dec 2019 06:39:45 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 3D91937AF for ; Wed, 18 Dec 2019 06:39:44 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A1CB51FB; Tue, 17 Dec 2019 21:39:43 -0800 (PST) Received: from net-arm-thunderx2-02.shanghai.arm.com (net-arm-thunderx2-02.shanghai.arm.com [10.169.41.157]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 028C83F6CF; Tue, 17 Dec 2019 21:39:40 -0800 (PST) From: Ruifeng Wang To: aconole@redhat.com, maicolgabriel@hotmail.com, thomas@monjalon.net, ferruh.yigit@intel.com, arybchenko@solarflare.com Cc: dev@dpdk.org, gavin.hu@arm.com, honnappa.nagarahalli@arm.com, nd@arm.com, Ruifeng Wang Date: Wed, 18 Dec 2019 13:39:02 +0800 Message-Id: <20191218053902.193417-3-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191218053902.193417-1-ruifeng.wang@arm.com> References: <20191218053902.193417-1-ruifeng.wang@arm.com> Subject: [dpdk-dev] [PATCH 2/2] devtools: add path to additional shared object files 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" librte_mempool_ring.so and librte_pmd_null.so are in 'drivers' folder. Add 'drivers' into LD_LIBRARY_PATH so that testpmd can find and make use of these shared libraries. Signed-off-by: Ruifeng Wang Reviewed-by: Gavin Hu --- devtools/test-null.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/test-null.sh b/devtools/test-null.sh index f39af2c06..548de8113 100755 --- a/devtools/test-null.sh +++ b/devtools/test-null.sh @@ -20,7 +20,7 @@ if [ ! -f "$testpmd" ] ; then fi if ldd $testpmd | grep -q librte_ ; then - export LD_LIBRARY_PATH=$build/lib:$LD_LIBRARY_PATH + export LD_LIBRARY_PATH=$build/drivers:$build/lib:$LD_LIBRARY_PATH libs='-d librte_mempool_ring.so -d librte_pmd_null.so' else libs=