From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 17AAB1B3AE for ; Wed, 9 Jan 2019 11:40:04 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x09AZ5qD002166; Wed, 9 Jan 2019 02:40:00 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=J3bOMYMtjRH2fETWZAgnbzKDSQ0ZiOgIQmgNe5hn0Co=; b=FfX+k8uEErCHGRGiFNDxH6KiEgvV53Iezg95R1hR65CDnyxWm3hYWzEn+EAo7RwfZmBT LONoaoOeqyTP3vJCi7BDr1oEBZNct5wenxss7mAw2W/Mgm4WixYeZNbAOTTP1xYmo/D9 RbbuhNJhheRekZiYJ5pB87ACim2W1tWsXflztRI7v3hfNnQxw8flDb/hyTw3cEX5WCxx JdY2MK/FWVOKYnJHss1MJDgqZL4PuYcEzE1CKdGg1LwrYtyxiP823laTPg19h+zOYStf +RwljIqYE+7ClbOjcKlOfqJ+60tLo5vviAkDY9nmYkpAP35jtXaxT0z1kS1tYvrwf390 6Q== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2pvwjq4mrx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 09 Jan 2019 02:40:00 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 9 Jan 2019 02:39:59 -0800 Received: from NAM01-BN3-obe.outbound.protection.outlook.com (104.47.33.53) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 9 Jan 2019 02:39:59 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J3bOMYMtjRH2fETWZAgnbzKDSQ0ZiOgIQmgNe5hn0Co=; b=vyKk07i72rgjpk7G8lKTA+wdXsdUIY0aoE0C3EwoDPKcslv5kovNPhJc2xq7FnWZyAResDhmJf3LVmsy5s+D0sX0ymSsvph5tSl0ZFiRfPXrjOEMFq1TngXhs8yu0rKJvCXlujP6NREZHqfmzqVw2WmvkTdEjeI5z8Oo7cSi3to= Received: from CY4PR1801MB1863.namprd18.prod.outlook.com (10.171.255.14) by CY4PR1801MB1895.namprd18.prod.outlook.com (10.171.255.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.7; Wed, 9 Jan 2019 10:39:52 +0000 Received: from CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::8d37:71d9:3b0c:ad00]) by CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::8d37:71d9:3b0c:ad00%2]) with mapi id 15.20.1516.010; Wed, 9 Jan 2019 10:39:52 +0000 From: Pavan Nikhilesh Bhagavatula To: Jerin Jacob Kollanukkaran , "Gavin.Hu@arm.com" , "bruce.richardson@intel.com" , "thomas@monjalon.net" CC: "dev@dpdk.org" , Pavan Nikhilesh Bhagavatula Thread-Topic: [dpdk-dev] [PATCH v4 3/5] config: add thunderx2 machine config Thread-Index: AQHUqAen27WAQZd3JU2EIcc77F9YGg== Date: Wed, 9 Jan 2019 10:39:52 +0000 Message-ID: <20190109103915.29210-3-pbhagavatula@marvell.com> References: <20190106131933.7898-1-jerinj@marvell.com> <20190109103915.29210-1-pbhagavatula@marvell.com> In-Reply-To: <20190109103915.29210-1-pbhagavatula@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR01CA0086.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1::26) To CY4PR1801MB1863.namprd18.prod.outlook.com (2603:10b6:910:7a::14) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [49.205.221.51] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CY4PR1801MB1895; 20:4w6PPvsx2x8u9dE5Dh3bLPrMIjRgUrFy5Xb27S7+/I3A6lktTlYtC3CzxmDGyzUe4JcQ5U82tVYol/rynbKg0bDpixvamp7/1BO1ikk41ngpo6mpw1w29LYZAQ9XXVfI/Q9ZjAob8gaq5bgOwGXZ+UyVMKnqK2kD6Hw/a0+BZq4= x-ms-office365-filtering-correlation-id: 33fdf522-92d4-4f8c-394c-08d6761ec99b x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(2017052603328)(7153060)(7193020); SRVR:CY4PR1801MB1895; x-ms-traffictypediagnostic: CY4PR1801MB1895: x-microsoft-antispam-prvs: x-forefront-prvs: 0912297777 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(376002)(136003)(366004)(396003)(189003)(199004)(36756003)(105586002)(106356001)(6116002)(68736007)(3846002)(5660300001)(186003)(26005)(25786009)(4326008)(14444005)(102836004)(52116002)(76176011)(256004)(6506007)(386003)(486006)(81156014)(81166006)(8676002)(107886003)(2616005)(7736002)(2501003)(476003)(53936002)(6486002)(478600001)(305945005)(966005)(8936002)(1076003)(11346002)(446003)(6436002)(97736004)(14454004)(2906002)(110136005)(316002)(6306002)(6512007)(54906003)(78486014)(2201001)(66066001)(71190400001)(86362001)(71200400001)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1801MB1895; H:CY4PR1801MB1863.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: pgNrT027OAyz5oRUHvycgqBzuNPYD5xSj0872eJXFi/zMV72qWX/urSt61iNOmd6jbrW5voHUy1cQRPP6ZYgfBmvpy/ULqjYe6uaaOOZu7LmKbar2XjCx+W7quCdgAwoFmunrXcJ6aNuNTZoacfdGN8A/yQto2Vwo6yi0VVVCpjD540FxDr6ccjWakp0UEg2y6r7aySyZ7oNsfXk4dKxF3R/TNZE5neGfNXnSPEJN6VTQ2/d+68rWlKGtOLRsIDYIQpft/bkWC2/nUY67esrpsMMLepz0ACBCoSPdhBf1IXE2bI/n8JsvAx5amZV96FS spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 33fdf522-92d4-4f8c-394c-08d6761ec99b X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2019 10:39:52.5094 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1801MB1895 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-01-09_06:, , signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=769 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901090090 Subject: [dpdk-dev] [PATCH v4 3/5] 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: Wed, 09 Jan 2019 10:40:05 -0000 From: Jerin Jacob Optimized configuration for Marvell thunderx2 SoC. Update meson build to support Marvell thunderx2 SoC. Product details are here: https://www.marvell.com/server-processors/thunderx2-arm-processors/ Signed-off-by: Jerin Jacob Signed-off-by: Pavan Nikhilesh --- config/arm/meson.build | 9 ++++- config/defconfig_arm64-thunderx2-linuxapp-gcc | 11 ++++++ mk/machine/thunderx2/rte.vars.mk | 34 +++++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 config/defconfig_arm64-thunderx2-linuxapp-gcc create mode 100644 mk/machine/thunderx2/rte.vars.mk diff --git a/config/arm/meson.build b/config/arm/meson.build index 576363fc0..aca285b6a 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -54,6 +54,12 @@ flags_default_extra =3D [] flags_thunderx_extra =3D [ ['RTE_MACHINE', '"thunderx"'], ['RTE_USE_C11_MEM_MODEL', false]] +flags_thunderx2_extra =3D [ + ['RTE_MACHINE', '"thunderx2"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 2], + ['RTE_MAX_LCORE', 256], + ['RTE_USE_C11_MEM_MODEL', true]] =20 machine_args_generic =3D [ ['default', ['-march=3Darmv8-a+crc+crypto']], @@ -70,7 +76,8 @@ machine_args_cavium =3D [ ['native', ['-march=3Dnative']], ['0xa1', ['-mcpu=3Dthunderxt88'], flags_thunderx_extra], ['0xa2', ['-mcpu=3Dthunderxt81'], flags_thunderx_extra], - ['0xa3', ['-mcpu=3Dthunderxt83'], flags_thunderx_extra]] + ['0xa3', ['-mcpu=3Dthunderxt83'], flags_thunderx_extra], + ['0xaf', ['-mcpu=3Dthunderx2t99'], flags_thunderx2_extra]] =20 ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic =3D ['Generic armv8', flags_generic, machine_args_generic] diff --git a/config/defconfig_arm64-thunderx2-linuxapp-gcc b/config/defconf= ig_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 +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.va= rs.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+cry= pto) +MACHINE_CFLAGS +=3D $(call rte_cc_has_argument, -mcpu=3Dthunderx2t99) --=20 2.20.1