Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/41610/?format=api
http://patchwork.dpdk.org/api/patches/41610/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1530034653-28299-3-git-send-email-alejandro.lucero@netronome.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1530034653-28299-3-git-send-email-alejandro.lucero@netronome.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1530034653-28299-3-git-send-email-alejandro.lucero@netronome.com", "date": "2018-06-26T17:37:29", "name": "[2/6] mem: add hugepages check", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "53865cf8b82d2de2f2566e67c0b3853a1587b821", "submitter": { "id": 270, "url": "http://patchwork.dpdk.org/api/people/270/?format=api", "name": "Alejandro Lucero", "email": "alejandro.lucero@netronome.com" }, "delegate": { "id": 319, "url": "http://patchwork.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1530034653-28299-3-git-send-email-alejandro.lucero@netronome.com/mbox/", "series": [ { "id": 250, "url": "http://patchwork.dpdk.org/api/series/250/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=250", "date": "2018-06-26T17:37:28", "name": "[1/6] eal: add internal dma mask", "version": 1, "mbox": "http://patchwork.dpdk.org/series/250/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/41610/comments/", "check": "fail", "checks": "http://patchwork.dpdk.org/api/patches/41610/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 121201BE5A;\n\tTue, 26 Jun 2018 19:38:14 +0200 (CEST)", "from netronome.com (host-79-78-33-110.static.as9105.net\n\t[79.78.33.110]) by dpdk.org (Postfix) with ESMTP id A3CDB1BE3E;\n\tTue, 26 Jun 2018 19:38:04 +0200 (CEST)", "from netronome.com (localhost [127.0.0.1])\n\tby netronome.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id\n\tw5QHbbv9028354; Tue, 26 Jun 2018 18:37:37 +0100", "(from alucero@localhost)\n\tby netronome.com (8.14.4/8.14.4/Submit) id w5QHbbk8028353;\n\tTue, 26 Jun 2018 18:37:37 +0100" ], "From": "Alejandro Lucero <alejandro.lucero@netronome.com>", "To": "dev@dpdk.org", "Cc": "stable@dpdk.org, anatoly.burakov@intel.com", "Date": "Tue, 26 Jun 2018 18:37:29 +0100", "Message-Id": "<1530034653-28299-3-git-send-email-alejandro.lucero@netronome.com>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<1530034653-28299-1-git-send-email-alejandro.lucero@netronome.com>", "References": "<1530034653-28299-1-git-send-email-alejandro.lucero@netronome.com>", "Subject": "[dpdk-dev] [PATCH 2/6] mem: add hugepages check", "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": "Devices can have addressing limitations and a driver can set a dma\nmask. This patch adds a function for checking hugepages iovas are within\nthe range supported by the dma mask.\n\nSigned-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>\n---\n lib/librte_eal/linuxapp/eal/eal_memory.c | 36 ++++++++++++++++++++++++++++++++\n 1 file changed, 36 insertions(+)", "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c\nindex 17c20d4..4c196a6 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_memory.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_memory.c\n@@ -1334,6 +1334,42 @@ void numa_error(char *where)\n \treturn -1;\n }\n \n+int\n+rte_eal_memory_dma_mask_check(void)\n+{\n+\tstruct rte_mem_config *mcfg;\n+\tint i;\n+\tint total_segs_checked = 0;\n+\tuint64_t mask;\n+\n+\tif (!internal_config.dma_mask)\n+\t\treturn 0;\n+\n+\tmask = 1ULL << internal_config.dma_mask;\n+\tmask -= 1;\n+\n+\t/* get pointer to global configuration */\n+\tmcfg = rte_eal_get_configuration()->mem_config;\n+\n+\tfor (i = 0; i < RTE_MAX_MEMSEG; i++) {\n+\t\tRTE_LOG(DEBUG, EAL, \"Memseg %d with iova %\"PRIx64\" and mask %\"PRIx64\"\\n\", i,\n+\t\t\t\t mcfg->memseg[i].iova, mask);\n+\n+\t\tif (!mcfg->memseg[i].iova)\n+\t\t\tbreak;\n+\n+\t\tif (mcfg->memseg[i].iova & ~mask) {\n+\t\t\treturn -1;\n+\t\t}\n+\t\ttotal_segs_checked++;\n+\t}\n+\n+\tRTE_LOG(DEBUG, EAL, \"ALEJ: %d segments successfully checked with dma mask\\n\",\n+\t\t\t total_segs_checked);\n+\n+\treturn 0;\n+}\n+\n /*\n * uses fstat to report the size of a file on disk\n */\n", "prefixes": [ "2/6" ] }{ "id": 41610, "url": "