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 C836DA2EEB for ; Thu, 12 Sep 2019 10:52:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A41671E8BC; Thu, 12 Sep 2019 10:52:42 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770139.outbound.protection.outlook.com [40.107.77.139]) by dpdk.org (Postfix) with ESMTP id 779FF1E8BC for ; Thu, 12 Sep 2019 10:52:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N/oY3iRZoYYBM+UhXogsRjU/756Alzp84oOtnEieNGIsEhrvnEksBO1C5+fSk1JCxJuqdYkrC2CHqYXEtM14ZRxjVh7nuWGTnCl57rv24EpRK+yqbWric3LFRdAj/Az3kib8PN0HyB1uf2zHX3khCr3jTYupK8tdgmERSSnzu0sLMXRSPbE1yVmgOY0QaL3Sp9j346aUKPhv21EK/p6rMtCrarIkWy6TrZB/mknkBWkne8IlYqgv5PRv+KC53w+BXjvB1KCXF5WKfUlKPmd5xjPlvW+QI03jfIZmcOj561w2VoEpXXJi9JqLau9jiV4PSQAeGKR5MPKZNnLt9nFpgg== 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=b4ryGjbotxA//uGPFu9q7bmHH1HNmhol0UPkqoQtHUE=; b=gFQLrcGFbvgASNtfPK1xGcmUAMOz24Ppr8sOgt5Xjg8dc3IxkIagny1C1sMQYg7Ypw8dCL9DwKNaTQ0MQPEmnbqVXnfqcZAJDoX7luj7EEegLLPZ6XYlPpttZQrhpHWFaUh2P+aSofAkrnqvSM4Y4JU0nATch9YO47lmsnlLFDGeJ+ty+Ism6y94F2FSDai3DkL2aD8W1YIGXFNash5vHJmd+Aa00A9l/ft7TqT+FPM2IcT2WRIwT8Kfq6pqQheMnx2kX66uo8F8R4tiYThpr97bJUhYPRr/4dpqUZw07dtDZZbW0e3nQ0HQTNWG6amyshDdfKKokLd5FTYekPr5Fw== 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=b4ryGjbotxA//uGPFu9q7bmHH1HNmhol0UPkqoQtHUE=; b=pHAu7vrP7xcU9XRJyuKGaP11/miP15dIaO1z5msb31XWw5F/tQWQMQgoN5yStpxkLBjlCnWkSobVuva+88G4nANDw5hqrn/Uoks1ICDP9KfvIKY3ys2YScf0duvI5A7PoNtrrgjhV3LJHTVHaFxv9Yu9QnvYNHGM+09LmMutg+w= Received: from DM6PR01MB5324.prod.exchangelabs.com (20.179.54.14) by DM6PR01MB3930.prod.exchangelabs.com (20.176.66.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.16; Thu, 12 Sep 2019 08:52:39 +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.016; Thu, 12 Sep 2019 08:52:39 +0000 From: Jerry Hao OS To: "thomas@monjalon.net" CC: "dev@dpdk.org" , Jerry Hao OS Thread-Topic: [PATCH 1/1] build: add emag(arm64) platform and default config Thread-Index: AQHVaUduWxmsPYNVvkGVwEGs4G8vaQ== Date: Thu, 12 Sep 2019 08:52:39 +0000 Message-ID: <20190912085119.27171-2-jerryhao@os.amperecomputing.com> References: <20190912085119.27171-1-jerryhao@os.amperecomputing.com> In-Reply-To: <20190912085119.27171-1-jerryhao@os.amperecomputing.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR02CA0210.apcprd02.prod.outlook.com (2603:1096:201:20::22) 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: d69055cf-cef7-41f1-d7fa-08d7375e90b7 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:DM6PR01MB3930; x-ms-traffictypediagnostic: DM6PR01MB3930:|DM6PR01MB3930: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 01583E185C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(39830400003)(366004)(136003)(396003)(376002)(346002)(189003)(199004)(7736002)(5660300002)(52116002)(66946007)(99286004)(6916009)(14454004)(76176011)(26005)(2616005)(11346002)(446003)(386003)(102836004)(5640700003)(6506007)(186003)(6512007)(305945005)(53936002)(25786009)(50226002)(8936002)(4326008)(6116002)(3846002)(2906002)(81166006)(81156014)(8676002)(6486002)(1730700003)(2501003)(54906003)(66446008)(6436002)(66066001)(64756008)(66476007)(66556008)(107886003)(478600001)(2351001)(71190400001)(71200400001)(476003)(316002)(1076003)(256004)(14444005)(486006)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM6PR01MB3930; H:DM6PR01MB5324.prod.exchangelabs.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:0; 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: VWEnGvVcmeaYT6sSM2jENj3TSYVB67tKTvuoRWua+VN0RMJjW5zQW6+d4/TmdqOnURP4Bltgv4gyTts6bW/IQFarwL1ELtK2rdlUUqD537fCO29/Lqc+sSFGuDGIS7QWUNiC9w/KA7O2Fg6PFu8Z+AvEPUrWUjoV+YWx6l3LNRyOttFHB9JQVq1KpxDWtHkoa54GEPISx8adRajnR8ceGQ1tnWkctHvF/JX6iN6StLTXF+/WruiUNrA/NhwC8GbjK6JQ0xHdFY7b4ncCxGalYFwInP69uPgRWaNrTp+e/WfZW5NE17mC773IBuQktFADJGj1dhUUWnUlv++29zXltiB/8n7THpF29wmzxIQQSvAWbOjPJYADk9NOjbqtByHQbu8nQWYuaVgxNTvRfEEEKOBxgxGE0pnT6EU/eB6Fffc= 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: d69055cf-cef7-41f1-d7fa-08d7375e90b7 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Sep 2019 08:52:39.1884 (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: Eb5cBilolpPa6TBqnbUBwOVbNzUdD15G409X3tFC4trFdkAT8KW9gSlPk57Yrme11s84k3qXiIPI+sBxK8ELBHP9mPPGtHAIMG9kTgDsA5s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR01MB3930 Subject: [dpdk-dev] [PATCH 1/1] 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" This patch is to add the emag default CACHE_LINE_SIZE settings and ARCH variable definitions; Added the meson build config. 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