From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 7F5041B501 for ; Mon, 7 Jan 2019 16:42:18 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x07FfulF026251; Mon, 7 Jan 2019 07:42:15 -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=tAwBx6XQRSwIK+ciBLA1aC1LVOLnyDcv/Z+YXOC13Po=; b=AsFz6bawUE+HbrqlQLkCUBF573gumZu5x5vi/lPj/IsX5RhrC3qVNmE959Jxf7K8oQgJ P2cL/2K02yikjLnT94INbqrIaGIoGf9uSXhqts+oWfyZoAYdTCsCCSySFrkaZYH1e11K 5bKVOzlktozqVFg1ZNOtNQ/WYD0mnnnYuomDD5wUCjtVvNrpD29lDkOcxUTPdXj240fX Cj5WlfAJ72vwBNg1qcedl48GqVqYnly3gVxw10zh5ezY3J2qqu1zxge6tHJIHrlJ3BXq mNGO4OBc3vhauRBeB+1zcOgJsnkU4+oXllbOZQFYK97zhQRAooL6Xbmfz53eg+pMxeTn xQ== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2pv58srxts-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 07 Jan 2019 07:42:15 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 7 Jan 2019 07:42:13 -0800 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (104.47.48.56) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 7 Jan 2019 07:42:13 -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=tAwBx6XQRSwIK+ciBLA1aC1LVOLnyDcv/Z+YXOC13Po=; b=dfnqIEgeEFObRFxuXxt1PbBVyZ5JkfG3jWRtCSKoEQzIp/pynOpsqMvU2z6wMqeur6Q9hxCmxE0NKiZfKmTAP5i4Kq+NRPxCbWVnurCpiGYevv9NeWsVa2nR3qI7Gwup/5MWDYR7etX9Dbb3/1gOJJPmfLNLMGeeG4wt0J46AqI= Received: from CY4PR1801MB1863.namprd18.prod.outlook.com (10.171.255.14) by CY4PR1801MB1989.namprd18.prod.outlook.com (10.171.255.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.6; Mon, 7 Jan 2019 15:42:11 +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.1495.011; Mon, 7 Jan 2019 15:42:11 +0000 From: Pavan Nikhilesh Bhagavatula To: Jerin Jacob Kollanukkaran , "Gavin.Hu@arm.com" , "bruce.richardson@intel.com" , "thomas@monjalon.net" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 3/6] config: add octeontx2 machine config Thread-Index: AQHUpp+N9nkIbzLF2U6bXmfvMJiS1A== Date: Mon, 7 Jan 2019 15:42:10 +0000 Message-ID: <20190107154129.24700-3-pbhagavatula@marvell.com> References: <20190106131933.7898-1-jerinj@marvell.com> <20190107154129.24700-1-pbhagavatula@marvell.com> In-Reply-To: <20190107154129.24700-1-pbhagavatula@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR01CA0102.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::18) To CY4PR1801MB1863.namprd18.prod.outlook.com (2603:10b6:910:7a::14) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [111.93.218.67] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CY4PR1801MB1989; 20:z+7eRAkr7AvVKw5hl7BYlJTNwgX0eSzTrr2elf0KMkrj2vB+IPt6ts8F8PB0wHbP685YHWqugF7B25yqJ0hzMQs7lP//iBKUkL8o1o+LJwP1bYwGBLTVgYTgl0u10BTR/1gXQkFPirVisbWijtB5prgYuoJpZEvH/KSIY3xrI+8= x-ms-office365-filtering-correlation-id: b51b6c04-3770-4068-15db-08d674b6b01d x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(2017052603328)(7153060)(7193020); SRVR:CY4PR1801MB1989; x-ms-traffictypediagnostic: CY4PR1801MB1989: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(3231475)(944501520)(52105112)(3002001)(93006095)(93001095)(10201501046)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:CY4PR1801MB1989; BCL:0; PCL:0; RULEID:; SRVR:CY4PR1801MB1989; x-forefront-prvs: 0910AAF391 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(366004)(376002)(396003)(136003)(39860400002)(189003)(199004)(5660300001)(26005)(53936002)(78486014)(25786009)(256004)(4326008)(76176011)(6512007)(2201001)(81156014)(81166006)(99286004)(8676002)(86362001)(1076003)(316002)(110136005)(68736007)(6436002)(7736002)(97736004)(305945005)(6486002)(2501003)(6506007)(386003)(66066001)(8936002)(14454004)(3846002)(2906002)(106356001)(11346002)(105586002)(52116002)(6116002)(71200400001)(478600001)(446003)(36756003)(486006)(476003)(2616005)(71190400001)(102836004)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1801MB1989; 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: mAWx57c+demew7axcjGM/l6Sgwbf9zlQIidbsCkjOkkkvfrtseuSXx+2WLcMM3Phgx6tT8EglaNX4dXoTqaqJQko0C4zrH4NsAKOpKV5043GkICZW2XI9h+q8BIMmX/zrrRU1335OXnjTiIAdx5Qz3+X3Oqux+OjtUH8UGKso0v7TyikN5z5+N8sndSUNs7SNfQiblWfVSVA8CCkXdCQE1OIOY1wO0de5YrM4E3U08QWFfy2q5LD1yZJenNmUrKI2JsKNhpo3c0JIRti4rQ1CnCy5Xu9EUWYiAc6FiLyUZ1lyS2sz1DQbaWooYNQiEah 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: b51b6c04-3770-4068-15db-08d674b6b01d X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2019 15:42:10.8951 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1801MB1989 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-01-07_07:, , 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=869 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901070137 Subject: [dpdk-dev] [PATCH v2 3/6] 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: Mon, 07 Jan 2019 15:42:18 -0000 From: Jerin Jacob Kollanukkaran Optimized configuration for Marvell octeontx2 SoC. Signed-off-by: Jerin Jacob --- config/defconfig_arm64-octeontx2-linuxapp-gcc | 18 ++++++++++ mk/machine/octeontx2/rte.vars.mk | 34 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 config/defconfig_arm64-octeontx2-linuxapp-gcc create mode 100644 mk/machine/octeontx2/rte.vars.mk 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