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 152B4A2EEB for ; Thu, 12 Sep 2019 11:32:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F2D5B1E883; Thu, 12 Sep 2019 11:32:13 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00076.outbound.protection.outlook.com [40.107.0.76]) by dpdk.org (Postfix) with ESMTP id 407B01E882 for ; Thu, 12 Sep 2019 11:32:12 +0200 (CEST) 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=Mk0zzbxHRSiOS2tRORqGPUczKfqnZ72FIzDYKdc6zbk=; b=TzMvgmd4xtTA46yKJmjb0n5TAKXWbcM7CJDtWkG9RTp21b2hfsJhFbu3RuibT03+95vE0iGCzAFxql4rJ9qyOtRmsn+9cAFmcDMyQ81jKKOLN2b7vxMKwt1hgGouPSEd22J1UxBtgiLGuQvoZHgodKfyeiC6qryHWb19T18VDAw= Received: from VI1PR08CA0087.eurprd08.prod.outlook.com (2603:10a6:800:d3::13) by AM0PR08MB3348.eurprd08.prod.outlook.com (2603:10a6:208:65::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.17; Thu, 12 Sep 2019 09:32:07 +0000 Received: from AM5EUR03FT042.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::202) by VI1PR08CA0087.outlook.office365.com (2603:10a6:800:d3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.13 via Frontend Transport; Thu, 12 Sep 2019 09:32:07 +0000 Authentication-Results: spf=temperror (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=none action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT042.mail.protection.outlook.com (10.152.17.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.14 via Frontend Transport; Thu, 12 Sep 2019 09:32:05 +0000 Received: ("Tessian outbound 09ff1df8404a:v30"); Thu, 12 Sep 2019 09:32:03 +0000 X-CR-MTA-TID: 64aa7808 Received: from dcb1f43670d8.1 (cr-mta-lb-1.cr-mta-net [104.47.10.57]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 45299EB8-DDAF-49FD-8CE0-1A9E00A65000.1; Thu, 12 Sep 2019 09:31:58 +0000 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03lp2057.outbound.protection.outlook.com [104.47.10.57]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id dcb1f43670d8.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384); Thu, 12 Sep 2019 09:31:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bhVOfwbKr12WYI1brEPdLtMMx1MQl8+7x783s+TPwheyqousYwxQYkSupLHuV+FUc1qik9ALjj21mELC7qokHPNHZ5SCYjVuxo5ryRYC2lT1h5gAjdBgmi03zn8Fmwr9DDe1hkKL5TM0XYhZbUJBVlhM6GE86sX0CKTa7IPFxaO4jcYS/EhU/0+qFW7XNrvqUgIocqNCQQbrQmgYcIXiJPuwhMeX+0RGlBH9vtvtcStlVVA60m4cavbXa/6mXMek/h6lZTXkGB06Z1yS+iSa2sa+yDj+CHwvGW44QEbBEKn8313Ew4MI5h4f9TJ204UpbdwibayNUSVGG/gXi00Fmw== 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=pDpciDbnQIf8pM2e/qmmXwzPf/lYiY3rldCkmtYOWG0=; b=WvvWhITm3C2qzCQ1XHE9Wq8MfS/HROIsenTvqRZmvarYGqs8JS/HEBdCG5V7QQ8SNpxp4/H4MmWcCn2/nFtyb4d9dV+PMLsTUzhTcAygrmsEz3hikQQR99PsM1pL4C6mBVClVfjmeGiTKcUTkUc2Cc4kmiQt1oLuWed5kBKyfokmCBdMaNSqcidk1fiqqIhy4lTJ+NDGaBYrr9+xR/4B08CUjIYxIY0NTN5jeNdXb6F53ryECxajMUKlbrgcXFba9V4iGP5e1KWjY4WXJMWtwDWOkWxvOD+VtTTgM+IkREhynqewIZC6MoIogsf8DBtpWqNCGu0jM7rDbzRPln6weg== 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=pDpciDbnQIf8pM2e/qmmXwzPf/lYiY3rldCkmtYOWG0=; b=+IQilIF+zJuXJhT+HWuBbrv8ig1oXgaZ0Rm4i+Y4qXt2q3PZzfMSWcjb7ecqxx7FWNSevNxuIoH8cpDbm2MyGc75QALC+WSdJMklwMYUV+ny49PucXAoB31nwDJU9IGlWmmpKpOapW3uFgzzBZiG0v1Sgsrp7534sFMqXZ9u8fQ= Received: from VI1PR08MB5376.eurprd08.prod.outlook.com (52.133.244.200) by VI1PR08MB3789.eurprd08.prod.outlook.com (20.178.15.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.15; Thu, 12 Sep 2019 09:31:56 +0000 Received: from VI1PR08MB5376.eurprd08.prod.outlook.com ([fe80::c09a:49d3:eab2:f707]) by VI1PR08MB5376.eurprd08.prod.outlook.com ([fe80::c09a:49d3:eab2:f707%3]) with mapi id 15.20.2241.022; Thu, 12 Sep 2019 09:31:56 +0000 From: "Gavin Hu (Arm Technology China)" To: Jerry Hao OS , "thomas@monjalon.net" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 1/1] build: add emag(arm64) platform and default config Thread-Index: AQHVaUd2F/WJvz4T6kGlX8YJRioDg6cnxprA Date: Thu, 12 Sep 2019 09:31:55 +0000 Message-ID: References: <20190912085119.27171-1-jerryhao@os.amperecomputing.com> <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-ts-tracking-id: af9cb0fd-4be1-44cf-9339-0dacbb99afec.0 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Gavin.Hu@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: db9bd7bb-335f-4784-29ca-08d737641347 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam-Untrusted: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VI1PR08MB3789; X-MS-TrafficTypeDiagnostic: VI1PR08MB3789:|AM0PR08MB3348: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:6108;OLM:6108; x-forefront-prvs: 01583E185C X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(396003)(366004)(136003)(376002)(346002)(13464003)(199004)(189003)(8936002)(53936002)(256004)(86362001)(81166006)(81156014)(14454004)(6116002)(9686003)(14444005)(6436002)(305945005)(66446008)(66946007)(66476007)(66556008)(64756008)(66066001)(6246003)(76116006)(55016002)(229853002)(4326008)(7736002)(7696005)(53546011)(55236004)(186003)(26005)(74316002)(2501003)(486006)(25786009)(102836004)(76176011)(476003)(11346002)(52536014)(3846002)(316002)(5660300002)(99286004)(2906002)(6506007)(508600001)(110136005)(71200400001)(71190400001)(446003)(33656002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB3789; H:VI1PR08MB5376.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info-Original: bGySL4zZoDU+5xTxG+q/QyUGnAJDJnCtWcAmC5MHGHsttPuWUURBHeremdwuKfxex7586qrpsrd4xuihxO/Ybyk9u7c8K5wDTAqVrDmrtnzkruXSFYa+17ZZW6F+mewVoFOcRBciXIPvh5ZlHNwTvzsukgOXuU2AvX+LAByowVVpjFu5TGEAbsMykzAIK8LCNWaDa3KyMonequEvg56B8P6kHuVDsAi1F/1PlvgGY2WBnIs82T9OA+Ib5AWh8GWbAkdbBKKUHrb0ruW/10xuqiGE7Q4Iw9l+G36reH+22iACQavxku9ELPYEj9Vq8TuG7L2OcKTGHnWCMaiHMvwrLdOgjdOqVAJRkd2UaX5mi7FXaZ+U5wTRH+zpWGYDy6fiEImv6/OUum/KQpEUwp/Wyxrs8BAsHDPhGEuv0P1JOx0= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3789 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gavin.Hu@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT042.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)(136003)(346002)(39860400002)(396003)(376002)(189003)(13464003)(199004)(40434004)(26005)(486006)(74316002)(76176011)(186003)(305945005)(26826003)(336012)(36906005)(316002)(110136005)(11346002)(47776003)(6506007)(53546011)(102836004)(7696005)(446003)(14454004)(63350400001)(7736002)(70206006)(70586007)(76130400001)(2501003)(8936002)(8746002)(81156014)(508600001)(33656002)(81166006)(52536014)(66066001)(2906002)(9686003)(97756001)(6246003)(22756006)(25786009)(46406003)(229853002)(23726003)(3846002)(6116002)(86362001)(356004)(14444005)(5024004)(4326008)(55016002)(476003)(126002)(50466002)(5660300002)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR08MB3348; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:TempError; 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: 6d6c8e9c-442b-408f-eb8c-08d737640daf X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(710020)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM0PR08MB3348; X-Forefront-PRVS: 01583E185C X-Microsoft-Antispam-Message-Info: DCgrPN6br9Ps53aVWn1aLclTe7RZRf31rS5CJaXhaBxXWkavuK61E6Rbc1XqbDBwVmXE1CAbDMSc+MDAEvSJTi2X4W6H48LMK+6LeSmZbBb2wx8aTkqcdjAhdANqLLq/aJwH4B//4yrp9JUTrqhmA+yRGszPrfrCqxwUwgm0TtzF/4q7VzZVkpqujZF8mJS5EfM8gjHW5yGfsJCYRwFiRC6qHBeJ+tiogXUCLPsdjhQeDPIsi3Va/o5EeEsaKSwySGocU5l+6f/1dDeNJBZRiG7CfnlcTyONABOdfz3S633SDqiPoeg2l8whR3nKZEzkJRbqXRDYkVuZg8fpsN6E8i8NxmdJ/deY4gcghlkYmEQzAxPoFRwSUU28JQ28r2t0mV/DHoJN+G9SE8+ENI7UvipS4Z1XcfUR03BRzLRvyiQ= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2019 09:32:05.5332 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: db9bd7bb-335f-4784-29ca-08d737641347 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: AM0PR08MB3348 Subject: Re: [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" Hi Jerry, Please use --in-reply-to and -v options to chain your different versions of= patches and make the old ones "Superseded". /Gavin > -----Original Message----- > From: dev On Behalf Of Jerry Hao OS > Sent: Thursday, September 12, 2019 4:53 PM > To: thomas@monjalon.net > Cc: dev@dpdk.org; Jerry Hao OS > Subject: [dpdk-dev] [PATCH 1/1] build: add emag(arm64) platform and defau= lt > config > > 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]] > > 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]] > > +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_generic] > 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_arm= 64- > 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_arm64-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 Reviewed-by: Gavin Hu > -- > 2.17.1 IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.