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 676B8A04F6; Tue, 7 Jan 2020 07:25:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E31B31D72B; Tue, 7 Jan 2020 07:25:06 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2042.outbound.protection.outlook.com [40.107.20.42]) by dpdk.org (Postfix) with ESMTP id B9ECC1BFC7 for ; Tue, 7 Jan 2020 07:25:05 +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=diFV3FAdT6kVUtCaC/ogrCDKYDq0Q2VZFGOvktiKrHE=; b=huvpb+BWmcV9tjfXTR4nb6vt+L8a+cQSnpWVfpR/f4K2/ManwM0OANpTfrNPMi3lbzSJz2bRLQ0odOdpOXTHEpCu7/pBct1JSD2Dgq5um5YxZVu0j/5Suo8rtYtQJZPEvDSfr6xCo+DskxhlcQL5YOebrPzmEqppXVEk8pmbt84= Received: from AM6PR08CA0029.eurprd08.prod.outlook.com (2603:10a6:20b:c0::17) by AM0PR08MB4178.eurprd08.prod.outlook.com (2603:10a6:208:133::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12; Tue, 7 Jan 2020 06:25:04 +0000 Received: from AM5EUR03FT064.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::203) by AM6PR08CA0029.outlook.office365.com (2603:10a6:20b:c0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.10 via Frontend Transport; Tue, 7 Jan 2020 06:25:04 +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 AM5EUR03FT064.mail.protection.outlook.com (10.152.17.53) 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 06:25:03 +0000 Received: ("Tessian outbound 1da651c29646:v40"); Tue, 07 Jan 2020 06:25:03 +0000 X-CR-MTA-TID: 64aa7808 Received: from 07396a671e8b.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 924BF595-8CE1-4F0C-981D-D125A1EC77D5.1; Tue, 07 Jan 2020 06:24:58 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 07396a671e8b.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 07 Jan 2020 06:24:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aaWxxCoCqlmxjbt05kUBMiypIfRajCrWLULsBpZZ6vZwB5Vq5dG/Q8A3Nvclbjx8stUWnWweg4YVv9PfNyD5PxCaZoOjXOT1ky5IWCRy8N9IhCCkQoWGEoVcXvzWQtdC2f3klkbKCZRzaC2P3Zs8yPW/QDXmie+NlEtR2FLGArDB0YTGbqAfbN08gJNqlIsaXxb0rnA79oUhd9p2cthUWt9jYvOojW5MIzlcghZsJVhq/UFiEKP134+9PNVNMDaaAqhqoG7Xp7R9uSA1Q0G7asBleYnVZ4NuMJWbv4VyuCJL6z0jAxz8gOTGcL9Z27hcanxaY//9La/75dQqfcUx9w== 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=diFV3FAdT6kVUtCaC/ogrCDKYDq0Q2VZFGOvktiKrHE=; b=cgD7CW5G504HsGe4NGyjsrqC/i2Od89DIbIsLI8xWgA8OpUQW/YunNpwC+2wnWLEiM0gTd7qJhzpiPoOHTztiK/EdokGs4aoJj/5hHeFI3JTl9FGb89pO/UtkTzeJYN+tPLRfeyfdTTcQCGbUocTd3z8M370Q+7SIfVnubTGw++x3iy7JLhUjz8zpKt5T6VG2xIxrz7et60s7dt80FBjxLnWImGMYtkp9d/h1BjxjRYi0nSI7i1fS0JfCfaPfRZ+nccnZdyR73LUe2qD74TNVZompriewI9Bju4eVZJe0tc75xlLnpd4PxGKv1422fo4hRCWRem55Hw2Y3eHycgbKg== 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=diFV3FAdT6kVUtCaC/ogrCDKYDq0Q2VZFGOvktiKrHE=; b=huvpb+BWmcV9tjfXTR4nb6vt+L8a+cQSnpWVfpR/f4K2/ManwM0OANpTfrNPMi3lbzSJz2bRLQ0odOdpOXTHEpCu7/pBct1JSD2Dgq5um5YxZVu0j/5Suo8rtYtQJZPEvDSfr6xCo+DskxhlcQL5YOebrPzmEqppXVEk8pmbt84= Received: from AM0PR08MB3986.eurprd08.prod.outlook.com (20.178.118.90) by AM0PR08MB4291.eurprd08.prod.outlook.com (20.179.33.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.10; Tue, 7 Jan 2020 06:24:57 +0000 Received: from AM0PR08MB3986.eurprd08.prod.outlook.com ([fe80::789f:c8b2:1ca9:5541]) by AM0PR08MB3986.eurprd08.prod.outlook.com ([fe80::789f:c8b2:1ca9:5541%5]) with mapi id 15.20.2602.015; Tue, 7 Jan 2020 06:24:57 +0000 From: Ruifeng Wang To: 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 , Honnappa Nagarahalli , nd , nd Thread-Topic: [PATCH v3 2/2] ci: add travis ci support for aarch64 Thread-Index: AQHVuV/lOmh7w5te3EaIKEejf8jUfKfduVK6gAEOg3A= Date: Tue, 7 Jan 2020 06:24:56 +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: 75c941ad-e7bf-41c5-bbaa-bec98d1a9bc3.0 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Ruifeng.Wang@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 30ee5ea3-9d11-4fba-5312-08d7933a550d X-MS-TrafficTypeDiagnostic: AM0PR08MB4291:|AM0PR08MB4291:|AM0PR08MB4178: 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)(136003)(39860400002)(376002)(346002)(396003)(189003)(199004)(13464003)(81166006)(8936002)(5660300002)(86362001)(2906002)(316002)(6916009)(7696005)(55016002)(81156014)(9686003)(52536014)(45080400002)(55236004)(53546011)(6506007)(66946007)(33656002)(478600001)(66476007)(64756008)(66446008)(186003)(71200400001)(54906003)(26005)(4326008)(66556008)(8676002)(76116006); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR08MB4291; H:AM0PR08MB3986.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: DW8Cdjvg7UzByaUMAPEhew6ql0I4O7NcxXKvTvvtQgNSrL2OirwZihbm84oW5aoqj9QIM1WGpn+aiRmOalC+KxjdynFIIN0ZIjHabRGx4VaD6lLV4gY3OES6ZwsGa2FN6geaLyQTHDYQJje1aOahS9yG5enXMCXdLHT+7q/q/AUetOvE700tNJE96lLeMZ7Jt2jqq0lgRRj0xb9qVKzVsSmnbqhUrUnLa2kHgFrA+SAWsPDmz5V3U2Y6QjZegMvjgXpYAJHzF9Vu5YCmkW6BYsx/QA3q8SvorZmVRYlLTdNni4Cl4006K4hNy7XjrqdQCR3Ch4YSIvpH9bjVkkN7mVGUc28MQNt6lOV6qEZUq8ANpJeodheWOQNZI6ioQvq5BXpS6dSCZEmGHmnP2Lwt3ye0u9Dq5brkmkUDNjlRe7+4UheCmR7wptzORGlo5gjg0KhF4qVlRrT8fUde/x8RCPzPW0NoOWQi/AfSz9KM8IBLua4WEaa1IrvecZUSGHeT Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4291 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Ruifeng.Wang@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT064.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)(39860400002)(136003)(346002)(396003)(376002)(199004)(189003)(13464003)(52536014)(36906005)(26005)(316002)(9686003)(4326008)(6862004)(5660300002)(55016002)(186003)(33656002)(45080400002)(70206006)(26826003)(53546011)(81156014)(8676002)(81166006)(8936002)(70586007)(2906002)(7696005)(356004)(6506007)(54906003)(86362001)(478600001)(336012); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR08MB4178; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Pass; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; A:1; MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 55e86c28-56dd-47d6-e13a-08d7933a50e9 NoDisclaimer: True X-Forefront-PRVS: 027578BB13 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NlhhB6bXocE/A7hnhJhw66JrMLhRFkNgYUu0gvRcs0yC5F5i2mbmIDQ6zXilnnqXGnBmOFf19g/4kMZ2Ubdbw37eRrixw9FWECpUIa6mB9Wf9amgkVoc6r8bf6TdrZFV/uQ+GJ3pPMFYc1AcPHM2KY+AmUbOzXggdB1ssS9I/8BRVIHNS2FiD0OLZEz6mTm5rOMjf93AbfEoteZuU309isYf4t0NTHeerV2ts6Q6hMlSFjjtW2wX6wP0YYEdvJ8FVR8LuOlpea6NNXiLtr/Uy1fPxBPB+UWioIxHM86M9QJcA2m14w56sV1lISmUZ5o+vOmEtAzHwQVD9Gq/3f53elMqBIYm3r741lMNuDRABagW16WczUKaZefYNR7MsNAVfLAKM8obvSFBOzn9eIafaZiABGj0dvJCDy77X/3BuBFGydviSUQ8rUqD5gogvruCLRc9f60PmFYuNBc5y29MqAViInxkTKqsq3g3xuGOP3r5d6xgdW3/1168sKLmOo63 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2020 06:25:03.9926 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 30ee5ea3-9d11-4fba-5312-08d7933a550d 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: AM0PR08MB4178 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" > -----Original Message----- > From: Aaron Conole > Sent: Monday, January 6, 2020 21:34 > To: Ruifeng Wang > Cc: maicolgabriel@hotmail.com; thomas@monjalon.net; > ferruh.yigit@intel.com; arybchenko@solarflare.com; dev@dpdk.org; > david.marchand@redhat.com; Gavin Hu ; Honnappa > Nagarahalli ; nd > Subject: Re: [PATCH v3 2/2] ci: add travis ci support for aarch64 >=20 > Ruifeng Wang writes: >=20 > > 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 > > --- >=20 > Can't we achieve the same thing by setting >=20 > arch: > - amd64 > - arm64 >=20 > 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 to be fixed)? No, container infrastructure will not be imposed to intel builds.=20 AFAIN, Travis infrastructure for a specific CPU arch is provided as is, and= there is no config option to control. The problem with just adding 'arch' in build matrix is that RUN_TESTS on ar= m64 is not supported by now (Travis limitation). 'env' with RUN_TESTS will fail. >=20 > One thing I wonder, isn't is possible to use qemu-user to do the amd64 un= it > tests? Then do we really need some changes to do the native build? 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 simpl= er and more natural.=20 > Does it buy us anything *today* given the cost of the hugepage restrictio= n? > Will that ever be resolved (I didn't see so from the docs on travis)? The hugepage issue has been reported to Travis. I think it will be resolved= . But no set dates yet. >=20 > > .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_DOCS= =3D1 > > + arch: arm64 > > + compiler: gcc > > + dist: bionic > > + addons: > > + apt: > > + packages: > > + - *required_packages > > + - *doc_packages > > > > script: ./.ci/${TRAVIS_OS_NAME}-build.sh