get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/74338/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 74338,
    "url": "http://patches.dpdk.org/api/patches/74338/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1594982985-31551-5-git-send-email-radu.nicolau@intel.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": "<1594982985-31551-5-git-send-email-radu.nicolau@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1594982985-31551-5-git-send-email-radu.nicolau@intel.com",
    "date": "2020-07-17T10:49:45",
    "name": "[v8,4/4] net/ixgbe: use WC store to update queue tail registers",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "17c11224ef2bb802cbe8c02f6731a132f570dde8",
    "submitter": {
        "id": 743,
        "url": "http://patches.dpdk.org/api/people/743/?format=api",
        "name": "Radu Nicolau",
        "email": "radu.nicolau@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1594982985-31551-5-git-send-email-radu.nicolau@intel.com/mbox/",
    "series": [
        {
            "id": 11126,
            "url": "http://patches.dpdk.org/api/series/11126/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11126",
            "date": "2020-07-17T10:49:41",
            "name": "eal: add WC store functions",
            "version": 8,
            "mbox": "http://patches.dpdk.org/series/11126/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/74338/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/74338/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 D1B36A053D;\n\tFri, 17 Jul 2020 12:50:53 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 823A11C0B3;\n\tFri, 17 Jul 2020 12:50:24 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id 42DC81C06B\n for <dev@dpdk.org>; Fri, 17 Jul 2020 12:50:22 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Jul 2020 03:50:21 -0700",
            "from silpixa00383879.ir.intel.com ([10.237.222.142])\n by fmsmga004.fm.intel.com with ESMTP; 17 Jul 2020 03:50:19 -0700"
        ],
        "IronPort-SDR": [
            "\n s9GkHaOMxRUHGGnJ8QKGml20jW1XF+CREYdLu9nD7qpV7bamsOU1IrQ3xICvQmtqvQkzT1GejF\n P9cB7VtNbS1w==",
            "\n TgUdhf7vaKzP3z6KUMjw55+Ue1ESNE89GYF6S/4L7sB9nJakf/Z1awM4EGKq8LVotjUA6jMiLL\n kNcqqNhzs6pA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9684\"; a=\"129131832\"",
            "E=Sophos;i=\"5.75,362,1589266800\"; d=\"scan'208\";a=\"129131832\"",
            "E=Sophos;i=\"5.75,362,1589266800\"; d=\"scan'208\";a=\"308983666\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Radu Nicolau <radu.nicolau@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "beilei.xing@intel.com, jia.guo@intel.com, bruce.richardson@intel.com,\n konstantin.ananyev@intel.com, jerinjacobk@gmail.com,\n david.marchand@redhat.com, fiona.trahe@intel.com, wei.zhao1@intel.com,\n ruifeng.wang@arm.com, Radu Nicolau <radu.nicolau@intel.com>",
        "Date": "Fri, 17 Jul 2020 11:49:45 +0100",
        "Message-Id": "<1594982985-31551-5-git-send-email-radu.nicolau@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1594982985-31551-1-git-send-email-radu.nicolau@intel.com>",
        "References": "<1591870283-7776-1-git-send-email-radu.nicolau@intel.com>\n <1594982985-31551-1-git-send-email-radu.nicolau@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v8 4/4] net/ixgbe: use WC store to update queue\n\ttail registers",
        "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": "Performance improvement: use a write combining store\ninstead of a regular mmio write to update queue tail\nregisters.\n\nSigned-off-by: Radu Nicolau <radu.nicolau@intel.com>\n---\n drivers/net/ixgbe/base/ixgbe_osdep.h   |  6 ++++++\n drivers/net/ixgbe/ixgbe_rxtx.c         | 12 ++++++------\n drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c |  4 ++--\n 3 files changed, 14 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/net/ixgbe/base/ixgbe_osdep.h b/drivers/net/ixgbe/base/ixgbe_osdep.h\nindex dc712b7..cacf724 100644\n--- a/drivers/net/ixgbe/base/ixgbe_osdep.h\n+++ b/drivers/net/ixgbe/base/ixgbe_osdep.h\n@@ -105,6 +105,12 @@ static inline uint32_t ixgbe_read_addr(volatile void* addr)\n #define IXGBE_PCI_REG_WRITE_RELAXED(reg, value)\t\t\\\n \trte_write32_relaxed((rte_cpu_to_le_32(value)), reg)\n \n+#define IXGBE_PCI_REG_WC_WRITE(reg, value)\t\t\t\\\n+\trte_write32_wc((rte_cpu_to_le_32(value)), reg)\n+\n+#define IXGBE_PCI_REG_WC_WRITE_RELAXED(reg, value)\t\t\\\n+\trte_write32_wc_relaxed((rte_cpu_to_le_32(value)), reg)\n+\n #define IXGBE_PCI_REG_ADDR(hw, reg) \\\n \t((volatile uint32_t *)((char *)(hw)->hw_addr + (reg)))\n \ndiff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c\nindex 2e20e18..669b23e 100644\n--- a/drivers/net/ixgbe/ixgbe_rxtx.c\n+++ b/drivers/net/ixgbe/ixgbe_rxtx.c\n@@ -308,7 +308,7 @@ tx_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,\n \n \t/* update tail pointer */\n \trte_wmb();\n-\tIXGBE_PCI_REG_WRITE_RELAXED(txq->tdt_reg_addr, txq->tx_tail);\n+\tIXGBE_PCI_REG_WC_WRITE_RELAXED(txq->tdt_reg_addr, txq->tx_tail);\n \n \treturn nb_pkts;\n }\n@@ -946,7 +946,7 @@ ixgbe_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,\n \tPMD_TX_LOG(DEBUG, \"port_id=%u queue_id=%u tx_tail=%u nb_tx=%u\",\n \t\t   (unsigned) txq->port_id, (unsigned) txq->queue_id,\n \t\t   (unsigned) tx_id, (unsigned) nb_tx);\n-\tIXGBE_PCI_REG_WRITE_RELAXED(txq->tdt_reg_addr, tx_id);\n+\tIXGBE_PCI_REG_WC_WRITE_RELAXED(txq->tdt_reg_addr, tx_id);\n \ttxq->tx_tail = tx_id;\n \n \treturn nb_tx;\n@@ -1692,7 +1692,7 @@ rx_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,\n \n \t\t/* update tail pointer */\n \t\trte_wmb();\n-\t\tIXGBE_PCI_REG_WRITE_RELAXED(rxq->rdt_reg_addr,\n+\t\tIXGBE_PCI_REG_WC_WRITE_RELAXED(rxq->rdt_reg_addr,\n \t\t\t\t\t    cur_free_trigger);\n \t}\n \n@@ -1918,7 +1918,7 @@ ixgbe_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,\n \t\t\t   (unsigned) nb_rx);\n \t\trx_id = (uint16_t) ((rx_id == 0) ?\n \t\t\t\t     (rxq->nb_rx_desc - 1) : (rx_id - 1));\n-\t\tIXGBE_PCI_REG_WRITE(rxq->rdt_reg_addr, rx_id);\n+\t\tIXGBE_PCI_REG_WC_WRITE(rxq->rdt_reg_addr, rx_id);\n \t\tnb_hold = 0;\n \t}\n \trxq->nb_rx_hold = nb_hold;\n@@ -2096,7 +2096,7 @@ ixgbe_recv_pkts_lro(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts,\n \n \t\t\tif (!ixgbe_rx_alloc_bufs(rxq, false)) {\n \t\t\t\trte_wmb();\n-\t\t\t\tIXGBE_PCI_REG_WRITE_RELAXED(rxq->rdt_reg_addr,\n+\t\t\t\tIXGBE_PCI_REG_WC_WRITE_RELAXED(rxq->rdt_reg_addr,\n \t\t\t\t\t\t\t    next_rdt);\n \t\t\t\tnb_hold -= rxq->rx_free_thresh;\n \t\t\t} else {\n@@ -2262,7 +2262,7 @@ ixgbe_recv_pkts_lro(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts,\n \t\t\t   rxq->port_id, rxq->queue_id, rx_id, nb_hold, nb_rx);\n \n \t\trte_wmb();\n-\t\tIXGBE_PCI_REG_WRITE_RELAXED(rxq->rdt_reg_addr, prev_id);\n+\t\tIXGBE_PCI_REG_WC_WRITE_RELAXED(rxq->rdt_reg_addr, prev_id);\n \t\tnb_hold = 0;\n \t}\n \ndiff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c b/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c\nindex 517ca31..e77a7f3 100644\n--- a/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c\n+++ b/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c\n@@ -90,7 +90,7 @@ ixgbe_rxq_rearm(struct ixgbe_rx_queue *rxq)\n \t\t\t     (rxq->nb_rx_desc - 1) : (rxq->rxrearm_start - 1));\n \n \t/* Update the tail pointer on the NIC */\n-\tIXGBE_PCI_REG_WRITE(rxq->rdt_reg_addr, rx_id);\n+\tIXGBE_PCI_REG_WC_WRITE(rxq->rdt_reg_addr, rx_id);\n }\n \n #ifdef RTE_LIBRTE_SECURITY\n@@ -697,7 +697,7 @@ ixgbe_xmit_fixed_burst_vec(void *tx_queue, struct rte_mbuf **tx_pkts,\n \n \ttxq->tx_tail = tx_id;\n \n-\tIXGBE_PCI_REG_WRITE(txq->tdt_reg_addr, txq->tx_tail);\n+\tIXGBE_PCI_REG_WC_WRITE(txq->tdt_reg_addr, txq->tx_tail);\n \n \treturn nb_pkts;\n }\n",
    "prefixes": [
        "v8",
        "4/4"
    ]
}