Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/7946/?format=api
https://patches.dpdk.org/api/patches/7946/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445609833-17649-11-git-send-email-david.hunt@intel.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1445609833-17649-11-git-send-email-david.hunt@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1445609833-17649-11-git-send-email-david.hunt@intel.com", "date": "2015-10-23T14:17:12", "name": "[dpdk-dev,10/11] mk: add makefile and config changes for armv8 architecture", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "58bf8fe59a2b502b188641f710a5997b3f5d376c", "submitter": { "id": 342, "url": "https://patches.dpdk.org/api/people/342/?format=api", "name": "Hunt, David", "email": "david.hunt@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445609833-17649-11-git-send-email-david.hunt@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/7946/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/7946/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 8BAA98E87;\n\tFri, 23 Oct 2015 16:17:49 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 9A1B28D9C\n\tfor <dev@dpdk.org>; Fri, 23 Oct 2015 16:17:44 +0200 (CEST)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga102.fm.intel.com with ESMTP; 23 Oct 2015 07:17:45 -0700", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby fmsmga002.fm.intel.com with ESMTP; 23 Oct 2015 07:17:42 -0700", "from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com\n\t[10.237.217.46])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tt9NEHfqb002502; Fri, 23 Oct 2015 15:17:41 +0100", "from sivswdev02.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev02.ir.intel.com with ESMTP id t9NEHfJ6017772;\n\tFri, 23 Oct 2015 15:17:41 +0100", "(from dhunt5@localhost)\n\tby sivswdev02.ir.intel.com with id t9NEHf5Q017768;\n\tFri, 23 Oct 2015 15:17:41 +0100" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.20,186,1444719600\"; d=\"scan'208\";a=\"833886532\"", "From": "David Hunt <david.hunt@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 23 Oct 2015 15:17:12 +0100", "Message-Id": "<1445609833-17649-11-git-send-email-david.hunt@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1445609833-17649-1-git-send-email-david.hunt@intel.com>", "References": "<1445609833-17649-1-git-send-email-david.hunt@intel.com>", "Cc": "Benjamin Boren <Ben.Boren@intel.com>", "Subject": "[dpdk-dev] [PATCH 10/11] mk: add makefile and config changes for\n\tarmv8 architecture", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Benjamin Boren <Ben.Boren@intel.com>\n\nSigned-off-by: Benjamin Boren <Ben.Boren@intel.com>\nSigned-off-by: David Hunt <david.hunt@intel.com>\n---\n MAINTAINERS | 6 ++++\n config/defconfig_arm64-native-linuxapp-gcc | 55 ++++++++++++++++++++++++++++\n mk/arch/arm64/rte.vars.mk | 58 ++++++++++++++++++++++++++++++\n mk/machine/armv8-a/rte.vars.mk | 57 +++++++++++++++++++++++++++++\n mk/rte.cpuflags.mk | 9 +++++\n 5 files changed, 185 insertions(+)\n create mode 100644 config/defconfig_arm64-native-linuxapp-gcc\n create mode 100644 mk/arch/arm64/rte.vars.mk\n create mode 100644 mk/machine/armv8-a/rte.vars.mk", "diff": "diff --git a/MAINTAINERS b/MAINTAINERS\nindex 080a8e8..93904ed 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -129,6 +129,12 @@ M: Bruce Richardson <bruce.richardson@intel.com>\n M: Konstantin Ananyev <konstantin.ananyev@intel.com>\n F: lib/librte_eal/common/include/arch/x86/\n \n+Arm V8\n+M: Ben Boren <ben.boren@intel.com>\n+M: David Hunt <david.hunt@intel.com>\n+M: Amrute Zende <amruta.zende@intel.com>\n+F: lib/librte_eal/common/include/arch/arm64/\n+\n Linux EAL (with overlaps)\n M: David Marchand <david.marchand@6wind.com>\n F: lib/librte_eal/linuxapp/Makefile\ndiff --git a/config/defconfig_arm64-native-linuxapp-gcc b/config/defconfig_arm64-native-linuxapp-gcc\nnew file mode 100644\nindex 0000000..302417f\n--- /dev/null\n+++ b/config/defconfig_arm64-native-linuxapp-gcc\n@@ -0,0 +1,55 @@\n+# BSD LICENSE\n+#\n+# Copyright(c) 2010-2014 Intel Corporation. All rights reserved.\n+# All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions\n+# are met:\n+#\n+# * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+# * Redistributions in binary form must reproduce the above copyright\n+# notice, this list of conditions and the following disclaimer in\n+# the documentation and/or other materials provided with the\n+# distribution.\n+# * Neither the name of Intel Corporation nor the names of its\n+# contributors may be used to endorse or promote products derived\n+# from this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+#\n+\n+#include \"common_linuxapp\"\n+\n+CONFIG_RTE_MACHINE=\"armv8-a\"\n+\n+CONFIG_RTE_ARCH=\"arm64\"\n+CONFIG_RTE_ARCH_ARM64=y\n+CONFIG_RTE_ARCH_64=y\n+\n+CONFIG_RTE_TOOLCHAIN=\"gcc\"\n+CONFIG_RTE_TOOLCHAIN_GCC=y\n+\n+CONFIG_RTE_IXGBE_INC_VECTOR=n\n+CONFIG_RTE_LIBRTE_VIRTIO_PMD=n\n+CONFIG_RTE_LIBRTE_IVSHMEM=n\n+CONFIG_RTE_LIBRTE_EAL_HOTPLUG=n\n+\n+CONFIG_RTE_LIBRTE_LPM=n\n+CONFIG_RTE_LIBRTE_ACL=n\n+CONFIG_RTE_LIBRTE_TABLE=n\n+CONFIG_RTE_LIBRTE_PIPELINE=n\n+\n+# This is used to adjust the generic arm timer to align with the cpu cycle count.\n+CONFIG_RTE_TIMER_MULTIPLIER=48\ndiff --git a/mk/arch/arm64/rte.vars.mk b/mk/arch/arm64/rte.vars.mk\nnew file mode 100644\nindex 0000000..9a148e1\n--- /dev/null\n+++ b/mk/arch/arm64/rte.vars.mk\n@@ -0,0 +1,58 @@\n+# BSD LICENSE\n+#\n+# Copyright(c) 2015 Intel Corporation. All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions\n+# are met:\n+#\n+# * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+# * Redistributions in binary form must reproduce the above copyright\n+# notice, this list of conditions and the following disclaimer in\n+# the documentation and/or other materials provided with the\n+# distribution.\n+# * Neither the name of Intel Corporation nor the names of its\n+# contributors may be used to endorse or promote products derived\n+# from this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+#\n+# arch:\n+#\n+# - define ARCH variable (overridden by cmdline or by previous\n+# optional define in machine .mk)\n+# - define CROSS variable (overridden by cmdline or previous define\n+# in machine .mk)\n+# - define CPU_CFLAGS variable (overridden by cmdline or previous\n+# define in machine .mk)\n+# - define CPU_LDFLAGS variable (overridden by cmdline or previous\n+# define in machine .mk)\n+# - define CPU_ASFLAGS variable (overridden by cmdline or previous\n+# define in machine .mk)\n+# - may override any previously defined variable\n+#\n+# examples for CONFIG_RTE_ARCH: i686, x86_64, x86_64_32\n+#\n+\n+ARCH ?= arm64\n+# common arch dir in eal headers\n+ARCH_DIR := arm64\n+CROSS ?=\n+\n+CPU_CFLAGS ?= -flax-vector-conversions\n+CPU_LDFLAGS ?=\n+CPU_ASFLAGS ?=\n+\n+export ARCH CROSS CPU_CFLAGS CPU_LDFLAGS CPU_ASFLAGS\ndiff --git a/mk/machine/armv8-a/rte.vars.mk b/mk/machine/armv8-a/rte.vars.mk\nnew file mode 100644\nindex 0000000..b785062\n--- /dev/null\n+++ b/mk/machine/armv8-a/rte.vars.mk\n@@ -0,0 +1,57 @@\n+# BSD LICENSE\n+#\n+# Copyright(c) 2015 Intel Corporation. All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions\n+# are met:\n+#\n+# * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+# * Redistributions in binary form must reproduce the above copyright\n+# notice, this list of conditions and the following disclaimer in\n+# the documentation and/or other materials provided with the\n+# distribution.\n+# * Neither the name of Intel Corporation nor the names of its\n+# contributors may be used to endorse or promote products derived\n+# from this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+#\n+# machine:\n+#\n+# - can define ARCH variable (overridden by cmdline value)\n+# - can define CROSS variable (overridden by cmdline value)\n+# - define MACHINE_CFLAGS variable (overridden by cmdline value)\n+# - define MACHINE_LDFLAGS variable (overridden by cmdline value)\n+# - define MACHINE_ASFLAGS variable (overridden by cmdline value)\n+# - can define CPU_CFLAGS variable (overridden by cmdline value) that\n+# overrides the one defined in arch.\n+# - can define CPU_LDFLAGS variable (overridden by cmdline value) that\n+# overrides the one defined in arch.\n+# - can define CPU_ASFLAGS variable (overridden by cmdline value) that\n+# overrides the one defined in arch.\n+# - may override any previously defined variable\n+#\n+\n+# ARCH =\n+# CROSS =\n+# MACHINE_CFLAGS =\n+# MACHINE_LDFLAGS =\n+# MACHINE_ASFLAGS =\n+# CPU_CFLAGS =\n+# CPU_LDFLAGS =\n+# CPU_ASFLAGS =\n+\n+MACHINE_CFLAGS += -march=armv8-a\ndiff --git a/mk/rte.cpuflags.mk b/mk/rte.cpuflags.mk\nindex f595cd0..7e7281c 100644\n--- a/mk/rte.cpuflags.mk\n+++ b/mk/rte.cpuflags.mk\n@@ -106,6 +106,15 @@ ifneq ($(filter $(AUTO_CPUFLAGS),__builtin_vsx_xvnmaddadp),)\n CPUFLAGS += VSX\n endif\n \n+# ARMv8 CPU flags\n+ifneq ($(filter $(AUTO_CPUFLAGS),__aarch64__),)\n+CPUFLAGS += AARCH64\n+endif\n+\n+ifneq ($(filter $(AUTO_CPUFLAGS),__aarch32__),)\n+CPUFLAGS += AARCH32\n+endif\n+\n MACHINE_CFLAGS += $(addprefix -DRTE_MACHINE_CPUFLAG_,$(CPUFLAGS))\n \n # To strip whitespace\n", "prefixes": [ "dpdk-dev", "10/11" ] }{ "id": 7946, "url": "