From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130044.outbound.protection.outlook.com [40.107.13.44]) by dpdk.org (Postfix) with ESMTP id 338DF1B492 for ; Mon, 7 Jan 2019 01:21:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=41Epd8t6EfU6P4VjusaOJjBg99wzK7vhcX9D7e5DRI4=; b=oAeG8Bu8kXd/O8E9FIA6QEsUYZCmeJ2cJ5TuXmvRM8CaYyApGFdAAslaVpueD/5ywx4wxwUc88dA1wV3G7h9ttrX0/uAJOJWPO6tvh0RqTDKM4f+0m6dPI912psvyhI8zOr9vVFsq0pfVa/D0OYqKiE7U3PY9JzULJD3I9lmaA0= Received: from VI1PR08MB3167.eurprd08.prod.outlook.com (52.133.15.142) by VI1PR08MB3487.eurprd08.prod.outlook.com (20.177.59.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.9; Mon, 7 Jan 2019 00:21:11 +0000 Received: from VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::8960:6756:4cdc:3954]) by VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::8960:6756:4cdc:3954%3]) with mapi id 15.20.1495.011; Mon, 7 Jan 2019 00:21:10 +0000 From: "Gavin Hu (Arm Technology China)" To: "jerinj@marvell.com" , "thomas@monjalon.net" CC: "dev@dpdk.org" , "jerinj@marvell.com" , nd Thread-Topic: [dpdk-dev] [PATCH 2/3] config: add thunderx2 machine config Thread-Index: AQHUpcKSFgSDBRQiTkeRUlV19tlr/aWi8AKw Date: Mon, 7 Jan 2019 00:21:10 +0000 Message-ID: References: <20190106131933.7898-1-jerinj@marvell.com> <20190106131933.7898-2-jerinj@marvell.com> In-Reply-To: <20190106131933.7898-2-jerinj@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gavin.Hu@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR08MB3487; 6:iyK2Ylvjl1pWs7zgUkXbhDv/W5+OzkJwdC36pSI5ZoWCqtlvvTinYAwSBhK/X7V5LLa/KpDOmVGbbtkRcDpyD2cy3XS/vIWFjFa+kk0q1lE0I/tjyFEzM/Vgr9a5oWFhvUZzU701++sLH4RbMNhnGuv2OWSz/6iu7FGKtKBCWLSxtXa0byS6VzekF4c3Y3wIYxJYGpZuH6mosGayuGQHGMit0ceifmyM9V4wKpoFPWqbq5a3+D2RhxnVVT6fPoc5B1m5pXb7G/klntJ0a7aSoedJsiNDzESdhUfjM7m+rOr0k8c4pdoRR35/yjU7YFQnwIE5pglBKx8HQ4NfrKqdNqNKaNSgrUCxY81FQWOflOTgKvYalRU6/ZczG0V8mzo++O0uuLYZJBh9E4Wj9IOQq9fqgD4EzPZpSjJXGzKDrwAQhBxDKhtT/rCgEL6L4Ldbhr2v5FTlDqmsmMjIGGIgsA==; 5:ramKmsR74Ll9pBTi/uyUJny/Nr7mQ6v7dz1IVygVbq6yioS+LIacWEWyUqwsINDHMbd3QMyiYoogv2Nm6UGfDGng/uWP2QRQ+H66faSyVWfzWyg42nAD3iQH4nMsDijPzre56j6YILBIQNDyWS36PM7fk0FRU0CtdneZyvnB4/DCAs166k9CxU9nbzdWXg4OvjGZPEM50KmU+SRNSYLl1A==; 7:b+frszMsF7bxs84uGtzug2Kh3E2vHYQrbzCS1UByMqlm71enZprHhRfnz9G8RkK3d9JvLF/kRkiqqH1/eE7d3oqLVeeFKvFsGpLUH019U6u8dhIjHh/u/I6Wtag3ujExAPrf89gnch5V/CL3jmIETA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: d1e17d9f-c848-4b93-b541-08d6743606b9 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR08MB3487; x-ms-traffictypediagnostic: VI1PR08MB3487: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(10201501046)(93006095)(93001095)(3231475)(944501520)(52105112)(3002001)(6055026)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:VI1PR08MB3487; BCL:0; PCL:0; RULEID:; SRVR:VI1PR08MB3487; x-forefront-prvs: 0910AAF391 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39850400004)(396003)(376002)(136003)(346002)(366004)(13464003)(199004)(189003)(55016002)(68736007)(14454004)(53936002)(6436002)(25786009)(4326008)(476003)(11346002)(446003)(102836004)(256004)(7696005)(76176011)(66066001)(316002)(99286004)(6246003)(53546011)(6506007)(9686003)(6306002)(486006)(54906003)(110136005)(8936002)(71190400001)(305945005)(6116002)(478600001)(229853002)(3846002)(26005)(33656002)(55236004)(8676002)(105586002)(81156014)(81166006)(71200400001)(72206003)(86362001)(2501003)(106356001)(2906002)(5660300001)(966005)(74316002)(97736004)(7736002)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB3487; H:VI1PR08MB3167.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: G3d8v0Ca7f4Al6FcQiQMxEyHolUGibQIoN76H17AnKt9muobXCyNYPESEMggEXGAM9Jt0NFiXYED2R6HwqkyXeIiMaukbzWb53U/0J8q+iHac8tt6oMUoZhTsBBRbivSNemRqpPToirPOQ5ZhqsidtkDXCO742dAG297mS9ImkvNBhD1HSXQH31Ck97qQoFbb5iBsZ0ivk9Z1w62iLCXw6eMMerdFJORDDnrPUzFNPPbGWYSSyUE4uZ4aht02mat8+6IIRViDn9TYWgn28gdjxfp2d1xyVogVQ1EUD7Zb99AsM30CNBWDmmXfzTYUj7m spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1e17d9f-c848-4b93-b541-08d6743606b9 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2019 00:21:10.7831 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3487 Subject: Re: [dpdk-dev] [PATCH 2/3] config: add thunderx2 machine 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: , X-List-Received-Date: Mon, 07 Jan 2019 00:21:14 -0000 > -----Original Message----- > From: Jerin Jacob Kollanukkaran > Sent: Sunday, January 6, 2019 9:20 PM > To: thomas@monjalon.net > Cc: dev@dpdk.org; Gavin Hu (Arm Technology China) ; > jerinj@marvell.com > Subject: [dpdk-dev] [PATCH 2/3] config: add thunderx2 machine config >=20 > Optimized configuration for Marvell thunderx2 SoC. >=20 > Product details are here: >=20 > https://www.marvell.com/server-processors/thunderx2-arm-processors/ >=20 > Signed-off-by: Jerin Jacob > --- > config/defconfig_arm64-thunderx2-linuxapp-gcc | 11 ++++++ > mk/machine/thunderx2/rte.vars.mk | 34 +++++++++++++++++++ > 2 files changed, 45 insertions(+) > create mode 100644 config/defconfig_arm64-thunderx2-linuxapp-gcc > create mode 100644 mk/machine/thunderx2/rte.vars.mk >=20 > diff --git a/config/defconfig_arm64-thunderx2-linuxapp-gcc > b/config/defconfig_arm64-thunderx2-linuxapp-gcc > new file mode 100644 > index 000000000..27db58e50 > --- /dev/null > +++ b/config/defconfig_arm64-thunderx2-linuxapp-gcc > @@ -0,0 +1,11 @@ > +# SPDX-License-Identifier: BSD-3-Clause > +# Copyright(c) 2018 Marvell International Ltd > +# > + > +#include "defconfig_arm64-armv8a-linuxapp-gcc" > + > +CONFIG_RTE_MACHINE=3D"thunderx2" > + > +CONFIG_RTE_CACHE_LINE_SIZE=3D64 ThunderX is 128, ThunderX2 downsized the cache line?=20 > +CONFIG_RTE_MAX_NUMA_NODES=3D2 > +CONFIG_RTE_MAX_LCORE=3D256 > diff --git a/mk/machine/thunderx2/rte.vars.mk > b/mk/machine/thunderx2/rte.vars.mk > new file mode 100644 > index 000000000..b80dc8680 > --- /dev/null > +++ b/mk/machine/thunderx2/rte.vars.mk > @@ -0,0 +1,34 @@ > +# SPDX-License-Identifier: BSD-3-Clause > +# Copyright(c) 2018 Marvell International Ltd > +# > + > +# > +# 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 > + > +include $(RTE_SDK)/mk/rte.helper.mk > + > +MACHINE_CFLAGS +=3D $(call rte_cc_has_argument, -march=3Darmv8.1- > a+crc+crypto) > +MACHINE_CFLAGS +=3D $(call rte_cc_has_argument, -mcpu=3Dthunderx2t99) > -- > 2.20.1