Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/37574/?format=api
https://patches.dpdk.org/api/patches/37574/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/b6ba1c9c52688e4df6c7c519a34c264fe4fbb24e.1523218215.git.anatoly.burakov@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": "<b6ba1c9c52688e4df6c7c519a34c264fe4fbb24e.1523218215.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/b6ba1c9c52688e4df6c7c519a34c264fe4fbb24e.1523218215.git.anatoly.burakov@intel.com", "date": "2018-04-08T20:17:49", "name": "[dpdk-dev,v4,16/70] net/bnxt: use contiguous allocation for DMA memory", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b0f53c5da45d497998d035c715b0e069e0bbfcdf", "submitter": { "id": 4, "url": "https://patches.dpdk.org/api/people/4/?format=api", "name": "Burakov, Anatoly", "email": "anatoly.burakov@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/b6ba1c9c52688e4df6c7c519a34c264fe4fbb24e.1523218215.git.anatoly.burakov@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/37574/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/37574/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 652791B72D;\n\tSun, 8 Apr 2018 22:20:27 +0200 (CEST)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby dpdk.org (Postfix) with ESMTP id E65F01B69A\n\tfor <dev@dpdk.org>; Sun, 8 Apr 2018 22:18:54 +0200 (CEST)", "from fmsmga007.fm.intel.com ([10.253.24.52])\n\tby orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t08 Apr 2018 13:18:51 -0700", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby fmsmga007.fm.intel.com with ESMTP; 08 Apr 2018 13:18:47 -0700", "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tw38KIlD0021114; Sun, 8 Apr 2018 21:18:47 +0100", "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id w38KIlnA010996;\n\tSun, 8 Apr 2018 21:18:47 +0100", "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id w38KIlQi010992;\n\tSun, 8 Apr 2018 21:18:47 +0100" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.48,424,1517904000\"; d=\"scan'208\";a=\"30532917\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "Ajit Khaparde <ajit.khaparde@broadcom.com>,\n\tSomnath Kotur <somnath.kotur@broadcom.com>, keith.wiles@intel.com,\n\tjianfeng.tan@intel.com, andras.kovacs@ericsson.com,\n\tlaszlo.vadkeri@ericsson.com, benjamin.walker@intel.com,\n\tbruce.richardson@intel.com, thomas@monjalon.net,\n\tkonstantin.ananyev@intel.com, kuralamudhan.ramakrishnan@intel.com,\n\tlouise.m.daly@intel.com, nelio.laranjeiro@6wind.com,\n\tyskoh@mellanox.com, pepperjo@japf.ch, jerin.jacob@caviumnetworks.com, \n\themant.agrawal@nxp.com, olivier.matz@6wind.com, shreyansh.jain@nxp.com,\n\tgowrishankar.m@linux.vnet.ibm.com", "Date": "Sun, 8 Apr 2018 21:17:49 +0100", "Message-Id": "<b6ba1c9c52688e4df6c7c519a34c264fe4fbb24e.1523218215.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "In-Reply-To": [ "<cover.1523218215.git.anatoly.burakov@intel.com>", "<cover.1523218215.git.anatoly.burakov@intel.com>" ], "References": [ "<cover.1523218215.git.anatoly.burakov@intel.com>", "<cover.1522797505.git.anatoly.burakov@intel.com>\n\t<cover.1523218215.git.anatoly.burakov@intel.com>" ], "Subject": "[dpdk-dev] [PATCH v4 16/70] net/bnxt: use contiguous allocation for\n\tDMA memory", "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://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": "<https://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": "All hardware drivers should allocate IOVA-contiguous\nmemzones for their hardware resources.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n\nNotes:\n v4:\n - Use new memzone flag instead of new API\n - Remove experimental API from build files\n \n v3:\n - Added this driver to the list of modified drivers\n - Add experimental API to build files\n \n v3:\n - Added this patch\n \n All memzone reserve calls then check physical addresses,\n so this looks like they're reserving DMA memory.\n Corrections welcome.\n\n drivers/net/bnxt/bnxt_ethdev.c | 17 ++++++++++-------\n drivers/net/bnxt/bnxt_ring.c | 9 +++++----\n drivers/net/bnxt/bnxt_vnic.c | 8 ++++----\n 3 files changed, 19 insertions(+), 15 deletions(-)", "diff": "diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c\nindex 0b21653..ad7d925 100644\n--- a/drivers/net/bnxt/bnxt_ethdev.c\n+++ b/drivers/net/bnxt/bnxt_ethdev.c\n@@ -3147,9 +3147,10 @@ bnxt_dev_init(struct rte_eth_dev *eth_dev)\n \t\t\t\tsizeof(struct rx_port_stats) + 512);\n \t\tif (!mz) {\n \t\t\tmz = rte_memzone_reserve(mz_name, total_alloc_len,\n-\t\t\t\t\t\t SOCKET_ID_ANY,\n-\t\t\t\t\t\t RTE_MEMZONE_2MB |\n-\t\t\t\t\t\t RTE_MEMZONE_SIZE_HINT_ONLY);\n+\t\t\t\t\tSOCKET_ID_ANY,\n+\t\t\t\t\tRTE_MEMZONE_2MB |\n+\t\t\t\t\tRTE_MEMZONE_SIZE_HINT_ONLY |\n+\t\t\t\t\tRTE_MEMZONE_IOVA_CONTIG);\n \t\t\tif (mz == NULL)\n \t\t\t\treturn -ENOMEM;\n \t\t}\n@@ -3181,10 +3182,12 @@ bnxt_dev_init(struct rte_eth_dev *eth_dev)\n \t\ttotal_alloc_len = RTE_CACHE_LINE_ROUNDUP(\n \t\t\t\tsizeof(struct tx_port_stats) + 512);\n \t\tif (!mz) {\n-\t\t\tmz = rte_memzone_reserve(mz_name, total_alloc_len,\n-\t\t\t\t\t\t SOCKET_ID_ANY,\n-\t\t\t\t\t\t RTE_MEMZONE_2MB |\n-\t\t\t\t\t\t RTE_MEMZONE_SIZE_HINT_ONLY);\n+\t\t\tmz = rte_memzone_reserve(mz_name,\n+\t\t\t\t\ttotal_alloc_len,\n+\t\t\t\t\tSOCKET_ID_ANY,\n+\t\t\t\t\tRTE_MEMZONE_2MB |\n+\t\t\t\t\tRTE_MEMZONE_SIZE_HINT_ONLY |\n+\t\t\t\t\tRTE_MEMZONE_IOVA_CONTIG);\n \t\t\tif (mz == NULL)\n \t\t\t\treturn -ENOMEM;\n \t\t}\ndiff --git a/drivers/net/bnxt/bnxt_ring.c b/drivers/net/bnxt/bnxt_ring.c\nindex 8fb8972..0e8a6a2 100644\n--- a/drivers/net/bnxt/bnxt_ring.c\n+++ b/drivers/net/bnxt/bnxt_ring.c\n@@ -166,10 +166,11 @@ int bnxt_alloc_rings(struct bnxt *bp, uint16_t qidx,\n \tmz = rte_memzone_lookup(mz_name);\n \tif (!mz) {\n \t\tmz = rte_memzone_reserve_aligned(mz_name, total_alloc_len,\n-\t\t\t\t\t SOCKET_ID_ANY,\n-\t\t\t\t\t RTE_MEMZONE_2MB |\n-\t\t\t\t\t RTE_MEMZONE_SIZE_HINT_ONLY,\n-\t\t\t\t\t getpagesize());\n+\t\t\t\tSOCKET_ID_ANY,\n+\t\t\t\tRTE_MEMZONE_2MB |\n+\t\t\t\tRTE_MEMZONE_SIZE_HINT_ONLY |\n+\t\t\t\tRTE_MEMZONE_IOVA_CONTIG,\n+\t\t\t\tgetpagesize());\n \t\tif (mz == NULL)\n \t\t\treturn -ENOMEM;\n \t}\ndiff --git a/drivers/net/bnxt/bnxt_vnic.c b/drivers/net/bnxt/bnxt_vnic.c\nindex d4aeb4c..9ccc67e 100644\n--- a/drivers/net/bnxt/bnxt_vnic.c\n+++ b/drivers/net/bnxt/bnxt_vnic.c\n@@ -185,10 +185,10 @@ int bnxt_alloc_vnic_attributes(struct bnxt *bp)\n \tmz = rte_memzone_lookup(mz_name);\n \tif (!mz) {\n \t\tmz = rte_memzone_reserve(mz_name,\n-\t\t\t\t\t entry_length * max_vnics,\n-\t\t\t\t\t SOCKET_ID_ANY,\n-\t\t\t\t\t RTE_MEMZONE_2MB |\n-\t\t\t\t\t RTE_MEMZONE_SIZE_HINT_ONLY);\n+\t\t\t\tentry_length * max_vnics, SOCKET_ID_ANY,\n+\t\t\t\tRTE_MEMZONE_2MB |\n+\t\t\t\tRTE_MEMZONE_SIZE_HINT_ONLY |\n+\t\t\t\tRTE_MEMZONE_IOVA_CONTIG);\n \t\tif (!mz)\n \t\t\treturn -ENOMEM;\n \t}\n", "prefixes": [ "dpdk-dev", "v4", "16/70" ] }{ "id": 37574, "url": "