get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 75989,
    "url": "http://patches.dpdk.org/api/patches/75989/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200826095552.82525-6-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": "<20200826095552.82525-6-radu.nicolau@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200826095552.82525-6-radu.nicolau@intel.com",
    "date": "2020-08-26T09:55:52",
    "name": "[v11,5/5] net/ice: use WC store to update queue tail registers",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6aa9def860b3584f5338df63027e6a9ff9ea7640",
    "submitter": {
        "id": 743,
        "url": "http://patches.dpdk.org/api/people/743/?format=api",
        "name": "Radu Nicolau",
        "email": "radu.nicolau@intel.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200826095552.82525-6-radu.nicolau@intel.com/mbox/",
    "series": [
        {
            "id": 11800,
            "url": "http://patches.dpdk.org/api/series/11800/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11800",
            "date": "2020-08-26T09:55:47",
            "name": "eal: add WC store functions",
            "version": 11,
            "mbox": "http://patches.dpdk.org/series/11800/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/75989/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/75989/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 5695BA04B2;\n\tWed, 26 Aug 2020 11:56:46 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 087BD1C0BE;\n\tWed, 26 Aug 2020 11:56:18 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by dpdk.org (Postfix) with ESMTP id 874CA1C0AF\n for <dev@dpdk.org>; Wed, 26 Aug 2020 11:56:15 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Aug 2020 02:56:15 -0700",
            "from silpixa00400567.ir.intel.com ([10.237.214.190])\n by orsmga003.jf.intel.com with ESMTP; 26 Aug 2020 02:56:12 -0700"
        ],
        "IronPort-SDR": [
            "\n 2hkVeadccgGOCvFJRul/+kf8vzCsVkGyTLE0+gYqZOqt9onzRDsN/G2k1hCCRU6AM2J1bo2OFr\n zowMA8iRbM+Q==",
            "\n UJhb8nqxcYzAW7EhYeepnp1i0mBo6f7dv6RFvFrTLwklf3fwnxsdERYI/WSafJH7Ewbcg1CvWZ\n Wd7mWeafdd5A=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9724\"; a=\"157301368\"",
            "E=Sophos;i=\"5.76,355,1592895600\"; d=\"scan'208\";a=\"157301368\"",
            "E=Sophos;i=\"5.76,355,1592895600\"; d=\"scan'208\";a=\"295319516\""
        ],
        "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, qiming.yang@intel.com, qi.z.zhang@intel.com,\n Radu Nicolau <radu.nicolau@intel.com>",
        "Date": "Wed, 26 Aug 2020 10:55:52 +0100",
        "Message-Id": "<20200826095552.82525-6-radu.nicolau@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200826095552.82525-1-radu.nicolau@intel.com>",
        "References": "<1591870283-7776-1-git-send-email-radu.nicolau@intel.com>\n <20200826095552.82525-1-radu.nicolau@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v11 5/5] net/ice: 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/ice/base/ice_osdep.h    | 1 +\n drivers/net/ice/ice_rxtx.c          | 6 +++---\n drivers/net/ice/ice_rxtx_vec_avx2.c | 4 ++--\n drivers/net/ice/ice_rxtx_vec_sse.c  | 4 ++--\n 4 files changed, 8 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/drivers/net/ice/base/ice_osdep.h b/drivers/net/ice/base/ice_osdep.h\nindex 360e435b8..c793f1e38 100644\n--- a/drivers/net/ice/base/ice_osdep.h\n+++ b/drivers/net/ice/base/ice_osdep.h\n@@ -165,6 +165,7 @@ do {\t\t\t\t\t\t\t\t\t\\\n #endif\n \n #define ICE_PCI_REG_WRITE(reg, value) writel(value, reg)\n+#define ICE_PCI_REG_WC_WRITE(reg, value) rte_write32_wc(value, reg)\n \n #define ICE_READ_REG(hw, reg)         rd32(hw, reg)\n #define ICE_WRITE_REG(hw, reg, value) wr32(hw, reg, value)\ndiff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c\nindex 2e1f06d2c..d23841623 100644\n--- a/drivers/net/ice/ice_rxtx.c\n+++ b/drivers/net/ice/ice_rxtx.c\n@@ -1741,7 +1741,7 @@ ice_recv_scattered_pkts(void *rx_queue,\n \t\trx_id = (uint16_t)(rx_id == 0 ?\n \t\t\t\t   (rxq->nb_rx_desc - 1) : (rx_id - 1));\n \t\t/* write TAIL register */\n-\t\tICE_PCI_REG_WRITE(rxq->qrx_tail, rx_id);\n+\t\tICE_PCI_REG_WC_WRITE(rxq->qrx_tail, rx_id);\n \t\tnb_hold = 0;\n \t}\n \trxq->nb_rx_hold = nb_hold;\n@@ -2131,7 +2131,7 @@ ice_recv_pkts(void *rx_queue,\n \t\trx_id = (uint16_t)(rx_id == 0 ?\n \t\t\t\t   (rxq->nb_rx_desc - 1) : (rx_id - 1));\n \t\t/* write TAIL register */\n-\t\tICE_PCI_REG_WRITE(rxq->qrx_tail, rx_id);\n+\t\tICE_PCI_REG_WC_WRITE(rxq->qrx_tail, rx_id);\n \t\tnb_hold = 0;\n \t}\n \trxq->nb_rx_hold = nb_hold;\n@@ -2846,7 +2846,7 @@ tx_xmit_pkts(struct ice_tx_queue *txq,\n \t\ttxq->tx_tail = 0;\n \n \t/* Update the tx tail register */\n-\tICE_PCI_REG_WRITE(txq->qtx_tail, txq->tx_tail);\n+\tICE_PCI_REG_WC_WRITE(txq->qtx_tail, txq->tx_tail);\n \n \treturn nb_pkts;\n }\ndiff --git a/drivers/net/ice/ice_rxtx_vec_avx2.c b/drivers/net/ice/ice_rxtx_vec_avx2.c\nindex be50677c2..d9d475863 100644\n--- a/drivers/net/ice/ice_rxtx_vec_avx2.c\n+++ b/drivers/net/ice/ice_rxtx_vec_avx2.c\n@@ -129,7 +129,7 @@ ice_rxq_rearm(struct ice_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-\tICE_PCI_REG_WRITE(rxq->qrx_tail, rx_id);\n+\tICE_PCI_REG_WC_WRITE(rxq->qrx_tail, rx_id);\n }\n \n static inline uint16_t\n@@ -810,7 +810,7 @@ ice_xmit_fixed_burst_vec_avx2(void *tx_queue, struct rte_mbuf **tx_pkts,\n \n \ttxq->tx_tail = tx_id;\n \n-\tICE_PCI_REG_WRITE(txq->qtx_tail, txq->tx_tail);\n+\tICE_PCI_REG_WC_WRITE(txq->qtx_tail, txq->tx_tail);\n \n \treturn nb_pkts;\n }\ndiff --git a/drivers/net/ice/ice_rxtx_vec_sse.c b/drivers/net/ice/ice_rxtx_vec_sse.c\nindex 382ef31f3..3de162af0 100644\n--- a/drivers/net/ice/ice_rxtx_vec_sse.c\n+++ b/drivers/net/ice/ice_rxtx_vec_sse.c\n@@ -78,7 +78,7 @@ ice_rxq_rearm(struct ice_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-\tICE_PCI_REG_WRITE(rxq->qrx_tail, rx_id);\n+\tICE_PCI_REG_WC_WRITE(rxq->qrx_tail, rx_id);\n }\n \n static inline void\n@@ -583,7 +583,7 @@ ice_xmit_fixed_burst_vec(void *tx_queue, struct rte_mbuf **tx_pkts,\n \n \ttxq->tx_tail = tx_id;\n \n-\tICE_PCI_REG_WRITE(txq->qtx_tail, txq->tx_tail);\n+\tICE_PCI_REG_WC_WRITE(txq->qtx_tail, txq->tx_tail);\n \n \treturn nb_pkts;\n }\n",
    "prefixes": [
        "v11",
        "5/5"
    ]
}