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 0DFB21B411 for ; Wed, 9 Jan 2019 11:40:05 +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 x09AZ4a8002163; Wed, 9 Jan 2019 02:40:01 -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=mjEdVidXNZxBz7AQSjTAU76MX8HWntcXnTl3t54tJ+4=; b=qzTdQHR6zSHkjCQaXZ2+BHqSMBbG9Z4kaeX8h7VXCb4GmEmq0N8lfQjtdbmzLnPRsvmy bI7fWbczSy2biXI2SDzDKn9S68M2NLlxnmbS0kbCjtO76ov4kcWMG21XJakRi5sWCD6D i4gfBip1ch9EDFn4hiVzXRS8UoAlhHt7hXduaBaXeeq8O4v9OVbLf+vkS3r5zLPsnzo6 01mI1RZflvsId+bH09djTkfEA2CmVpSP3CaKgRohLK3sympg/J0vyjkjqHe8FlPIW2sN UR8/+4XLQFP+CzavPs7YHkyNYWrIknJNrHs5+H2i7WgjSxqKTp9t2rXp8MQ7VpSPjIwM lQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2pvwjq4ms0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 09 Jan 2019 02:40:01 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 9 Jan 2019 02:40:00 -0800 Received: from NAM05-DM3-obe.outbound.protection.outlook.com (104.47.49.58) by SC-EXCH02.marvell.com (10.93.176.82) 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=mjEdVidXNZxBz7AQSjTAU76MX8HWntcXnTl3t54tJ+4=; b=M//llPJF9OcUomGyscWJ4sC7kwk0WdBGa6bjMZcihgLeEwNh6nhVvPAg5Sh8pIg0XGPI85tiau7Qey7+4tLh0Q1K+L4DZtnKNqrjVby1hnjRf78FWQfGXnVMqHY6K7EkZCLgLjX+05W4tNQA27SN0vWu8KqDxxNvNvwkKsiSyLI= Received: from CY4PR1801MB1863.namprd18.prod.outlook.com (10.171.255.14) by CY4PR1801MB2071.namprd18.prod.outlook.com (10.171.254.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1516.13; Wed, 9 Jan 2019 10:39:55 +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:55 +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 4/5] config: add octeontx2 machine config Thread-Index: AQHUqAepltoq0KcoRUugkElAfT8rww== Date: Wed, 9 Jan 2019 10:39:55 +0000 Message-ID: <20190109103915.29210-4-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; CY4PR1801MB2071; 20:cypwR7JXbYMLudLqkMnG+vEqO3NaH8k4ze/Q2+cNlPwKxWlHdWZ4KQHpVKsCtrMH1Ubi1LX0WDVWYWvwRBcAJOpK7jECAofn+21i/a465C0wV452a22PO+fWXMiVqSms67GnRWDrqxIdnje4aHLAktJDkCBY4UV8tGj7G8e4RFE= x-ms-office365-filtering-correlation-id: d927724e-4e93-4441-cc3a-08d6761ecb75 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(2017052603328)(7153060)(7193020); SRVR:CY4PR1801MB2071; x-ms-traffictypediagnostic: CY4PR1801MB2071: x-microsoft-antispam-prvs: x-forefront-prvs: 0912297777 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(366004)(346002)(376002)(396003)(199004)(189003)(5660300001)(2906002)(14454004)(486006)(2501003)(6436002)(14444005)(256004)(97736004)(106356001)(105586002)(478600001)(6486002)(53936002)(107886003)(6512007)(25786009)(4326008)(36756003)(99286004)(54906003)(8936002)(110136005)(68736007)(81166006)(81156014)(8676002)(305945005)(7736002)(3846002)(316002)(6116002)(66066001)(78486014)(2616005)(476003)(102836004)(2201001)(446003)(186003)(52116002)(6506007)(386003)(76176011)(71200400001)(71190400001)(26005)(86362001)(11346002)(1076003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1801MB2071; H:CY4PR1801MB1863.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: LchfJhNJzFSTG/HcT6+nG7rzkH5tKbVy0Ga3tbRj0lqc4Oa5thl+a9Y1Ae5m+2sJYDgzo7FPVmHHdzZpxjI6LVfOljFpDtdKM1eJctzaJSG6rfV4guWSgQLx3V2+yhbVdHqjZ3v23TwpyuZVTRlNVUnhCUl1vncXv3tsasfFt/+vCFFfFmUYQkT7EW2Q8Lcz7zgNZA+mljlEkPVLirAiHiFszTW4MZ23JAKGVbwJMaIVpFREeraItagIROlC2E1BMSfrssg5VCrQhB+AqwVts/5buNJSf5I81K3ozV+6w/upbLS4PRzUbje2pL76LoO+ 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: d927724e-4e93-4441-cc3a-08d6761ecb75 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2019 10:39:55.6016 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1801MB2071 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=852 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901090090 Subject: [dpdk-dev] [PATCH v4 4/5] config: add octeontx2 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:06 -0000 From: Jerin Jacob Optimized configuration for Marvell octeontx2 SoC. Update meson build to support Marvell octeontx2 SoC. Signed-off-by: Jerin Jacob Signed-off-by: Pavan Nikhilesh --- config/arm/meson.build | 10 +++++- config/defconfig_arm64-octeontx2-linuxapp-gcc | 18 ++++++++++ mk/machine/octeontx2/rte.vars.mk | 34 +++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 config/defconfig_arm64-octeontx2-linuxapp-gcc create mode 100644 mk/machine/octeontx2/rte.vars.mk diff --git a/config/arm/meson.build b/config/arm/meson.build index aca285b6a..8086357a1 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -60,6 +60,13 @@ flags_thunderx2_extra =3D [ ['RTE_MAX_NUMA_NODES', 2], ['RTE_MAX_LCORE', 256], ['RTE_USE_C11_MEM_MODEL', true]] +flags_octeontx2_extra =3D [ + ['RTE_MACHINE', '"octeontx2"'], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 24], + ['RTE_EAL_NUMA_AWARE_HUGEPAGES', false], + ['RTE_LIBRTE_VHOST_NUMA', false], + ['RTE_EAL_IGB_UIO', false]] =20 machine_args_generic =3D [ ['default', ['-march=3Darmv8-a+crc+crypto']], @@ -77,7 +84,8 @@ machine_args_cavium =3D [ ['0xa1', ['-mcpu=3Dthunderxt88'], flags_thunderx_extra], ['0xa2', ['-mcpu=3Dthunderxt81'], flags_thunderx_extra], ['0xa3', ['-mcpu=3Dthunderxt83'], flags_thunderx_extra], - ['0xaf', ['-mcpu=3Dthunderx2t99'], flags_thunderx2_extra]] + ['0xaf', ['-mcpu=3Dthunderx2t99'], flags_thunderx2_extra], + ['0xb2', ['-mcpu=3Docteontx2'], flags_octeontx2_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-octeontx2-linuxapp-gcc b/config/defconf= ig_arm64-octeontx2-linuxapp-gcc new file mode 100644 index 000000000..9a99eada1 --- /dev/null +++ b/config/defconfig_arm64-octeontx2-linuxapp-gcc @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Marvell International Ltd +# + +#include "defconfig_arm64-armv8a-linuxapp-gcc" + +CONFIG_RTE_MACHINE=3D"octeontx2" + +CONFIG_RTE_CACHE_LINE_SIZE=3D128 +CONFIG_RTE_MAX_NUMA_NODES=3D1 +CONFIG_RTE_MAX_LCORE=3D24 + +# Doesn't support NUMA +CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=3Dn +CONFIG_RTE_LIBRTE_VHOST_NUMA=3Dn + +# Recommend to use VFIO as co-processors needs SMMU/IOMMU +CONFIG_RTE_EAL_IGB_UIO=3Dn diff --git a/mk/machine/octeontx2/rte.vars.mk b/mk/machine/octeontx2/rte.va= rs.mk new file mode 100644 index 000000000..e209cf492 --- /dev/null +++ b/mk/machine/octeontx2/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.2-a+crc+cry= pto+lse) +MACHINE_CFLAGS +=3D $(call rte_cc_has_argument, -mcpu=3Docteontx2) --=20 2.20.1