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 810553798 for ; Sun, 24 Feb 2019 19:11:44 +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 x1OI4WHh006817; Sun, 24 Feb 2019 10:11:39 -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=bIIVKmbdPGMlDR6gQgqTx5+sqWEbh1ZNVEO4thCDS5w=; b=YLYs5Dv5uU/CyiGy+8adfKX+CH4ecF+QD+dNjT08Yo6H51o9UNtvWVcTpvPw666Mq6f+ R7ISdz+GRn3Zik852SNeDTpYhu5/DcxNHoqYxhHe3gUItEZoAIErWlNj//KiSEWjqObJ rSiFAy8JLs40uysoTyN3yfXUqCTnduh0HbhEPjFeQZiqKRlJPXgzCWOIrsb+aRncM53e 7kp3eOPVHA0jtBDeiumvhLWJS1PIURbmj1G8FTte1WnKru5W7JQZ3L2jPDVUwsz7wY4T 4FvKnrI4f0Jr+PrMloM1GmxR0mC/WogeIZ6Y/8ssLc9DbbqhtGmRjPSZqMzw/sXaqrlR yA== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 2qu4dstgy7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 24 Feb 2019 10:11:39 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 24 Feb 2019 10:11:38 -0800 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (104.47.32.58) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Sun, 24 Feb 2019 10:11:38 -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=bIIVKmbdPGMlDR6gQgqTx5+sqWEbh1ZNVEO4thCDS5w=; b=fogUnyOtPKSiG7TRuVdbPTXMWsPVuKHFNXPy21ctNr9T8XZvhWuV2uyhN6t5ZgG2ixHMJiTgB1DwXB5Qpw65TOJfrgQOAmUcFZLKF9grHlTgWl6Q33w+ER7WL4JTACLGsPY/iw7c/7Dcb8LisIHfvL1L85KJbP0kS9sGFjLmGSA= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2679.namprd18.prod.outlook.com (20.179.94.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.18; Sun, 24 Feb 2019 18:11:36 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::910b:ab85:3e93:70c7]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::910b:ab85:3e93:70c7%4]) with mapi id 15.20.1643.019; Sun, 24 Feb 2019 18:11:36 +0000 From: Jerin Jacob Kollanukkaran To: Thomas Monjalon CC: "dev@dpdk.org" , "phil.yang@arm.com" , "bruce.richardson@intel.com" , "Jerin Jacob Kollanukkaran" , Pavan Nikhilesh Bhagavatula Thread-Topic: [dpdk-dev] [PATCH v5 3/4] config: add thunderx2 machine config Thread-Index: AQHUzGxhV+LxfjKhqUqqKzCkZ3WQ0A== Date: Sun, 24 Feb 2019 18:11:36 +0000 Message-ID: <20190224181041.27127-3-jerinj@marvell.com> References: <20190109103915.29210-1-pbhagavatula@marvell.com> <20190224181041.27127-1-jerinj@marvell.com> In-Reply-To: <20190224181041.27127-1-jerinj@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR01CA0103.apcprd01.prod.exchangelabs.com (2603:1096:3:15::29) To BYAPR18MB2424.namprd18.prod.outlook.com (2603:10b6:a03:130::21) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-originating-ip: [106.201.37.126] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0c1fd9d3-7bab-4957-653e-08d69a83839f x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:BYAPR18MB2679; x-ms-traffictypediagnostic: BYAPR18MB2679: x-ms-exchange-purlcount: 1 x-microsoft-exchange-diagnostics: 1; BYAPR18MB2679; 20:v8MaZY7VTdItITLr2y32zGpPdG2d/X0JmXT9KiBUfPCJVGEctCHmrz5jR9GcF8ANzX7krN01jstH4/QHbq+I+cF74JVVg7IEs9wuHBu9FjKP5xSBmxFEUVQ3SNPf7TFuJw5qTdTsG3T4sX+bdWBAWjEP+Oa7h8UGTObOiKtiI9k= x-microsoft-antispam-prvs: x-forefront-prvs: 09583628E0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(39850400004)(396003)(376002)(136003)(346002)(189003)(199004)(14454004)(6512007)(6306002)(106356001)(50226002)(6486002)(107886003)(305945005)(99286004)(476003)(2616005)(446003)(11346002)(486006)(53936002)(86362001)(2906002)(478600001)(105586002)(966005)(68736007)(6436002)(8936002)(66066001)(3846002)(25786009)(316002)(186003)(256004)(14444005)(5660300002)(4326008)(97736004)(54906003)(102836004)(7736002)(1076003)(71190400001)(71200400001)(8676002)(26005)(55236004)(76176011)(6506007)(386003)(6116002)(36756003)(81156014)(81166006)(52116002)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2679; H:BYAPR18MB2424.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: wzHounnDSF8s6Xpk4XDsXbr6FAh9kbxKyW3iTF/7T2JsOuAbhYMdmi6Gu7MxrFtgYe7Yd8EGiPtu3zEi6BQjg+pBTGI4+gdeALLHmSPz1pKd6yGxSrFww6qlilh3EkDuau+LPLHEpSYSsp74B5hPBKGH/EEzu43AiIceDBSxU9MisNMDuwMQZaerJvoAKXbMd7AqyuW6aBS8DdCIJQGiS8S8qGEs/9h4ri6pg2ytLgYBw9k33jpsHvTHU1Oo63/r0IM68ZFpdYu/P+gxZCMfLxDQwkb4opdPALKImsCAH2EyvNUyASGcldrJAT0nlbL3w69uYKGOiU+sic2RAGsWIsQ+c4ej8YEam9DeaU0rqwZhfvsCbLFcAjUU+EdFT1CcAthsoIxdop9yP4/Bf02aNMMNbpIXDX9/cKZNjZpE/iI= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 0c1fd9d3-7bab-4957-653e-08d69a83839f X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2019 18:11:31.5777 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2679 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-24_10:, , 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=716 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902240143 Subject: [dpdk-dev] [PATCH v5 3/4] 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: Sun, 24 Feb 2019 18:11:44 -0000 Optimized configuration for Marvell thunderx2 SoC. Updated meson build to support Marvell thunderx2 SoC. Added meson cross compile target. 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/arm64_thunderx2_linuxapp_gcc | 15 ++++++++ config/arm/meson.build | 9 ++++- config/defconfig_arm64-thunderx2-linuxapp-gcc | 11 ++++++ mk/machine/thunderx2/rte.vars.mk | 34 +++++++++++++++++++ 4 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 config/arm/arm64_thunderx2_linuxapp_gcc create mode 100644 config/defconfig_arm64-thunderx2-linuxapp-gcc create mode 100644 mk/machine/thunderx2/rte.vars.mk diff --git a/config/arm/arm64_thunderx2_linuxapp_gcc b/config/arm/arm64_thu= nderx2_linuxapp_gcc new file mode 100644 index 000000000..48b07a40c --- /dev/null +++ b/config/arm/arm64_thunderx2_linuxapp_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' + +[host_machine] +system =3D 'linux' +cpu_family =3D 'aarch64' +cpu =3D 'armv8-a' +endian =3D 'little' + +[properties] +implementor_id =3D '0x43' +implementor_pn =3D '0xaf' diff --git a/config/arm/meson.build b/config/arm/meson.build index 7eb6f5c99..f34913291 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