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 655A1A2EFA for ; Mon, 16 Sep 2019 05:44:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 81C221C11E; Mon, 16 Sep 2019 05:43:59 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770111.outbound.protection.outlook.com [40.107.77.111]) by dpdk.org (Postfix) with ESMTP id 4F0631C06C for ; Mon, 16 Sep 2019 05:43:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YkBGnvdDu/1yjIJRxfYX1w0gnvu+lIP0Oc9Jr+QkZL2VBJUt30/aMzyqreOch/uaNd56NhWQ2uHfV1InKASb8usKe0TPblKniopZiXWVjhfH+z0RpQ+34t5go9wP7EhCpo0sziufqH9JyXO24F2F8LGsA+jxQe8UMkIv5tfT5R3bw9AnpBXl6a+7K5yhBJgipF6z6gs8XOq1fuijh569VtY0vJEhFx28jhYHi5XWpjLKIlpVBfg3TbxgF7xGSu52yRRTlnEzI/eoGGkVT7xHbw1rqZQHBelSP1sSZtqCUMKQaQFBbQv+IzSt6oHBsOQiB6mLKsJxS2kLwn9shQ8DwA== 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=CpG6Jp9R+93LGglZGsdjkSsB4C6zLVFyEEuIyAxFCe4=; b=dhfqqG7DkYNRDFxx+vc82SvsHPzda5Mb6SneSmEZPSDJHco22fRee5bWJT+auFjZL7ueC+WNwdEVnW4tNJPEn/iRsc/E/o04XlVxFEzwQRPSakymhA9rtWqkl4SiScTMt1hi7StWJPUVK9EhBP3K8PCj+YBW8SndgDLxwoMFpd1Q5jZhcDulFoXLfQvgot7sdu3l77nd+PhtuYXzfiqfHNo3FY+TctRXwITfQ02LEk6s1EhfClonMubo4arjqulKHSotoojxQ60zyblELZ7rZEILZ/XvHOLTd+m1aIFWDXQI04guzKBud4adwHm0KPeh09IfMvGiHhYJo79UK9tEBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CpG6Jp9R+93LGglZGsdjkSsB4C6zLVFyEEuIyAxFCe4=; b=GD4iqgeCR20Q+DaJAys4Cwy5w6OKQv365Buqys/6JGf0o2ZN5e/IvDORKPBRRoRONL9l884KvY0iJMRCj7QaTmYLDpErwhqMh9M+L8l+WPOr2mJAS18El7F/I7lIMbtAA5BMAQ8EivxgXeL3rc1swTirs2HdoIHn1KWRSezbFZk= Received: from DM6PR01MB5324.prod.exchangelabs.com (20.179.54.14) by DM6PR01MB5721.prod.exchangelabs.com (52.132.249.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.20; Mon, 16 Sep 2019 03:43:55 +0000 Received: from DM6PR01MB5324.prod.exchangelabs.com ([fe80::b4d7:e0be:f3cb:9059]) by DM6PR01MB5324.prod.exchangelabs.com ([fe80::b4d7:e0be:f3cb:9059%5]) with mapi id 15.20.2263.023; Mon, 16 Sep 2019 03:43:55 +0000 From: Jerry Hao OS To: "thomas@monjalon.net" CC: "dev@dpdk.org" , Jerry Hao OS Thread-Topic: [PATCH v2] build: add emag(arm64) platform and default config Thread-Index: AQHVbED2bSlku2H/NE+4s2UKwqChVA== Date: Mon, 16 Sep 2019 03:43:54 +0000 Message-ID: <20190916034242.593-1-jerryhao@os.amperecomputing.com> References: <20190912085119.27171-2-jerryhao@os.amperecomputing.com> In-Reply-To: <20190912085119.27171-2-jerryhao@os.amperecomputing.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR03CA0049.apcprd03.prod.outlook.com (2603:1096:202:17::19) To DM6PR01MB5324.prod.exchangelabs.com (2603:10b6:5:178::14) authentication-results: spf=none (sender IP is ) smtp.mailfrom=jerryhao@os.amperecomputing.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [180.167.209.74] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ab9bb17c-cc58-447f-04c6-08d73a5818da x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:DM6PR01MB5721; x-ms-traffictypediagnostic: DM6PR01MB5721:|DM6PR01MB5721: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0162ACCC24 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(39830400003)(376002)(136003)(396003)(366004)(346002)(199004)(189003)(446003)(107886003)(6916009)(81156014)(81166006)(102836004)(186003)(52116002)(1730700003)(8676002)(66946007)(64756008)(66556008)(66476007)(66446008)(50226002)(2906002)(14444005)(3846002)(256004)(6116002)(14454004)(5640700003)(6436002)(966005)(6486002)(478600001)(8936002)(71190400001)(71200400001)(7736002)(25786009)(2501003)(6306002)(11346002)(476003)(54906003)(2616005)(86362001)(76176011)(2351001)(53936002)(1076003)(26005)(486006)(4326008)(316002)(5660300002)(99286004)(6512007)(66066001)(386003)(6506007)(305945005); DIR:OUT; SFP:1102; SCL:1; SRVR:DM6PR01MB5721; H:DM6PR01MB5324.prod.exchangelabs.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1; received-spf: None (protection.outlook.com: os.amperecomputing.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: s3uPGOU8sB0a1DAE9ZV9uCyXGA6uqOKk4h32JegxtkjmOqLTR5Q8TpIMnzeAkLHSSvvEO6+DQPR0RqgDfRz1XGnFz33Y4JDaKSt31mTQ4oKO/a7VA3qz2W5TrhWQfqQqpkdLhuCZj0vbs4336N4mysmOUArBooP4KM1TWL70I5rtGvKgKiyXW72QpnHtxl5kE00M86ue+VC+AKhs0/BDnkorZrjO1jRq5BSrGAxu2s6G9rm1Jlr/pIjzo3ixe7LeXqFJA+EsgA9tzHvEE2iI3O8Pk0RFC69kReW/FW6ZPYbFd0XT4/a2OOMlhLYieoti0g5yYCPqXSdOFjN9BLJJwnl3LzRFofbGO8+1QcwO2pJPaqyeW+eV9SwKr95D6C4FpIujcH0L3TCQo8+wxNh74fB9xMUK0oxzfJhiYRPZE5Q= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab9bb17c-cc58-447f-04c6-08d73a5818da X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2019 03:43:54.6138 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YaG3IOlLmojmg229yKhT5bXHBzqDOQbTJtscW/t2oie760D5OKGPSv78DQ9r/wRr/4gIuIwb1olWaSBYiFnp/bH3vzY1cyTPOuYOv6fxRiw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR01MB5721 Subject: [dpdk-dev] [PATCH v2] build: add emag(arm64) platform and default config 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" config: add emag configuration mk/machine: add emag machine configurations eMAG is Ampere Computing 64-bit ARM processor with 32 Arm v8 64-bit CPU cores. For more information, refer to: https://amperecomputing.com/product/ Signed-off-by: Jerry Hao OS --- config/arm/arm64_emag_linux_gcc | 15 ++++++++++++ config/arm/meson.build | 11 ++++++++- config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 11 +++++++++ mk/machine/emag/rte.vars.mk | 31 ++++++++++++++++++++++++ 5 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 config/arm/arm64_emag_linux_gcc create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mk diff --git a/config/arm/arm64_emag_linux_gcc b/config/arm/arm64_emag_linux_= gcc new file mode 100644 index 000000000..bcb147a5a --- /dev/null +++ b/config/arm/arm64_emag_linux_gcc @@ -0,0 +1,15 @@ +[binaries] +c =3D 'aarch64-linux-gnu-gcc' +cpp =3D 'aarch64-linux-gnu-cpp' +ar =3D 'aarch64-linux-gnu-gcc-ar' +strip =3D 'aarch64-linux-gnu-strip' +pcap-config =3D '' + +[host_machine] +system =3D 'linux' +cpu_family =3D 'aarch64' +cpu =3D 'armv8-a' +endian =3D 'little' + +[properties] +implementor_id =3D '0x50' diff --git a/config/arm/meson.build b/config/arm/meson.build index 979018e16..6c1b85186 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -61,6 +61,11 @@ flags_armada =3D [ ['RTE_CACHE_LINE_SIZE', 64], ['RTE_MAX_NUMA_NODES', 1], ['RTE_MAX_LCORE', 16]] +flags_emag =3D [ + ['RTE_MACHINE', '"emag"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 32]] =20 flags_default_extra =3D [] flags_thunderx_extra =3D [ @@ -98,6 +103,10 @@ machine_args_cavium =3D [ ['0xaf', ['-march=3Darmv8.1-a+crc+crypto','-mcpu=3Dthunderx2t99'], flags_= thunderx2_extra], ['0xb2', ['-mcpu=3Docteontx2'], flags_octeontx2_extra]] =20 +machine_args_emag =3D [ + ['default', ['-march=3Darmv8-a+crc+crypto']], + ['native', ['-march=3Dnative']]] + ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic =3D ['Generic armv8', flags_generic, machine_args_generic] impl_0x41 =3D ['Arm', flags_arm, machine_args_generic] @@ -107,7 +116,7 @@ impl_0x44 =3D ['DEC', flags_generic, machine_args_gener= ic] impl_0x49 =3D ['Infineon', flags_generic, machine_args_generic] impl_0x4d =3D ['Motorola', flags_generic, machine_args_generic] impl_0x4e =3D ['NVIDIA', flags_generic, machine_args_generic] -impl_0x50 =3D ['AppliedMicro', flags_generic, machine_args_generic] +impl_0x50 =3D ['Ampere Computing', flags_emag, machine_args_emag] impl_0x51 =3D ['Qualcomm', flags_generic, machine_args_generic] impl_0x53 =3D ['Samsung', flags_generic, machine_args_generic] impl_0x56 =3D ['Marvell ARMADA', flags_armada, machine_args_generic] diff --git a/config/defconfig_arm64-emag-linux-gcc b/config/defconfig_arm64= -emag-linux-gcc new file mode 120000 index 000000000..21894a31a --- /dev/null +++ b/config/defconfig_arm64-emag-linux-gcc @@ -0,0 +1 @@ +defconfig_arm64-emag-linuxapp-gcc \ No newline at end of file diff --git a/config/defconfig_arm64-emag-linuxapp-gcc b/config/defconfig_ar= m64-emag-linuxapp-gcc new file mode 100644 index 000000000..1db654c89 --- /dev/null +++ b/config/defconfig_arm64-emag-linuxapp-gcc @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +#include "defconfig_arm64-armv8a-linux-gcc" + +CONFIG_RTE_MACHINE=3D"emag" + +CONFIG_RTE_CACHE_LINE_SIZE=3D64 +CONFIG_RTE_MAX_NUMA_NODES=3D1 +CONFIG_RTE_MAX_LCORE=3D32 diff --git a/mk/machine/emag/rte.vars.mk b/mk/machine/emag/rte.vars.mk new file mode 100644 index 000000000..9ce8b6bc9 --- /dev/null +++ b/mk/machine/emag/rte.vars.mk @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +# +# machine: +# +# - can define ARCH variable (overridden by cmdline value) +# - can define CROSS variable (overridden by cmdline value) +# - define MACHINE_CFLAGS variable (overridden by cmdline value) +# - define MACHINE_LDFLAGS variable (overridden by cmdline value) +# - define MACHINE_ASFLAGS variable (overridden by cmdline value) +# - can define CPU_CFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_LDFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_ASFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - may override any previously defined variable +# + +# ARCH =3D +# CROSS =3D +# MACHINE_CFLAGS =3D +# MACHINE_LDFLAGS =3D +# MACHINE_ASFLAGS =3D +# CPU_CFLAGS =3D +# CPU_LDFLAGS =3D +# CPU_ASFLAGS =3D + +MACHINE_CFLAGS +=3D -march=3Darmv8-a+crc+crypto --=20 2.17.1