Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/66637/?format=api
http://patches.dpdk.org/api/patches/66637/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200313091835.58039-5-gavin.hu@arm.com/", "project": { "id": 1, "url": "http://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": "<20200313091835.58039-5-gavin.hu@arm.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200313091835.58039-5-gavin.hu@arm.com", "date": "2020-03-13T09:18:32", "name": "[RFC,v1,4/7] net/ena: relax barrier for completion queue update", "commit_ref": null, "pull_url": null, "state": "rfc", "archived": true, "hash": "68c8d9d0a6d2c68c472db286107d67cc377258b0", "submitter": { "id": 1018, "url": "http://patches.dpdk.org/api/people/1018/?format=api", "name": "Gavin Hu", "email": "gavin.hu@arm.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200313091835.58039-5-gavin.hu@arm.com/mbox/", "series": [ { "id": 8902, "url": "http://patches.dpdk.org/api/series/8902/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8902", "date": "2020-03-13T09:18:28", "name": "relax barriers for ENA PMD and small fixes", "version": 1, "mbox": "http://patches.dpdk.org/series/8902/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/66637/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/66637/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 99A2FA0567;\n\tFri, 13 Mar 2020 10:20:26 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 83D8A1C06D;\n\tFri, 13 Mar 2020 10:20:05 +0100 (CET)", "from foss.arm.com (foss.arm.com [217.140.110.172])\n by dpdk.org (Postfix) with ESMTP id 58F4B1C06D\n for <dev@dpdk.org>; Fri, 13 Mar 2020 10:20:04 +0100 (CET)", "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DE9F431B;\n Fri, 13 Mar 2020 02:20:03 -0700 (PDT)", "from net-arm-thunderx2-04.shanghai.arm.com\n (net-arm-thunderx2-04.shanghai.arm.com [10.169.40.184])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B446F3F67D;\n Fri, 13 Mar 2020 02:19:59 -0700 (PDT)" ], "From": "Gavin Hu <gavin.hu@arm.com>", "To": "dev@dpdk.org", "Cc": "nd@arm.com, david.marchand@redhat.com, thomas@monjalon.net,\n mk@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com, igorch@amazon.com,\n mw@semihalf.com, Honnappa.Nagarahalli@arm.com, ruifeng.wang@arm.com,\n phil.yang@arm.com, joyce.kong@arm.com", "Date": "Fri, 13 Mar 2020 17:18:32 +0800", "Message-Id": "<20200313091835.58039-5-gavin.hu@arm.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200313091835.58039-1-gavin.hu@arm.com>", "References": "<20200313091835.58039-1-gavin.hu@arm.com>", "Subject": "[dpdk-dev] [PATCH RFC v1 4/7] net/ena: relax barrier for completion\n\tqueue update", "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": "To gaurantee the update observed by NIC HW, a cio barrier is sufficient,\nan io barrier, which translates to dsb on aarch64, is overkill.\n\nSuggested-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>\nSigned-off-by: Gavin Hu <gavin.hu@arm.com>\nReviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>\n---\n drivers/net/ena/base/ena_eth_com.h | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ena/base/ena_eth_com.h b/drivers/net/ena/base/ena_eth_com.h\nindex e56c33a64..edfa98b72 100644\n--- a/drivers/net/ena/base/ena_eth_com.h\n+++ b/drivers/net/ena/base/ena_eth_com.h\n@@ -180,7 +180,9 @@ static inline int ena_com_update_dev_comp_head(struct ena_com_io_cq *io_cq)\n \t\tif (unlikely(need_update)) {\n \t\t\tena_trc_dbg(\"Write completion queue doorbell for queue %d: head: %d\\n\",\n \t\t\t\t io_cq->qid, head);\n-\t\t\tENA_REG_WRITE32(io_cq->bus, head, io_cq->cq_head_db_reg);\n+\t\t\trte_cio_wmb();\n+\t\t\tENA_REG_WRITE32_RELAXED(io_cq->bus, head,\n+\t\t\t\t io_cq->cq_head_db_reg);\n \t\t\tio_cq->last_head_update = head;\n \t\t}\n \t}\n", "prefixes": [ "RFC", "v1", "4/7" ] }{ "id": 66637, "url": "