From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1BAEFA046B; Tue, 7 Jan 2020 15:40:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CB7811D9B8; Tue, 7 Jan 2020 15:40:22 +0100 (CET) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130052.outbound.protection.outlook.com [40.107.13.52]) by dpdk.org (Postfix) with ESMTP id 4E4F21D9B7 for ; Tue, 7 Jan 2020 15:40:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bF+HnxzZ+lIaOaRhxY4eFyLLlj30Atd+M0oKOKcCPUw=; b=OaiiKZI67/vSt9X4zQm3NHNl0l4sf9zMiMRlF4NhUq4R9IC2s+8SRaZQiQhl494rQF9EM+qlJNyJ9EmLWTHjqUDhraWT+tqcWPw+Va2Cw4g1t16c/X74s/t9xy1oL+2fHfBkYqfzGnJ79HmqpbGPkO+3hfdck7nkIWwX/kWnTLY= Received: from VI1PR08CA0198.eurprd08.prod.outlook.com (2603:10a6:800:d2::28) by VE1PR08MB4655.eurprd08.prod.outlook.com (2603:10a6:802:b2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.15; Tue, 7 Jan 2020 14:40:17 +0000 Received: from DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::203) by VI1PR08CA0198.outlook.office365.com (2603:10a6:800:d2::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12 via Frontend Transport; Tue, 7 Jan 2020 14:40:17 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT022.mail.protection.outlook.com (10.152.20.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Tue, 7 Jan 2020 14:40:16 +0000 Received: ("Tessian outbound 4f3bc9719026:v40"); Tue, 07 Jan 2020 14:40:16 +0000 X-CR-MTA-TID: 64aa7808 Received: from afc27061f027.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 84F98218-3973-4247-A94E-625F956B937A.1; Tue, 07 Jan 2020 14:40:11 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id afc27061f027.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 07 Jan 2020 14:40:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J8YRF7uxBXzhAg9iKeCAw+23MnZ6GW5nKQRDftr9t+sOvcqGezdmM/sWHzSn+5RQ/eYq+M+M0tGM0sX+PeEh8Icxlvxrsf+yz1tfI4IyaMsBFSkx6X5OwpTyuFyug3rzk51aBMie6lKcGkz2neVy5olGhpsIpI5OAuHNpUf5wQEJddfnK80LMydMiO9i3KtXl+TKkhEFUzpvMklEQKkmI4tQKchS4O7x89gXeU7gcsRQlyqUvCqMh1tYKN7/2tnkicKEQOjMNZ6Zs1J2XpvN1JwZzPxEAc6l4qKf2OY1ZpFUZ1GFd2P2zdYg2dTupTfxdWY/wIZjBquvQbGnc2sbBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bF+HnxzZ+lIaOaRhxY4eFyLLlj30Atd+M0oKOKcCPUw=; b=MRfjnhtlM1PFfK/OvmRFgHN1jI+JQeATa2V3rIh17mYW6NCUSSU27aqfdEmHmcIvYFi78CubfIoMEO3KOgMXp/PzJH5bztbSAQwvlyiien2K+Xj9r6EI19WSQDdaFKWbe1FTIW9+ekquqqbI+sLoTenB/GisLsqpD2TLttOiKq8BBs9CuKhmO2/ixDLGefgGuLoYeZCK4ry/880Z+9LO0VW8j6WKW70IvlsP+SbqFM6pWdXDAkB34LU9CuVcJh0qOwTvQud1+BBagiT//RXhqUMjoWJfbXa5yM0l8g3pKKmOwLVYFeRRI1lLUEuHAWac9FddKCIx8DRQHoFsmz/3dg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bF+HnxzZ+lIaOaRhxY4eFyLLlj30Atd+M0oKOKcCPUw=; b=OaiiKZI67/vSt9X4zQm3NHNl0l4sf9zMiMRlF4NhUq4R9IC2s+8SRaZQiQhl494rQF9EM+qlJNyJ9EmLWTHjqUDhraWT+tqcWPw+Va2Cw4g1t16c/X74s/t9xy1oL+2fHfBkYqfzGnJ79HmqpbGPkO+3hfdck7nkIWwX/kWnTLY= Received: from VE1PR08MB5149.eurprd08.prod.outlook.com (20.179.30.27) by VE1PR08MB4927.eurprd08.prod.outlook.com (10.255.27.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.13; Tue, 7 Jan 2020 14:40:09 +0000 Received: from VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::29eb:a1be:8f8f:fae2]) by VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::29eb:a1be:8f8f:fae2%7]) with mapi id 15.20.2602.016; Tue, 7 Jan 2020 14:40:09 +0000 From: Honnappa Nagarahalli To: Ruifeng Wang , Aaron Conole CC: "maicolgabriel@hotmail.com" , "thomas@monjalon.net" , "ferruh.yigit@intel.com" , "arybchenko@solarflare.com" , "dev@dpdk.org" , "david.marchand@redhat.com" , Gavin Hu , nd , Honnappa Nagarahalli , nd Thread-Topic: [PATCH v3 2/2] ci: add travis ci support for aarch64 Thread-Index: AQHVxJYHixZ3tdWBZE+vHDb2ZQyeYKfevS8AgACJx0A= Date: Tue, 7 Jan 2020 14:40:09 +0000 Message-ID: References: <20191218053902.193417-1-ruifeng.wang@arm.com> <20191223070833.144628-1-ruifeng.wang@arm.com> <20191223070833.144628-3-ruifeng.wang@arm.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: a86be096-ce77-41c3-88dd-2e05aa75796f.0 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 12f25f5f-49b5-4ad8-5303-08d7937f834b X-MS-TrafficTypeDiagnostic: VE1PR08MB4927:|VE1PR08MB4927:|VE1PR08MB4655: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:9508;OLM:9508; x-forefront-prvs: 027578BB13 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(366004)(346002)(136003)(376002)(396003)(39860400002)(189003)(199004)(71200400001)(52536014)(4326008)(33656002)(86362001)(5660300002)(7696005)(316002)(55016002)(8936002)(54906003)(110136005)(66476007)(66556008)(64756008)(81166006)(66446008)(81156014)(2906002)(66946007)(9686003)(8676002)(6506007)(26005)(76116006)(186003)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4927; H:VE1PR08MB5149.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: T2XnXgUze6bjFyWUKfgnYXltlhsVfTk19U9TYpHBv2JCa7cRFHh/sFQbf2/gAAFL9zfKzTHe7HdueZKkJAAOHiBmh2AnMZmEKlzx0H1TLD8PjHHdbAYefzH6YEzJSkG9E3wKxg4e4j44VEuHhpwJOH9lP/zAtBAfXdfSm0JINKnIvNEYv7K0KbTNyCqDFHTiRPoYlFLnbHIHBdel2hNrf5nN+s/KfqVOAUDKiSNGLROI5i9QtMCeTeVMiG4AJey+XBkDucbJ+nK2VJRVm04rZEWJ3tcrNoRjYhNSC8jjXYkzs8H+y/d7D0+2aYzpKQErI/ZYUZp55lq0uKwYraUz45PtBY4/FbhxyjNJGNiP5Ebbczsf+We1Mm7M/pkusbpsO2mjJtnEKy0yHCSc7YA+2mbyNV9pLuzMraJYFnmZE/vk5hZ+MLK49mqbqCHmr2E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4927 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; IPV:CAL; SCL:-1; CTRY:IE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(396003)(136003)(376002)(39860400002)(346002)(189003)(199004)(8676002)(4326008)(2906002)(8936002)(81156014)(81166006)(26005)(186003)(5660300002)(33656002)(6506007)(52536014)(70586007)(86362001)(356004)(70206006)(7696005)(316002)(110136005)(54906003)(336012)(9686003)(478600001)(55016002)(26826003); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4655; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Pass; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; MX:1; A:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 07bd1f3d-7eba-4fca-55e2-08d7937f7f24 NoDisclaimer: True X-Forefront-PRVS: 027578BB13 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: C82dnBTzJ1sdvpFYa6WVANt92tAiyl7TA2kk5V3WpRnzm4YwQQtLMfJ27gkldV5lu31jAVRdfE4jYBt17G/Zimm2rWUC63OIaZA+yckvdIOu4ImJ6sUZM+Oxv9nPlnHVBcFOun3MjqrnZlz7Dogj4WEp8C/oNyMwMquCDd5qIL/H0li3TtiPAuniVIwBgp7ZxA+OuOq1d8Q1HaSwaogeIZSHsV0O/NRg3oyYL7yGQeR0ZFIFMTqNgfRn1XVdtdhtNvmMRhPbDPUFApQFJrIRhKb01bv8L2xaR2vHLOcwnnjK4E0fhBn5a0Ct3ot2IpCYHkWzxNv72x0ELFJfuCSE2N9BVXIojCnKxV3LH+erkT/5YY9Oh8D7SLXkn+L+v95oAqcpEMWh41BUD/svTtb9pEWsPD9RUPjKQbEUT1gn9Sy8VELbYqgCe9Ds9THxPOqB X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2020 14:40:16.8555 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 12f25f5f-49b5-4ad8-5303-08d7937f834b X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4655 Subject: Re: [dpdk-dev] [PATCH v3 2/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 reas= on. > > > 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 > > > --- > > > > Can't we achieve the same thing by setting > > > > arch: > > - amd64 > > - arm64 > > > > in the build matrix? Or will that also force the intel builds to use > > the container infrastructure (in which case the no-huge support needs t= o be > fixed)? >=20 > No, container infrastructure will not be imposed to intel builds. > AFAIN, Travis infrastructure for a specific CPU arch is provided as is, a= nd > there is no config option to control. > The problem with just adding 'arch' in build matrix is that RUN_TESTS on > arm64 is not supported by now (Travis limitation). 'env' with RUN_TESTS w= ill > fail. > > > > One thing I wonder, isn't is possible to use qemu-user to do the amd64 > > unit tests? Then do we really need some changes to do the native build= ? >=20 > Do you mean to use qemu-user to do unit tests for non-x86 arch? > Changes will be needed as well to enable qemu-user to do unit test. > Since Travis support multi CPU arch, I think native build and test is sim= pler > and more natural. Yes, prefer to run the tests natively as the infrastructure is available an= d will improve further from here. >=20 > > Does it buy us anything *today* given the cost of the hugepage restrict= ion? > > Will that ever be resolved (I didn't see so from the docs on travis)? >=20 > The hugepage issue has been reported to Travis. I think it will be resolv= ed. > But no set dates yet. > > > > > .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" !=3D "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=3D"static" > > > + arch: arm64 > > > + compiler: gcc > > > + dist: bionic > > > + addons: > > > + apt: > > > + packages: > > > + - *required_packages > > > + - env: DEF_LIB=3D"shared" > > > + arch: arm64 > > > + compiler: gcc > > > + dist: bionic > > > + addons: > > > + apt: > > > + packages: > > > + - *required_packages > > > + - env: DEF_LIB=3D"static" > > > + arch: arm64 > > > + dist: bionic > > > + compiler: clang > > > + addons: > > > + apt: > > > + packages: > > > + - *required_packages > > > + - env: DEF_LIB=3D"shared" > > > + arch: arm64 > > > + dist: bionic > > > + compiler: clang > > > + addons: > > > + apt: > > > + packages: > > > + - *required_packages > > > + - env: DEF_LIB=3D"shared" OPTS=3D"-Denable_kmods=3Dfalse" BUILD_DO= CS=3D1 > > > + arch: arm64 > > > + compiler: gcc > > > + dist: bionic > > > + addons: > > > + apt: > > > + packages: > > > + - *required_packages > > > + - *doc_packages > > > > > > script: ./.ci/${TRAVIS_OS_NAME}-build.sh >=20