From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0071.outbound.protection.outlook.com [157.56.111.71]) by dpdk.org (Postfix) with ESMTP id EC75E91DC for ; Tue, 3 Nov 2015 14:10:40 +0100 (CET) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.caveonetworks.com (111.93.218.67) by BY2PR0701MB1974.namprd07.prod.outlook.com (10.163.155.20) with Microsoft SMTP Server (TLS) id 15.1.312.18; Tue, 3 Nov 2015 13:10:37 +0000 From: Jerin Jacob To: Date: Tue, 3 Nov 2015 18:39:11 +0530 Message-ID: <1446556153-18845-11-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1446556153-18845-10-git-send-email-jerin.jacob@caviumnetworks.com> References: <1446556153-18845-1-git-send-email-jerin.jacob@caviumnetworks.com> <1446556153-18845-2-git-send-email-jerin.jacob@caviumnetworks.com> <1446556153-18845-3-git-send-email-jerin.jacob@caviumnetworks.com> <1446556153-18845-4-git-send-email-jerin.jacob@caviumnetworks.com> <1446556153-18845-5-git-send-email-jerin.jacob@caviumnetworks.com> <1446556153-18845-6-git-send-email-jerin.jacob@caviumnetworks.com> <1446556153-18845-7-git-send-email-jerin.jacob@caviumnetworks.com> <1446556153-18845-8-git-send-email-jerin.jacob@caviumnetworks.com> <1446556153-18845-9-git-send-email-jerin.jacob@caviumnetworks.com> <1446556153-18845-10-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MAXPR01CA0048.INDPRD01.PROD.OUTLOOK.COM (25.164.146.148) To BY2PR0701MB1974.namprd07.prod.outlook.com (25.163.155.20) X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1974; 2:kSxd7GBi73LkYAGsPQ/FrD7lGyyeNww2hpMguFieO2RoXMKxjZvLt8sR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Rut5Ii3anQHgBMC4fDJSZE6io4FvVJP9DtGkUcH3BVfWeTCBtSLetewP45lvzumOUBEf3UlO8hthDnGTAiWh5n/miKOdk1oGNBcBchfA3LfdIMJ6NfbmcrAH5UxFyLZx7RlEF6S9jassOBv2dGz6h8SKZSFutXzeu23kCSc9M3P1Q60a7+33dZgveHAuQf1AalW5OLKuLBli2l4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(10201501046)(3002001); SRVR:BY2PR0701MB1974; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0701MB1974; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1974; 4:Rs2Nch8lQnxB7BQFNKcQIpkp22AeIOTjAo8OjHPuU85NIAHYGiAKOjnDAJoSp+zmo6629dKQwXAbQ0QHowgiRAj0M2xysyefn55gn9bS64mGcRxfP9d0lmma+3HwjLv53kOGFHztkxm9lG0v9ng3aL9XGIdsfN/ywhOHQBk4zzY+imlJzOeDpZ6kamP7Z1S7sYtQOwTKMTxVZdE7h28xDwL1ZKv+2F5awlJdJw3Kambdl1dUtOObfg7jSypag/nXIHyQJbWUmYmP6cE1Mz+Es+1a/bpTjc7PuTRBVVIUzme8ICyID2f781pHQNPz/dsjVIpeO7UZgpUnIbsxRyGtBUpCB/uKBlh3fN7j/NK/OReUcv0Bj6Y5CPCseX+M8iPm X-Forefront-PRVS: 0749DC2CE6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(189002)(199003)(81156007)(5001960100002)(50226001)(50986999)(5004730100002)(2950100001)(110136002)(77096005)(107886002)(66066001)(47776003)(189998001)(5007970100001)(42186005)(19580395003)(86362001)(76506005)(87976001)(69596002)(97736004)(50466002)(101416001)(53416004)(48376002)(106356001)(105586002)(19580405001)(36756003)(5008740100001)(76176999)(40100003)(92566002)(4001430100002)(5009440100003)(93886004)(33646002)(122386002)(5003940100001)(229853001)(2351001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0701MB1974; H:localhost.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0701MB1974; 23:vWaWHbUsg0gNvn0K4ThRHxJ53DkYeiMyYx9jxG7?= =?us-ascii?Q?XOjxsXaoJti4LSX9MfIruBWM29jcsnr3HwbtjoCStJ9YP+INVDVD8dC1cPpu?= =?us-ascii?Q?xqYf2hZnBhEtYDXgE+8p/dVytx3eFhAi52htriPtV2U8BHWGtaN6ucSprvsn?= =?us-ascii?Q?wmZRn8jLpp653RsVKFkdw8ySZ8syzxGu11li0Sgq9gREFpTkj6/Pm/00n3FA?= =?us-ascii?Q?6+DWm8fcYeKwIgJkjfxy8pE8tYqservyho8XrTtpZSDmg6L/8QBhnNsmcDct?= =?us-ascii?Q?5tFZje7bsUnaqOHiHbJiIg0o7KR9VRSbHadxbKMS8h3ZYACI003vG8I640Uo?= =?us-ascii?Q?0E67GtOGFTpSWRtw0XNg9mib912ev1ypnDOrbYPW1xSBJ/ZOlwniIOgGs+tz?= =?us-ascii?Q?xUS7E1jgUoGZx5cN9gnQhuE9NBeVcZD+pCLWMehESuCio2xXCGLPKUt/TnWV?= =?us-ascii?Q?FGCMLr6nTeLsx/XMK4Odns+sfzz9Ql51zXXeiHrAIWtgYZC6GE3+3P0Zsw9N?= =?us-ascii?Q?6gz9/BmaX6CvNFVF7IONHQ9p5F4qZMob7slCyQ3HrjwOd6d0AAAobMlT1rJH?= =?us-ascii?Q?UE8E7vSjonlCk0jl19wu4MzB8sK+PJT2WB3pm7RKMhUg1czFOqqElzS0rCO/?= =?us-ascii?Q?6JABorm1tJRSnqLWOup0N/vLNK1HgQ2LUVYgpEZwF32FP3geUYxMHLjsURn7?= =?us-ascii?Q?k/T0CSId9KSyjkq2zhGgPbHs2my4jskjjd+iS87pT4o2FBDGKVsH+B2C/kcn?= =?us-ascii?Q?d9DB+R0z1/u/OEcz5W+qk7ZkBVfb+IsGoxczUDDHK9Etxi7zQmz/fZ1wkmt7?= =?us-ascii?Q?iUPn8rQ3ZACObTQBt4d7iW3ixJVfT0/dHFRU3TIjuXbYsmQjqScyfQZU+y4P?= =?us-ascii?Q?JW6lDaFH/0kNjs2YqMXVxMYDts81t+vs9coMAuKo8hOvdw2avUSzbRGO/Ks1?= =?us-ascii?Q?U3pJTVPLZTk/RHT2JbQ4zUGP6b8GO3cPBNSqYNtTNny5M2AQDK97OsP8hPIt?= =?us-ascii?Q?z8rDCoOP1rTe+OVrtsnsZD0xYj+OBMOMzeUaU96B09VUqKQkFinCSOjCVQId?= =?us-ascii?Q?Q3w34igQipIKeC5vy9yR4WSi3qZZ/drfuLdSPQjh/+FL0lyJsEL7GmDmL6Yp?= =?us-ascii?Q?1G9SPOgyrikzAUjhykHYm429cK06EZ28yxV8FxPcU72Hdbu3aGTmjU98b4aM?= =?us-ascii?Q?L5IQlIvzv0NdpVUNscdXn90CxYgY7atFTPoHO?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1974; 5:8/ycxY8rO8xSek8xmfb2sLVlVLeYMScBibkbWtvoAv5e0gQ7YHkl+kGE3+8blyzA1d5Dq2kiNHE6CNrBg8IEyM2fRGlQdrobNm2kX62k3AJG2zLqImZpqCf9J9yDuK9eUkbd17Ir3fAUOwcW8I/nPQ==; 24:hxiIHqr+yjM20/wfFIiV+kine1QXGl+g3EpFYEZZpb4ZKlPCAzGR83IbhXxyhtsJLyWjScu9fUcMeh07YQIomOc21UG+a9XeJ1nGQ8RaTOE=; 20:dvy7/tDEwlbMYvT4YG3LeQv7Xbnyn4y40fvMuRV5bPf9Q64yVi99TuM2R8TO9DMavr/LtTd96UMdivT9/G+F2A== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2015 13:10:37.4874 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0701MB1974 Subject: [dpdk-dev] [PATCH 10/12] mk: add support for thunderx machine target based 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: Tue, 03 Nov 2015 13:10:41 -0000 Created the new thunderx machine target to address difference in "cache line size" and "-mcpu=thunderx" vs default armv8-a machine target Signed-off-by: Jerin Jacob --- config/defconfig_arm64-thunderx-linuxapp-gcc | 56 +++++++++++++++++++++++++++ mk/machine/thunderx/rte.vars.mk | 58 ++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 config/defconfig_arm64-thunderx-linuxapp-gcc create mode 100644 mk/machine/thunderx/rte.vars.mk diff --git a/config/defconfig_arm64-thunderx-linuxapp-gcc b/config/defconfig_arm64-thunderx-linuxapp-gcc new file mode 100644 index 0000000..e8fccc7 --- /dev/null +++ b/config/defconfig_arm64-thunderx-linuxapp-gcc @@ -0,0 +1,56 @@ +# BSD LICENSE +# +# Copyright (C) Cavium networks 2015. 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 Cavium networks 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 "common_linuxapp" + +CONFIG_RTE_MACHINE="thunderx" + +CONFIG_RTE_ARCH="arm64" +CONFIG_RTE_ARCH_ARM64=y +CONFIG_RTE_ARCH_64=y +CONFIG_RTE_ARCH_ARM_NEON=y + +CONFIG_RTE_FORCE_INTRINSICS=y + +CONFIG_RTE_TOOLCHAIN="gcc" +CONFIG_RTE_TOOLCHAIN_GCC=y + +CONFIG_RTE_CACHE_LINE_SIZE=128 + +CONFIG_RTE_IXGBE_INC_VECTOR=n +CONFIG_RTE_LIBRTE_VIRTIO_PMD=n +CONFIG_RTE_LIBRTE_IVSHMEM=n +CONFIG_RTE_LIBRTE_EAL_HOTPLUG=n + +CONFIG_RTE_LIBRTE_LPM=n +CONFIG_RTE_LIBRTE_TABLE=n +CONFIG_RTE_LIBRTE_PIPELINE=n + diff --git a/mk/machine/thunderx/rte.vars.mk b/mk/machine/thunderx/rte.vars.mk new file mode 100644 index 0000000..e49f9e1 --- /dev/null +++ b/mk/machine/thunderx/rte.vars.mk @@ -0,0 +1,58 @@ +# BSD LICENSE +# +# Copyright (C) Cavium networks 2015. 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 Cavium networks 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 ?= aarch64-thunderx-linux-gnu- +# MACHINE_CFLAGS = +# MACHINE_LDFLAGS = +# MACHINE_ASFLAGS = +# CPU_CFLAGS = +# CPU_LDFLAGS = +# CPU_ASFLAGS = + +MACHINE_CFLAGS += -march=armv8-a -mcpu=thunderx -DRTE_CACHE_LINE_SIZE=128 -- 2.1.0