From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0073.outbound.protection.outlook.com [157.56.111.73]) by dpdk.org (Postfix) with ESMTP id 7B0FE91CB for ; Fri, 6 Nov 2015 10:41:52 +0100 (CET) Received: from BLUPR0701MB1969.namprd07.prod.outlook.com (10.163.121.20) by BLUPR0701MB1890.namprd07.prod.outlook.com (10.162.88.151) with Microsoft SMTP Server (TLS) id 15.1.312.18; Fri, 6 Nov 2015 09:41:51 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from jerin.caveonetworks.com (111.93.218.67) by BLUPR0701MB1969.namprd07.prod.outlook.com (10.163.121.20) with Microsoft SMTP Server (TLS) id 15.1.318.15; Fri, 6 Nov 2015 09:41:48 +0000 From: Jerin Jacob To: Date: Fri, 6 Nov 2015 15:10:29 +0530 Message-ID: <1446802833-22265-11-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1446802833-22265-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1446802833-22265-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0066.INDPRD01.PROD.OUTLOOK.COM (25.164.116.166) To BLUPR0701MB1969.namprd07.prod.outlook.com (25.163.121.20) X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 2:4khVxB5q1eEh2MHJdLM+7lIp+AIhb0AsmVBfJJsTfzR31tVQeUeVHklRCcJIJlcElGKSDkEYMI5umfMxWzoGlCbq1V2HvWiqYvv99V5gxnlAQZmLHm2+uZf7Qv6f3ihhdCwsidyqGguTpbSERk9c9YDuF0N2ppsOL99IIGSp0jQ=; 3:TNHS8+pwuIPWmwR5ZwWcgrV+d24rSpY0seQ/NfW74pbxh5fdDSbfwT2rY8cRVPN3AEmoqXZRxCX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AqYo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BLUPR0701MB1969; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1969; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 4:JMAIiJyqnStlqGCLZ54jh5VaLBXn/xflexiyiCWfb7IU2PQg5GkrBmqpGdb4iGmeIRa7U+2l/5fhx+F5cWYGMFVYVJoSV9yFMjmSfebtv1161NIaHTkDM3wpVw5Oqp0IW0SRBTvp3Zi9FWfKVEfUCAOZD+B9J7SbnyB0pym5zl3Hb7/JwpJzKnqp7V5gPdBy5naykhAM8bh3uDVFCJ7KhZ8wkMeUO4rl98S3aIpRJqPhIrITWz73zcNX6+xe9zu/s9VYCumgv3XC/wPKqWhuFJZuV4F0oL1eXvK72CFm6kP3ePfM81O2+hvLICP478ehD+38tMqaa0Vl6DU05vazGZX1iaqPA/faHkVR6SnIV3CQxY5UlXmWSjRZEp+8gi1f X-Forefront-PRVS: 07521929C1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(189002)(199003)(50226001)(122386002)(48376002)(50986999)(50466002)(106356001)(229853001)(110136002)(19580405001)(40100003)(76176999)(87976001)(105586002)(5004730100002)(77096005)(19580395003)(2351001)(5003940100001)(92566002)(107886002)(189998001)(5007970100001)(33646002)(5001960100002)(66066001)(5009440100003)(42186005)(2950100001)(4001430100002)(97736004)(101416001)(69596002)(47776003)(36756003)(5008740100001)(53416004)(81156007)(86362001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1969; H:jerin.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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ZB3ELcHerFrdkUp?= =?us-ascii?Q?Lfi1/STQqv2K01rjEKTG9/sRPq7UR68f4CEBYD6c+6vLygn2JP4+V03umbkX?= =?us-ascii?Q?DQFD4LvWXqfvquTJxUYhd08YXQoMtTyDxUmkm/UmaiDs2ol4NyjmVWAV4eIO?= =?us-ascii?Q?k/X0byoQFKD4TFs8WZWEmqx9ETS9PT8ArSTnSf4wvVNSBYRn0tU3XrPSvULD?= =?us-ascii?Q?voqmdIXih2oBtgI0o2JMvpSxOTfw2NNyQxJg+uk/l2Ri9CXsb9l068a8Nt78?= =?us-ascii?Q?CkVCPimUwE0uk7D7gp2a1U9qeZHZ+zd1L?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 5:ZHPjcUI9Qw6yf4PPCazDjAlqyRdUlW3IU5YjSMNkB74JmV9i/ttX8W1UQsdrke6Yzs/DomAbVi8M3ifZmerDlzBHCf5mg3uCmefbqwE3hE/ow3AAoSW6atEGlo7UrIjLChge65meCXVsfA6x/xq9XA==; 24:YoJaboOtCLEKVZqj6o7T58vb3krWaJzI3jcXRfcYU3PDf1u1caXDMSjSFKvW83JDmIxoriH9ixBi8gBQ7ba3YZ1ozl6OXnudvzrhIMAEjtE=; 20:nm0gso0giwzyTcHKPT8kYypM661org+i0PLGsovBNsO/V065UNvO4+dni7loB4hbumBkNu2zLZhin26zuRcxKw== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2015 09:41:48.0388 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1969 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1890; 2:sGWtN5F/y8RvDr6g00426mbN6hb4PlifyRxWAH1meDpi5c8RCDfYRioJoc3+PuhZTVt/vxg1K07joTZJ0DP6OLbjZi+u460H5sWRyb1ofxr+QxAde/u8Kvh2SV+ZUCGd9Gjyl+D6b/xdyt9Ym+/VtB2mRFE5rLhhSS0l2w8rK8A=; 23:RtT/zalLJ62hn5ywPTnLS+7j3rNlgXSt+71WT89nwZW7vgf+K3qYi+QCXRZEdfbk7w/AMAPg2D/NzQJ+Alc5Bq5aw7LsNPR03dk/ERDwsyK+vgNdf1w7aFd+PRjveAxT9dn5yzx7VT27IIZkdvxCb9h+WdDe+U/KckdNwqStn1ymzDxc4n273eiOuwxg6Xab X-OriginatorOrg: caviumnetworks.com Subject: [dpdk-dev] [PATCH v3 10/14] mk: add support for thunderx machine target 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: Fri, 06 Nov 2015 09:41:53 -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..6b2048b --- /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_FM10K_PMD=n +CONFIG_RTE_LIBRTE_I40E_PMD=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 -- 1.9.3