From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-eopbgr690075.outbound.protection.outlook.com [40.107.69.75]) by dpdk.org (Postfix) with ESMTP id 2E50B5AA3 for ; Mon, 9 May 2016 11:06:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=D7H80TwEP6MoAJP0fO6ezsITnTgCT6v5cHTRKn4UIKc=; b=Jj9RumFmw28PorZADqxeL/4/sS3K1CgxubjjnC1Q9R24ArN5id0/TA2LzE3LbaOJTTikYixTDvrDaGw9G6vQcBqxiASE5iBrMHKwYYkQi0FFATs5iSIKCyzWZl2+VvxBhb8wkjKaI/OeEOyzKnm+xrfCsXarcuvlZ37VXhQPSjc= Authentication-Results: nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (111.93.218.67) by BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) with Microsoft SMTP Server (TLS) id 15.1.492.11; Mon, 9 May 2016 09:06:43 +0000 Date: Mon, 9 May 2016 14:36:22 +0530 From: Jerin Jacob To: Hemant Agrawal CC: , Message-ID: <20160509090621.GA4631@localhost.localdomain> References: <1462801702-30918-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1462801702-30918-1-git-send-email-hemant.agrawal@nxp.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0070.INDPRD01.PROD.OUTLOOK.COM (10.164.116.170) To BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) X-MS-Office365-Filtering-Correlation-Id: ec14c2b8-1e58-4d45-5794-08d377e93e45 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 2:iGZMrjFrbSKyDMSqXUi9yCrBjEPt9jGvgf5gI0vSSbY92q/MWF6uFHbq92PotXoS2JmGX1TwgRn4Ubg+/RZVwaQ2axpzZz2tof81udL8UeSKdThBkFujxiM/baJVsmsnpaqRWzGU2qQm/XiaTnOhdsq3rMlqQ9iSSi+qcMi45q1ZVFBfGhCMf45kZ5cWtT41; 3:UBgvWS4FsSf1TXaFpvMAcCARGycm447kDf08mGQ7H9Mr/gutmZrumZdqbv0KBDDoHorMc4WxT9SbE6aEGhSws4pYAEgy5EEcQIX6zpfTqp5tphSucs9sB1XVVacWCOOC; 25:4LL58xRkexa6HYgTrW2lJ/1J4m4r8GddggzrD9cEujt1wjvknzhtArFadmadApQzTM3giNnPxo34tNCAyYaZ/q4TiYRulSvizdxlTNM9fnhUnks2Ipz4jWp8O0kbxvcuulLsTvWl8QpQzXfLyg1kqkvEBIwFeIVL5fiApcd0UVAkLaN2jcHjfPIiufuriAjTicV93LtN2OHnPyeDaLo2B1W6XwDBIYHuxan0sLE5ks8rzBwk/w8Gqs0RPDu9S7F9CXNIKGjJbbLj99wN8OZy0EY1OLC2KjHRzadNhUojoMJL45t8oxwwR3/HAnDz8r1AbRlwoussWya8X8re3ThfTo4tftaSyAO84ww4yMKmMRjjbhBpmbMpzAPknvzGg2KFqT33oXVKJFccgEwl1UyNngufhskK+fZLLk+794cg5cs/SaCG7GtlW2fi2CPyf2Jx X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 20:tLl1KQ83lA0eNdqsfTRxfo7uISIQdpfZ3l5FIm1n5rSVJd0WnFDdLPXnUiMM0ejDkXv2xGVUFEZuD7CynkiM2UYFFTNYpAk/JYJrZV5dWTtv+QY5aZI2OlZ2QFYN6r7LP4JKPHtlMHIGrKUe61eSN2k/GRozALjMYo787PrpnQsesTCbpRLajSiniv15HgLs0yC311pykw0o71xJMkaS+p7EJxu88D46Qm6SvbXKgZDFPvd76Nz23zadbIQZsBPeWmFvfVZ1x9P/oTb0cm/IsLxsK4ZtUwrRiG8xWFrQjNSfXE1DIs/GfYjrmI4eN0QZFWoZNcAaG7xWHrbn2Q5lmDi/ZfcIL/RoDBwiiKPBmia0a1j4umovRlsTCCEWvmfeEw4EqIKLeHM5xJW/G93c1kq0iyErYUoDRue8JRDc7VDmsbJm/FOTNpCji67M3fOgZp40WpTLks1EEj7Qc7dD0lx8Ex6KAESS+LFLqzuNA5F5OSs6mdOySXVz9hKoYO9fXrpx8s+n2R3VkYc8096RQwMq8KJ8Z3EHbzU1zUzyqI5xgBnw2pjY2nxrqhnThvvHEQn3sGYAgVIch82ebZZkhLxHsrNFYzhOj5OivHdD9lo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:BN3PR0701MB1719; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 4:jNAASgLCzzQBJ9VAPSZG/Uy5QzBZ5jWxDNVQ62GAabWBi/tC7+IjndcEAEZUGQ4pQyRouPRmuJnAGPwgjRMgOy7zvjJPzhRhD0x+DTscilLkCAoYE5VJ7YqAUN4Zc1aVTrVmN2a/L4oHCqxpq+N9KUZQryhEj1ddp6v0ZOYY/1y71H7pUKavJtNz9xTlSh5KQ7RoT8BILhjN+RtWUAx/dOre9Il3oe89Vr1w/MSki1NIRebWZ/VbfZlnpimUgmW+LsTvCfQFidDhq30smTjX0GDSV7GqBQ68yKgbdi4p5YXxyfUtT/m2kXz3p1Z8+dDjuc9YvZT4Xq8v72R4gupqjcht5t82yMPfdaQzxbSjoS5wawT8/SWY9pG3W3zqQUY1 X-Forefront-PRVS: 0937FB07C5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(24454002)(9170700001)(2950100001)(47776003)(586003)(23726003)(92566002)(1076002)(81166005)(50986999)(76176999)(54356999)(83506001)(9686002)(66066001)(4326007)(19580405001)(61506002)(2906002)(3846002)(5004730100002)(6116002)(19580395003)(77096005)(110136002)(189998001)(5008740100001)(42186005)(33656002)(5009440100003)(97756001)(50466002)(46406003)(7099028)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1719; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1719; 23:he6kBVfzN9l/5tnVLSIfrN/Yt2jImR3QHR0izyJ?= =?us-ascii?Q?TyLf5LuFONzPsYupoCSZLflymSGM1wrpqXJLCSwk4HpA1n6qTDWaNQEm44J7?= =?us-ascii?Q?loV/tvfKLjWhIqE2djIvERrQCsRGJv8YcRrBXIIa5yBr3TPPApwfBKSuoKm9?= =?us-ascii?Q?i2prGt2Hqig0+XoQXAMGz5rSCCxgc05/JQL7NKCUfx66itWXF1hVdxkDGB3x?= =?us-ascii?Q?Q9cALvxgaiB+K1cQmgk+98urmhIzn56r312wRsR6O6vCzk+9xUNj4XFv6qXA?= =?us-ascii?Q?8LBIq7TX2JSbT+LPvzwlnRDT4Q0Hjco/Mpkne2mOItYxDnkAQyZRpZrBOF9N?= =?us-ascii?Q?NwgfTd/wc5gT/wLhKnteweQgwUTOkFalw+DrY9QvjmhMut4YuVkD5PGGYXIm?= =?us-ascii?Q?VPWvSYioZ2KUC9U1D82zj+2m4v4QykUI97GX7NqDmY7qV/TYLbN6ZMxAlqoE?= =?us-ascii?Q?+ZulQrZ9WASwCdAUHqliqVoMsHDWUDZVXse4gv6Sf88IwgKHqo97c0UzyNKF?= =?us-ascii?Q?0Jaxs/ic/mYJHkWMvkuwKf3ryAoNFa3G5C9axeYzD7GYU0C1vbbqdxhKvhJi?= =?us-ascii?Q?5FbwONIEDDhqU9tv+VXWupXcUyhCj/iHzo4bxuwTKU1yg9xou6UprxJhvsxD?= =?us-ascii?Q?zdBGlpolnMAn0kRk3cYipWnYRVlZIT1nt5s6Wtsohw6oO4rX+Tqgqa9m2GEm?= =?us-ascii?Q?5Sd/e58E4S12Chl12PaLHCXfuj8DxzXdt8qanfZuHr92OVQCJGLh4kSm1eVg?= =?us-ascii?Q?wyF/tNgVozFK01USj84+hJmtfdHPKBakhS462RlXIga9uyyzOJqWdCR86eif?= =?us-ascii?Q?2uKOF2PKNd8/rapqiJ7f1zB/5VcTCFKuEBRA1kaM8rYKd8IL24DBu4gGp+XY?= =?us-ascii?Q?4dXG3wV07kXlpm/aop4f8PgCuPMdb48awwqjyWa2S32mljnQm5y50/QVBRtO?= =?us-ascii?Q?WlIeBUJvEcX7K3tO6Wj6Hyqpgd2NZE1uIcOhlMa/0mtcDVk+zrpzANa1RTNc?= =?us-ascii?Q?xt0U9EWpQlwzAdyNERwhvoUD0?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 5:2or/ORXMkYOoffzDQ+MNc9TFZTcBmPa46OgH8d8og9xnw85kPDg+J0xzAxO9v3QpCzmKSfi6DxuD0+0hbT6Pft4gkRm0aR5xPn7BYeQhLzYpgX2MGK+x9Ana7mQlQ2CeazIK06ajprVhGkqPyBxVaQ==; 24:N8VxyGd0NBkFtu6ZAX71z0e4qGVcwZ3nfcWGIjcZJnXXu7oVmWhrXQAsQAT/gBx9eWER9/4Sxs1dXQP0R62FM0Kd2RA7xUxfadH1ONyqOn0=; 7:MpmexVDO1ERtK4pNhJp83f+TCvUp4wCFPYmsJbnSnbIZPqMUwAZjbK/8JxhGHXn+q90M1441vxv9HFbhq07euZGi5Ugd8S3nT3XlPmVCtrmLrhTEpfRWOeYtcbilHPCXQbdz1Hezj+JTuoPCuLKTAD26DnCXHE5fVGE40NMNy587CCC0uth5Ak1QynSD8Lf2 SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2016 09:06:43.0657 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Subject: Re: [dpdk-dev] [PATCH] mk: Introduce NXP dpaa2 architecture based on armv8-a X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2016 09:06:48 -0000 On Mon, May 09, 2016 at 07:18:22PM +0530, Hemant Agrawal wrote: > This patch introduces dpaa2 machine target to address difference > in cpu parameter, number of core to 8 and no numa support > w.r.t default armv8-a machine > > Signed-off-by: Hemant Agrawal > --- > config/defconfig_arm64-dpaa2-linuxapp-gcc | 44 +++++++++++++++++++++++ > mk/machine/dpaa2/rte.vars.mk | 60 +++++++++++++++++++++++++++++++ > mk/rte.module.mk | 5 +++ > 3 files changed, 109 insertions(+) > create mode 100644 config/defconfig_arm64-dpaa2-linuxapp-gcc > create mode 100644 mk/machine/dpaa2/rte.vars.mk > > diff --git a/config/defconfig_arm64-dpaa2-linuxapp-gcc b/config/defconfig_arm64-dpaa2-linuxapp-gcc > new file mode 100644 > index 0000000..80bda26 > --- /dev/null > +++ b/config/defconfig_arm64-dpaa2-linuxapp-gcc > @@ -0,0 +1,44 @@ > +# BSD LICENSE > +# > +# Copyright(c) 2016 Freescale Semiconductor, Inc. All rights reserved. > +# > +# Redistribution and use in source and binary forms, with or without > +# modification, are permitted provided that the following conditions > +# are met: > +# > +# * Redistributions of source code must retain the above copyright > +# notice, this list of conditions and the following disclaimer. > +# * Redistributions in binary form must reproduce the above copyright > +# notice, this list of conditions and the following disclaimer in > +# the documentation and/or other materials provided with the > +# distribution. > +# * Neither the name of Freescale Semiconductor nor the names of its > +# contributors may be used to endorse or promote products derived > +# from this software without specific prior written permission. > +# > +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS > +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR > +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT > +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, > +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT > +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, > +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > +# > + > +#include "defconfig_arm64-armv8a-linuxapp-gcc" > + > +# NXP (Freescale) - Soc Architecture with WRIOP and QBMAN support > +CONFIG_RTE_MACHINE="dpaa2" > +CONFIG_RTE_ARCH_ARM_TUNE="cortex-a57+fp+simd" > + > +# > +# Compile Environment Abstraction Layer > +# > +CONFIG_RTE_MAX_LCORE=8 > +CONFIG_RTE_MAX_NUMA_NODES=1 > +CONFIG_RTE_EAL_IGB_UIO=n I think it makes sense to move this option to generic arm64 config as upstream arm64 kernel does not have support for sysfs based PCI mmap resource file,(/sys/bus/pci/devices/B:D:F/resource[_wc]X) need for CONFIG_RTE_EAL_IGB_UIO to work) and use VFIO for all cases. Any objections? > +CONFIG_RTE_EAL_VFIO=y > diff --git a/mk/machine/dpaa2/rte.vars.mk b/mk/machine/dpaa2/rte.vars.mk > new file mode 100644 > index 0000000..8541633 > --- /dev/null > +++ b/mk/machine/dpaa2/rte.vars.mk > @@ -0,0 +1,60 @@ > +# BSD LICENSE > +# > +# Copyright(c) 2016 Freescale Semiconductor, Inc. All rights reserved. > +# > +# Redistribution and use in source and binary forms, with or without > +# modification, are permitted provided that the following conditions > +# are met: > +# > +# * Redistributions of source code must retain the above copyright > +# notice, this list of conditions and the following disclaimer. > +# * Redistributions in binary form must reproduce the above copyright > +# notice, this list of conditions and the following disclaimer in > +# the documentation and/or other materials provided with the > +# distribution. > +# * Neither the name of Freescale Semiconductor nor the names of its > +# contributors may be used to endorse or promote products derived > +# from this software without specific prior written permission. > +# > +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS > +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR > +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT > +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, > +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT > +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, > +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > + > +# > +# 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 = > +# CROSS = > +# MACHINE_CFLAGS = > +# MACHINE_LDFLAGS = > +# MACHINE_ASFLAGS = > +# CPU_CFLAGS = > +# CPU_LDFLAGS = > +# CPU_ASFLAGS = > +MACHINE_CFLAGS += -march=armv8-a > + > +ifdef CONFIG_RTE_ARCH_ARM_TUNE > +MACHINE_CFLAGS += -mcpu=$(CONFIG_RTE_ARCH_ARM_TUNE) > +endif > diff --git a/mk/rte.module.mk b/mk/rte.module.mk > index 53ed4fe..09bf51b 100644 > --- a/mk/rte.module.mk > +++ b/mk/rte.module.mk > @@ -29,6 +29,11 @@ > # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > > +#### Linaro toolchain usages arm64 instread of aarch64 in kernel > +ifeq ($(ARCH), aarch64) > +ARCH = arm64 > +endif > + > ##### if sourced from kernel Kbuild system > ifneq ($(KERNELRELEASE),) > override EXTRA_CFLAGS = $(MODULE_CFLAGS) $(EXTRA_KERNEL_CFLAGS) > -- > 1.9.1 >