From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0074.outbound.protection.outlook.com [207.46.100.74]) by dpdk.org (Postfix) with ESMTP id 26FF42C5D for ; Mon, 9 May 2016 10:14:00 +0200 (CEST) Received: from BN3PR0301CA0005.namprd03.prod.outlook.com (10.160.180.143) by CY1PR0301MB0602.namprd03.prod.outlook.com (10.160.142.21) with Microsoft SMTP Server (TLS) id 15.1.485.9; Mon, 9 May 2016 08:13:59 +0000 Received: from BL2FFO11FD009.protection.gbl (2a01:111:f400:7c09::183) by BN3PR0301CA0005.outlook.office365.com (2a01:111:e400:4000::15) with Microsoft SMTP Server (TLS) id 15.1.492.11 via Frontend Transport; Mon, 9 May 2016 08:13:58 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD009.mail.protection.outlook.com (10.173.161.15) with Microsoft SMTP Server (TLS) id 15.1.485.4 via Frontend Transport; Mon, 9 May 2016 08:13:57 +0000 Received: from netperf1-OptiPlex-3020.ap.freescale.net (netperf1-OptiPlex-3020.ap.freescale.net [10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u498DsMx022866 for ; Mon, 9 May 2016 01:13:55 -0700 From: Hemant Agrawal To: Date: Mon, 9 May 2016 19:18:22 +0530 Message-ID: <1462801702-30918-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131072552375204558; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700001)(33646002)(229853001)(19580395003)(50226002)(48376002)(2351001)(1220700001)(19580405001)(87936001)(92566002)(189998001)(107886002)(36756003)(110136002)(47776003)(85426001)(5003940100001)(586003)(50986999)(77096005)(8936002)(450100001)(104016004)(6806005)(106466001)(105606002)(2906002)(50466002)(81166005)(86362001)(5008740100001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0602; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD009; 1:lx9vCaqrm+TwDT4oyVrsYKVc4dH1SX4QlPRTTJSge3JwyMaBzKdXJou5TnOt4laFdEKW/z5CJNq1vHWFkz2OpL/4lqpf5CjeyLVfwjJ28m3giKrj+pWn3T56QUGx7Pk849HagrAg2iYf7T38lh/AnJI1VUkKfjoTvrxzGmV8rsFuHmtVJsFWnkB0dk65coUHb5MKOyoE3DBgYOkWIOruh2tVCqtieFimcL6QDQonr8lfgdI2vA0lnhP2w7k1v189/s86OSS3h+KW1U4FDSoafUewnFgZYnEbhF8UmUtN3CxnMbfh4DtD+k1sRs7XYh7LT8RWMtD3+9RxRZXgBIyuEQIRD67FPNXjYZ2L2NpQohgujevAdYFoxSD/ON6ZzkHBK2PdbG+o1Q0VUYpxb6oCX53VcTS3hoL2KA+2cJoVWytQyiwwPKzlZdwdzhtCf4iOkTgyec6Vaa73m27IK8vLU0+urEJ2bU/eNw7zbxyVr5MRU+euiaJ2vI7PAsvHfEy+MvBPVX08E2Lzs0/Fw7XHZkGGYGBg6BPD42Skhm3OuaodfpOC3u1BRxWtv2caEsCd MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 4d2409d0-ad1a-40b5-596d-08d377e1de95 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0602; 2:g2Mpbb5f7V6jH8LBaFdEdBFbVpQ4/aBmcmc5T8SHeGBMaHgHrBkh9o/u4dqHo7g0EYVukRAIcIbm0P1SZBY0gphCMvjL6FHygIDlA3kqxnX/Vx4Rpzgp88S7eudATypf9O+TJbb5mDl1/xfnVDzmRrKMcIP6iL0YAQH2+NXPYzT/81fnz/dS5Q+kGomq92/R; 3:hQO6twT9Rz/H1Zh5QODKCF43juKxbhcb2LyxQN9ZlyjFm+wDJLKgXLAm6EIioCLodaXAlhCOOgLj2nM8pv/Gv7kGpPXMAq8X2EDATI5Ooxpw1NNzmT2n87Pr+e5JoQXQEHw6Bz5W/jc3Ulcgy01FtZl04eIIgOAZLm2p1yKQfxwu7UlqdG59s00T6ca6JIKvG89Z/OX4tilv0NDI0zIof6Py7ncF/0DoRqy4h6RDMM4=; 25:jdcz30zXx5Q8O1jBT+X0qiSvjjF1+BWPPDBbJNhZSB286FuwFqYyL3mzEKYUBb+hvEJXkPXx0CWUZY6T6WsnBofec/25TSzxGKBJLJS2DqYuRnVXYKzCw4DQBfNNA6U85BeX1fziT88HNwYt0N7NU0PozXGIK1gdHis9EulrvbZSK9+Vf66EPUhvdhITfaBIfO5zC1//NliDcajbk8/Bb8RWUao4/UMnijX5Ljg7HlKr7UbewDm7FdO0HG3gaIHzA4UlXYIn+87RuRFyBsQfWB82wYTl9lMXoAFP1QD0Iuvrl64MSTXu8zjssJBheCrZOObCNHkB1Uw2LUghjJr+lDXRdIRiZiVPq+gp07R6SEi55h2yok9AIMZh73uPHxPwD9VaKKdOicNm9wUbmp11Z3bO2is32mARhCxyPDVU1s4oJpjznCaXPgh3/iRKNwFP X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0602; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13017025)(13015025)(13023025)(13024025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:CY1PR0301MB0602; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0602; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0602; 4:xeF+qbCT0rFJWqIWNGmd9MPdGfcNW0Bt4jY9nXXNPJaXRSOErc6N67p/UTApkvDbsceK+PHvabOM8c13ykvcfHzJG/f/KZmhs4bSXgOh6jbg/NHaxU6g/xZH7h40UR0F/YGE2fQzPYGKgVc5B7qEY4HlABMALTZSJpJyL+u47XhZD9TznMzcKOEtH1vRTSg3xsz/OgqmSaNZSjlX9HrvVQi+VgYw17Jw+C+NYE4vgpJrYhpqdokDWR1CHaO25/rrGxZaeKKWuu9o5bORti+xRzlAsXOLYHtYUzMvJZI8XYkku0yYntvWuz6YOlqPCwr6XZQppvcn2VDmwN/mKjcQCMHOkDdyfpEhKd8BBL06CiH3pz/whEIAS+/C1L/LxoFx4OmEbqaA47KaskI4DvdpV97+XI5ngSyfEigi2r0ZH+kfqCDfS+zixsk3q4b2ERn4PAqs5U6nwpfSf9LbH2zkc4oO2TbKoHS/agBhczdZOX4= X-Forefront-PRVS: 0937FB07C5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0602; 23:a8wvI77PS2P3VXU6r6vbln/kTki1DsWUJuZtOEA?= =?us-ascii?Q?jLcx19zzTcQT5jy3WT6V8FOKSl5qwSC0znaUqI5KGi//bQt6uDX2wuioKlGR?= =?us-ascii?Q?eunakW1Kz/ASVwTzvHiutKAuwHNrtvtgIpWtkcbfFwEDAmXQpeLZNI/13J7/?= =?us-ascii?Q?aoqkwnFcWqeKTBv8c3sr/xqg1e41UB5ODy383mzCs/Cb5N491Up6xYxLOltS?= =?us-ascii?Q?Jbk5qkAIDdUhhYqOFaykk00hwsWnXmKE0naTi6O/hZiTb1SeYhAFKWGZoKMl?= =?us-ascii?Q?A4KS372esLg0Y8HCVHwSsJNVjbyfVud0SuTQ8ZY0+3TK2iNJH7a7UuAOXBKY?= =?us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nxmwJc=; 24:Go2eNzEy2axo3T6Hm1oudHzz7xZ7UD2pH6FCRkCN1FbeXnvqDrbnji+xkfkbAmWqBpFiSlUbAXyhJBsrgGVrfiQGaxp3O33OGvsvzKQ9RKc=; 7:gihOqUT4jdx3ho57KC0TxuK/mVQrSRjXm9szlO8rDlLjOE0EeDDYCByJJkXcYclfBsO/AxE37IMesPL4GTOcAla+fWIbiOegSrmZxfHWQf9DUoe9Qz57hLBAGxzuczuUjw58OhrRUjJPtix82tGRBqbEgtVHhzOOJpwp9/fACPRwKx1fjgvLLRntxZ1G3xV7 SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2016 08:13:57.2084 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0602 Subject: [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 08:14:00 -0000 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 +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