Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/41611/?format=api
http://patchwork.dpdk.org/api/patches/41611/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1530034653-28299-5-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-5-git-send-email-alejandro.lucero@netronome.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1530034653-28299-5-git-send-email-alejandro.lucero@netronome.com", "date": "2018-06-26T17:37:31", "name": "[4/6] mem: add function for setting internal dma mask", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "63064205f164c48f940a9f2d4e2912adaaf552c6", "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-5-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/41611/comments/", "check": "fail", "checks": "http://patchwork.dpdk.org/api/patches/41611/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 413C21BE68;\n\tTue, 26 Jun 2018 19:38:16 +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 0F2AC1BE3C;\n\tTue, 26 Jun 2018 19:38:05 +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\tw5QHbbZO028362; Tue, 26 Jun 2018 18:37:37 +0100", "(from alucero@localhost)\n\tby netronome.com (8.14.4/8.14.4/Submit) id w5QHbbBM028361;\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:31 +0100", "Message-Id": "<1530034653-28299-5-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 4/6] mem: add function for setting internal dma\n\tmask", "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": "A device with addressing limitations will invoke this function\nfor setting a dma mask. It has no effect if there is another\ndma mask already set and more restrictive than this one.\n\nSigned-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>\n---\n lib/librte_eal/common/eal_common_memory.c | 15 +++++++++++++++\n lib/librte_eal/common/include/rte_memory.h | 3 +++\n 2 files changed, 18 insertions(+)", "diff": "diff --git a/lib/librte_eal/common/eal_common_memory.c b/lib/librte_eal/common/eal_common_memory.c\nindex fc6c44d..39bf98c 100644\n--- a/lib/librte_eal/common/eal_common_memory.c\n+++ b/lib/librte_eal/common/eal_common_memory.c\n@@ -109,6 +109,21 @@\n \t}\n }\n \n+/* set global dma mask based on device dma mask */\n+void\n+rte_eal_set_dma_mask(uint8_t maskbits) {\n+\n+\t/* If no dma mask yet this is the new one */\n+\tif (!internal_config.dma_mask) {\n+\t\tinternal_config.dma_mask = maskbits;\n+\t\treturn;\n+\t}\n+\n+\t/* Set dma mask just if more restrictive than current one */\n+\tif (internal_config.dma_mask > maskbits)\n+\t\tinternal_config.dma_mask = maskbits;\n+}\n+\n /* return the number of memory channels */\n unsigned rte_memory_get_nchannel(void)\n {\ndiff --git a/lib/librte_eal/common/include/rte_memory.h b/lib/librte_eal/common/include/rte_memory.h\nindex 80a8fc0..a078c31 100644\n--- a/lib/librte_eal/common/include/rte_memory.h\n+++ b/lib/librte_eal/common/include/rte_memory.h\n@@ -209,6 +209,9 @@ struct rte_memseg {\n */\n unsigned rte_memory_get_nrank(void);\n \n+/* set global dma mask based on a specific device dma mask */\n+void rte_eal_set_dma_mask(uint8_t maskbits);\n+\n /**\n * Drivers based on uio will not load unless physical\n * addresses are obtainable. It is only possible to get\n", "prefixes": [ "4/6" ] }{ "id": 41611, "url": "