Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/44509/?format=api
https://patches.dpdk.org/api/patches/44509/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180910113243.18881-1-bluca@debian.org/", "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": "<20180910113243.18881-1-bluca@debian.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20180910113243.18881-1-bluca@debian.org", "date": "2018-09-10T11:32:43", "name": "[v2] build: add PPC64 Meson build", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "199a9d36f342db7be4ce7c1f4008d10ae0c040c1", "submitter": { "id": 823, "url": "https://patches.dpdk.org/api/people/823/?format=api", "name": "Luca Boccassi", "email": "bluca@debian.org" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180910113243.18881-1-bluca@debian.org/mbox/", "series": [ { "id": 1248, "url": "https://patches.dpdk.org/api/series/1248/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1248", "date": "2018-09-10T11:32:43", "name": "[v2] build: add PPC64 Meson build", "version": 2, "mbox": "https://patches.dpdk.org/series/1248/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/44509/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/44509/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 38876378B;\n\tMon, 10 Sep 2018 13:32:50 +0200 (CEST)", "from mail-wr1-f66.google.com (mail-wr1-f66.google.com\n\t[209.85.221.66]) by dpdk.org (Postfix) with ESMTP id CA09E1041\n\tfor <dev@dpdk.org>; Mon, 10 Sep 2018 13:32:48 +0200 (CEST)", "by mail-wr1-f66.google.com with SMTP id v16-v6so21509898wro.11\n\tfor <dev@dpdk.org>; Mon, 10 Sep 2018 04:32:48 -0700 (PDT)", "from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556])\n\tby smtp.gmail.com with ESMTPSA id\n\tf18-v6sm13250505wru.51.2018.09.10.04.32.46\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tMon, 10 Sep 2018 04:32:46 -0700 (PDT)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=9POZDYJ/c3zmbC7O4K6wLp29q4A5Cw7eWYU/QguNRpA=;\n\tb=Sb6eScMp3Nmz8BBD/JpxnPpEMIbdkBy5ypHnUbXTaMg0VGVdXUa+b1A4nqTtGk6MUq\n\txeJhU+JMOpdsH8AmxSI4UWlzi79uX3r1AjIPh4iF9QTvotYwNQbQtwrVSs7gQa9v7pJA\n\tAdaMecKUpwhx/xR13XZvOBJZYqLIQ1+iyXJd56BYkoe6LhGeon4BjA3lFoy+Mvle5sY0\n\tHC3yiEUKPYIIxvVHKMPTIGLGyuX6UVRYZ9hvoNvI+Tl5+9Hn8l70ZJmDq8K7ltIGleFV\n\tNfKHQALdbeF+yoW9BBjrDKLQqkuHgmfTrAHlq81/SICpduRS5rvCTLAy8IalIhmgk1Zn\n\tFKNw==", "X-Gm-Message-State": "APzg51AQTj8c8o+x1rs+AkA2asZx6dqlxm2WmEku8gdkSybN26Wo/32s\n\tgvhPuGeA2pIHLfUvIlK9VaoOoXiD", "X-Google-Smtp-Source": "ANB0VdaM5oOAbJtQs/XljoejHzp/zl0Uv4lu+KWL/QClVm142acCL+RgUr87/htgTWRrSHJyefBd/w==", "X-Received": "by 2002:adf:c98d:: with SMTP id\n\tf13-v6mr15093249wrh.148.1536579168062; \n\tMon, 10 Sep 2018 04:32:48 -0700 (PDT)", "From": "Luca Boccassi <bluca@debian.org>", "To": "dev@dpdk.org", "Cc": "chaozhu@linux.vnet.ibm.com, christian.ehrhardt@canonical.com,\n\tbruce.richardson@intel.com, thomas@monjalon.net", "Date": "Mon, 10 Sep 2018 12:32:43 +0100", "Message-Id": "<20180910113243.18881-1-bluca@debian.org>", "X-Mailer": "git-send-email 2.18.0", "In-Reply-To": "<20180907183502.26164-1-bluca@debian.org>", "References": "<20180907183502.26164-1-bluca@debian.org>", "Subject": "[dpdk-dev] [PATCH v2] build: add PPC64 Meson build", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This has been only build-tested for now, on a native ppc64el POWER8E\nmachine running Debian sid.\n\nSigned-off-by: Luca Boccassi <bluca@debian.org>\n---\nv2: fix indentation, drop march_opt in ppc build file\n\n config/meson.build | 10 +++++++++-\n config/ppc_64/meson.build | 11 +++++++++++\n lib/librte_eal/common/arch/ppc_64/meson.build | 5 +++++\n .../common/include/arch/ppc_64/meson.build | 16 ++++++++++++++++\n 4 files changed, 41 insertions(+), 1 deletion(-)\n create mode 100644 config/ppc_64/meson.build\n create mode 100644 lib/librte_eal/common/arch/ppc_64/meson.build\n create mode 100644 lib/librte_eal/common/include/arch/ppc_64/meson.build", "diff": "diff --git a/config/meson.build b/config/meson.build\nindex 4d755323f4..6f9228c874 100644\n--- a/config/meson.build\n+++ b/config/meson.build\n@@ -9,7 +9,13 @@ else\n endif\n dpdk_conf.set('RTE_MACHINE', machine)\n machine_args = []\n-machine_args += '-march=' + machine\n+# ppc64 does not support -march=native\n+if host_machine.cpu_family().startswith('ppc') and machine == 'native'\n+\tmachine_args += '-mcpu=' + machine\n+\tmachine_args += '-mtune=' + machine\n+else\n+\tmachine_args += '-march=' + machine\n+endif\n \n toolchain = cc.get_id()\n dpdk_conf.set_quoted('RTE_TOOLCHAIN', toolchain)\n@@ -84,6 +90,8 @@ if host_machine.cpu_family().startswith('x86')\n \tarch_subdir = 'x86'\n elif host_machine.cpu_family().startswith('arm') or host_machine.cpu_family().startswith('aarch')\n \tarch_subdir = 'arm'\n+elif host_machine.cpu_family().startswith('ppc')\n+\tarch_subdir = 'ppc_64'\n endif\n subdir(arch_subdir)\n dpdk_conf.set('RTE_COMPILE_TIME_CPUFLAGS', ','.join(compile_time_cpuflags))\ndiff --git a/config/ppc_64/meson.build b/config/ppc_64/meson.build\nnew file mode 100644\nindex 0000000000..e207c438bf\n--- /dev/null\n+++ b/config/ppc_64/meson.build\n@@ -0,0 +1,11 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n+\n+dpdk_conf.set('RTE_ARCH', 'ppc_64')\n+dpdk_conf.set('RTE_ARCH_PPC_64', 1)\n+dpdk_conf.set('RTE_ARCH_64', 1)\n+\n+# overrides specific to ppc64\n+dpdk_conf.set('RTE_MAX_LCORE', 256)\n+dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)\n+dpdk_conf.set('RTE_CACHE_LINE_SIZE', 128)\ndiff --git a/lib/librte_eal/common/arch/ppc_64/meson.build b/lib/librte_eal/common/arch/ppc_64/meson.build\nnew file mode 100644\nindex 0000000000..40b3dc533a\n--- /dev/null\n+++ b/lib/librte_eal/common/arch/ppc_64/meson.build\n@@ -0,0 +1,5 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n+\n+eal_common_arch_sources = files('rte_cpuflags.c',\n+\t'rte_cycles.c', 'rte_hypervisor.c')\ndiff --git a/lib/librte_eal/common/include/arch/ppc_64/meson.build b/lib/librte_eal/common/include/arch/ppc_64/meson.build\nnew file mode 100644\nindex 0000000000..00f9611768\n--- /dev/null\n+++ b/lib/librte_eal/common/include/arch/ppc_64/meson.build\n@@ -0,0 +1,16 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n+\n+install_headers(\n+\t'rte_atomic.h',\n+\t'rte_byteorder.h',\n+\t'rte_cpuflags.h',\n+\t'rte_cycles.h',\n+\t'rte_io.h',\n+\t'rte_memcpy.h',\n+\t'rte_pause.h',\n+\t'rte_prefetch.h',\n+\t'rte_rwlock.h',\n+\t'rte_spinlock.h',\n+\t'rte_vect.h',\n+\tsubdir: get_option('include_subdir_arch'))\n", "prefixes": [ "v2" ] }{ "id": 44509, "url": "