Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/81944/?format=api
https://patches.dpdk.org/api/patches/81944/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1603464488-25493-5-git-send-email-juraj.linkes@pantheon.tech/", "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": "<1603464488-25493-5-git-send-email-juraj.linkes@pantheon.tech>", "list_archive_url": "https://inbox.dpdk.org/dev/1603464488-25493-5-git-send-email-juraj.linkes@pantheon.tech", "date": "2020-10-23T14:48:06", "name": "[v4,4/6] build: add core and NUMA counts to cross files", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "bb8d596cf51c00487b3f4bec9efc02194c6f01c6", "submitter": { "id": 1626, "url": "https://patches.dpdk.org/api/people/1626/?format=api", "name": "Juraj Linkeš", "email": "juraj.linkes@pantheon.tech" }, "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/1603464488-25493-5-git-send-email-juraj.linkes@pantheon.tech/mbox/", "series": [ { "id": 13267, "url": "https://patches.dpdk.org/api/series/13267/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13267", "date": "2020-10-23T14:48:02", "name": "Arm build options rework", "version": 4, "mbox": "https://patches.dpdk.org/series/13267/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/81944/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/81944/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A9217A04DD;\n\tFri, 23 Oct 2020 16:49:51 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 07D34A99F;\n\tFri, 23 Oct 2020 16:48:28 +0200 (CEST)", "from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20])\n by dpdk.org (Postfix) with ESMTP id 438B2A968\n for <dev@dpdk.org>; Fri, 23 Oct 2020 16:48:20 +0200 (CEST)", "from localhost (localhost [127.0.0.1])\n by lb.pantheon.sk (Postfix) with ESMTP id D66B0B6B4E;\n Fri, 23 Oct 2020 16:48:17 +0200 (CEST)", "from lb.pantheon.sk ([127.0.0.1])\n by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id EeE_UQCf8Uff; Fri, 23 Oct 2020 16:48:16 +0200 (CEST)", "from service-node1.lab.pantheon.local (unknown [46.229.239.141])\n by lb.pantheon.sk (Postfix) with ESMTP id D582FB6B52;\n Fri, 23 Oct 2020 16:48:10 +0200 (CEST)" ], "X-Virus-Scanned": "amavisd-new at siecit.sk", "From": "=?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>", "To": "bruce.richardson@intel.com, Ruifeng.Wang@arm.com,\n Honnappa.Nagarahalli@arm.com, Phil.Yang@arm.com, vcchunga@amazon.com,\n Dharmik.Thakkar@arm.com, jerinjacobk@gmail.com, hemant.agrawal@nxp.com", "Cc": "dev@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>", "Date": "Fri, 23 Oct 2020 16:48:06 +0200", "Message-Id": "<1603464488-25493-5-git-send-email-juraj.linkes@pantheon.tech>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1603464488-25493-1-git-send-email-juraj.linkes@pantheon.tech>", "References": "<1603280261-20206-1-git-send-email-juraj.linkes@pantheon.tech>\n <1603464488-25493-1-git-send-email-juraj.linkes@pantheon.tech>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v4 4/6] build: add core and NUMA counts to cross\n\tfiles", "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add support for setting core count and numa nodes in cross files. The\nvalues specified in cross files will override the default values.\nAlso add missing default values.\n\nSigned-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>\n---\n config/arm/arm64_armada_linux_gcc | 2 ++\n config/arm/arm64_armv8_linux_gcc | 6 ++++++\n config/arm/arm64_bluefield_linux_gcc | 2 ++\n config/arm/arm64_dpaa_linux_gcc | 2 ++\n config/arm/arm64_emag_linux_gcc | 2 ++\n config/arm/arm64_n1sdp_linux_gcc | 2 ++\n config/arm/arm64_octeontx2_linux_gcc | 2 ++\n config/arm/arm64_stingray_linux_gcc | 2 ++\n config/arm/arm64_thunderx2_linux_gcc | 2 ++\n config/arm/arm64_thunderx_linux_gcc | 2 ++\n config/arm/meson.build | 20 ++++++++++++++++++++\n 11 files changed, 44 insertions(+)", "diff": "diff --git a/config/arm/arm64_armada_linux_gcc b/config/arm/arm64_armada_linux_gcc\nindex 52c5f4476..36100c594 100644\n--- a/config/arm/arm64_armada_linux_gcc\n+++ b/config/arm/arm64_armada_linux_gcc\n@@ -15,3 +15,5 @@ endian = 'little'\n \n [properties]\n implementer_id = '0x56'\n+max_numa_nodes = 1\n+max_lcores = 16\ndiff --git a/config/arm/arm64_armv8_linux_gcc b/config/arm/arm64_armv8_linux_gcc\nindex 13ee8b223..779333199 100644\n--- a/config/arm/arm64_armv8_linux_gcc\n+++ b/config/arm/arm64_armv8_linux_gcc\n@@ -26,3 +26,9 @@ implementer_id = 'generic'\n # '0xd0a': cortex-a75\n # '0xd0b': cortex-a76\n part_number = 'generic'\n+\n+# Supported extra configuration\n+# max_numa_nodes = n # will set RTE_MAX_NUMA_NODES\n+# max_lcores = n # will set RTE_MAX_LCORE\n+max_lcores = 256\n+max_numa_nodes = 4\ndiff --git a/config/arm/arm64_bluefield_linux_gcc b/config/arm/arm64_bluefield_linux_gcc\nindex b79389d85..7ff6fd309 100644\n--- a/config/arm/arm64_bluefield_linux_gcc\n+++ b/config/arm/arm64_bluefield_linux_gcc\n@@ -15,3 +15,5 @@ endian = 'little'\n [properties]\n implementer_id = '0x41'\n part_number = '0xd08'\n+max_numa_nodes = 1\n+max_lcores = 16\ndiff --git a/config/arm/arm64_dpaa_linux_gcc b/config/arm/arm64_dpaa_linux_gcc\nindex 573ae7e42..adae86f57 100644\n--- a/config/arm/arm64_dpaa_linux_gcc\n+++ b/config/arm/arm64_dpaa_linux_gcc\n@@ -15,3 +15,5 @@ endian = 'little'\n \n [properties]\n implementer_id = 'dpaa'\n+max_numa_nodes = 1\n+max_lcores = 16\ndiff --git a/config/arm/arm64_emag_linux_gcc b/config/arm/arm64_emag_linux_gcc\nindex 24f3d533e..3cccca901 100644\n--- a/config/arm/arm64_emag_linux_gcc\n+++ b/config/arm/arm64_emag_linux_gcc\n@@ -14,3 +14,5 @@ endian = 'little'\n \n [properties]\n implementer_id = '0x50'\n+max_numa_nodes = 1\n+max_lcores = 32\ndiff --git a/config/arm/arm64_n1sdp_linux_gcc b/config/arm/arm64_n1sdp_linux_gcc\nindex 6fb3f02ea..3a8b46812 100644\n--- a/config/arm/arm64_n1sdp_linux_gcc\n+++ b/config/arm/arm64_n1sdp_linux_gcc\n@@ -15,3 +15,5 @@ endian = 'little'\n [properties]\n implementer_id = '0x41'\n part_number = '0xd0c'\n+max_numa_nodes = 1\n+max_lcores = 4\ndiff --git a/config/arm/arm64_octeontx2_linux_gcc b/config/arm/arm64_octeontx2_linux_gcc\nindex ac1042806..2baf95a2a 100644\n--- a/config/arm/arm64_octeontx2_linux_gcc\n+++ b/config/arm/arm64_octeontx2_linux_gcc\n@@ -15,3 +15,5 @@ endian = 'little'\n [properties]\n implementer_id = '0x43'\n part_number = '0xb2'\n+max_numa_nodes = 1\n+max_lcores = 36\ndiff --git a/config/arm/arm64_stingray_linux_gcc b/config/arm/arm64_stingray_linux_gcc\nindex b79389d85..7ff6fd309 100644\n--- a/config/arm/arm64_stingray_linux_gcc\n+++ b/config/arm/arm64_stingray_linux_gcc\n@@ -15,3 +15,5 @@ endian = 'little'\n [properties]\n implementer_id = '0x41'\n part_number = '0xd08'\n+max_numa_nodes = 1\n+max_lcores = 16\ndiff --git a/config/arm/arm64_thunderx2_linux_gcc b/config/arm/arm64_thunderx2_linux_gcc\nindex dd257745e..07440fe5f 100644\n--- a/config/arm/arm64_thunderx2_linux_gcc\n+++ b/config/arm/arm64_thunderx2_linux_gcc\n@@ -15,3 +15,5 @@ endian = 'little'\n [properties]\n implementer_id = '0x43'\n part_number = '0xaf'\n+max_numa_nodes = 2\n+max_lcores = 256\ndiff --git a/config/arm/arm64_thunderx_linux_gcc b/config/arm/arm64_thunderx_linux_gcc\nindex 670764437..16ba78fd6 100644\n--- a/config/arm/arm64_thunderx_linux_gcc\n+++ b/config/arm/arm64_thunderx_linux_gcc\n@@ -14,3 +14,5 @@ endian = 'little'\n \n [properties]\n implementer_id = '0x43'\n+max_numa_nodes = 1\n+max_lcores = 96\ndiff --git a/config/arm/meson.build b/config/arm/meson.build\nindex 6c31ab167..b5a62f89d 100644\n--- a/config/arm/meson.build\n+++ b/config/arm/meson.build\n@@ -38,12 +38,14 @@ flags_common_default = [\n flags_generic = [\n \t['RTE_MACHINE', '\"armv8a\"'],\n \t['RTE_MAX_LCORE', 256],\n+\t['RTE_MAX_NUMA_NODES', 4],\n \t['RTE_USE_C11_MEM_MODEL', true],\n \t['RTE_CACHE_LINE_SIZE', 128]\n ]\n flags_arm = [\n \t['RTE_MACHINE', '\"armv8a\"'],\n \t['RTE_MAX_LCORE', 16],\n+\t['RTE_MAX_NUMA_NODES', 1],\n \t['RTE_USE_C11_MEM_MODEL', true],\n \t['RTE_CACHE_LINE_SIZE', 64]\n ]\n@@ -214,6 +216,24 @@ else\n \t\tdpdk_flags += part_number_config[1]\n \tendif\n \n+\t# apply cross-specific options\n+\tif meson.is_cross_build()\n+\t\t# configure RTE_MAX_NUMA_NODES and RTE_MAX_LCORE from cross file\n+\t\tcross_max_numa_nodes = meson.get_cross_property('max_numa_nodes', 0)\n+\t\tif cross_max_numa_nodes != 0\n+\t\t\tdpdk_flags += [\n+\t\t\t\t['RTE_MAX_NUMA_NODES', cross_max_numa_nodes]\n+\t\t\t]\n+\t\tendif\n+\t\tcross_max_lcores = meson.get_cross_property('max_lcores', 0)\n+\t\tif cross_max_lcores != 0\n+\t\t\tmessage('Setting RTE_MAX_LCORE from cross file')\n+\t\t\tdpdk_flags += [\n+\t\t\t\t['RTE_MAX_LCORE', cross_max_lcores]\n+\t\t\t]\n+\t\tendif\n+\tendif\n+\n \tmachine_args = [] # Clear previous machine args\n \tforeach flag: part_number_config[0]\n \t\tif cc.has_argument(flag)\n", "prefixes": [ "v4", "4/6" ] }{ "id": 81944, "url": "