get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 894357,
    "url": "http://patchwork.ozlabs.org/api/patches/894357/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1522695990-31082-8-git-send-email-okaya@codeaurora.org/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1522695990-31082-8-git-send-email-okaya@codeaurora.org>",
    "list_archive_url": null,
    "date": "2018-04-02T19:06:30",
    "name": "[v8,7/7] ixgbevf: eliminate duplicate barriers on weakly-ordered archs",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "558b67eb1dd752711d78bf6ce365347612414c09",
    "submitter": {
        "id": 67496,
        "url": "http://patchwork.ozlabs.org/api/people/67496/?format=api",
        "name": "Sinan Kaya",
        "email": "okaya@codeaurora.org"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1522695990-31082-8-git-send-email-okaya@codeaurora.org/mbox/",
    "series": [
        {
            "id": 37041,
            "url": "http://patchwork.ozlabs.org/api/series/37041/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=37041",
            "date": "2018-04-02T19:06:25",
            "name": "[v8,1/7] i40e/i40evf: Eliminate duplicate barriers on weakly-ordered archs",
            "version": 8,
            "mbox": "http://patchwork.ozlabs.org/series/37041/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/894357/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/894357/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.136; helo=silver.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dmarc=none (p=none dis=none)\n\theader.from=codeaurora.org",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=codeaurora.org header.i=@codeaurora.org\n\theader.b=\"DLP5kDkI\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n\theader.d=codeaurora.org header.i=@codeaurora.org\n\theader.b=\"h3cgGU4u\"; dkim-atps=neutral",
            "pdx-caf-mail.web.codeaurora.org;\n\tdmarc=none (p=none dis=none) header.from=codeaurora.org",
            "pdx-caf-mail.web.codeaurora.org;\n\tspf=none smtp.mailfrom=okaya@codeaurora.org"
        ],
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 40FMCj48GCz9s1w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  3 Apr 2018 05:06:57 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id E452730A0E;\n\tMon,  2 Apr 2018 19:06:55 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id yCSfglcfrBX2; Mon,  2 Apr 2018 19:06:55 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 16C3730A52;\n\tMon,  2 Apr 2018 19:06:55 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 270981C066A\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon,  2 Apr 2018 19:06:53 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 2323B8A387\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon,  2 Apr 2018 19:06:53 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id C5l4Vy0lem9R for <intel-wired-lan@lists.osuosl.org>;\n\tMon,  2 Apr 2018 19:06:50 +0000 (UTC)",
            "from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 8BF158A38E\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon,  2 Apr 2018 19:06:50 +0000 (UTC)",
            "by smtp.codeaurora.org (Postfix, from userid 1000)\n\tid 343AA60F6D; Mon,  2 Apr 2018 19:06:48 +0000 (UTC)",
            "from drakthul.qualcomm.com (global_nat1_iad_fw.qualcomm.com\n\t[129.46.232.65])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\t(Authenticated sender: okaya@smtp.codeaurora.org)\n\tby smtp.codeaurora.org (Postfix) with ESMTPSA id 2B61160F6D;\n\tMon,  2 Apr 2018 19:06:46 +0000 (UTC)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org;\n\ts=default; t=1522696010;\n\tbh=viAgvX3pfij+MM3HuJ1jMgdsmI2f+6gcVLQwsljC8OA=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=DLP5kDkI8pK9Lg64xdJ7JXMuiiLV4WuFwEL6kBRB0oUB1xRWpA6qiMav9gu9uR5U0\n\tBp1sKLFB0i8PV3tbqTS0T/nUiDsUVLJLDutUK7F0poOt9nTM5SbguC11zRfgKVkqj8\n\tepmwg6ErKX8Xp4cBFRJ5Rpjh2XuDm85C2UiTLC7Q=",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org;\n\ts=default; t=1522696007;\n\tbh=viAgvX3pfij+MM3HuJ1jMgdsmI2f+6gcVLQwsljC8OA=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=h3cgGU4u6eruzUunxnMf2UI06IRDDFb61vCLztlqb/vwCdM1DP3fn3lNwSaT7poad\n\teEPmFLFKoVIH6lArg/HvWpc41iIkZEUuT3OhjRU7kn4o+bTx0AtD/2FW4++jdXKgJG\n\tpffVvh45R1ZuGT6B/sQQLHhsP0zV3+DyAK7evueU="
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2B61160F6D",
        "From": "Sinan Kaya <okaya@codeaurora.org>",
        "To": "jeffrey.t.kirsher@intel.com",
        "Date": "Mon,  2 Apr 2018 15:06:30 -0400",
        "Message-Id": "<1522695990-31082-8-git-send-email-okaya@codeaurora.org>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1522695990-31082-1-git-send-email-okaya@codeaurora.org>",
        "References": "<1522695990-31082-1-git-send-email-okaya@codeaurora.org>",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [PATCH v8 7/7] ixgbevf: eliminate duplicate\n\tbarriers on weakly-ordered archs",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.24",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "sulrich@codeaurora.org, netdev@vger.kernel.org, timur@codeaurora.org,\n\tlinux-kernel@vger.kernel.org, Sinan Kaya <okaya@codeaurora.org>,\n\tintel-wired-lan@lists.osuosl.org, linux-arm-msm@vger.kernel.org,\n\tlinux-arm-kernel@lists.infradead.org",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "memory-barriers.txt has been updated as follows:\n\n\"When using writel(), a prior wmb() is not needed to guarantee that the\ncache coherent memory writes have completed before writing to the MMIO\nregion.\"\n\nRemove old IA-64 comments in the code along with unneeded wmb() in front\nof writel().\n\nThere are places in the code where wmb() has been used as a double barrier\nfor CPU and IO in place of smp_wmb() and wmb() as an optimization. For\nsuch places, keep the wmb() but replace the following writel() with\nwritel_relaxed() to have a sequence as\n\nwmb()\nwritel_relaxed()\nmmio_wb()\n\nSigned-off-by: Sinan Kaya <okaya@codeaurora.org>\n---\n drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 23 +++++++----------------\n 1 file changed, 7 insertions(+), 16 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c\nindex 757dac6..29b71a7 100644\n--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c\n+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c\n@@ -719,12 +719,6 @@ static void ixgbevf_alloc_rx_buffers(struct ixgbevf_ring *rx_ring,\n \t\t/* update next to alloc since we have filled the ring */\n \t\trx_ring->next_to_alloc = i;\n \n-\t\t/* Force memory writes to complete before letting h/w\n-\t\t * know there are new descriptors to fetch.  (Only\n-\t\t * applicable for weak-ordered memory model archs,\n-\t\t * such as IA-64).\n-\t\t */\n-\t\twmb();\n \t\twritel(i, rx_ring->tail);\n \t}\n }\n@@ -1228,10 +1222,6 @@ static int ixgbevf_clean_rx_irq(struct ixgbevf_q_vector *q_vector,\n \t\tstruct ixgbevf_ring *xdp_ring =\n \t\t\tadapter->xdp_ring[rx_ring->queue_index];\n \n-\t\t/* Force memory writes to complete before letting h/w\n-\t\t * know there are new descriptors to fetch.\n-\t\t */\n-\t\twmb();\n \t\twritel(xdp_ring->next_to_use, xdp_ring->tail);\n \t}\n \n@@ -3985,11 +3975,7 @@ static void ixgbevf_tx_map(struct ixgbevf_ring *tx_ring,\n \t/* set the timestamp */\n \tfirst->time_stamp = jiffies;\n \n-\t/* Force memory writes to complete before letting h/w know there\n-\t * are new descriptors to fetch.  (Only applicable for weak-ordered\n-\t * memory model archs, such as IA-64).\n-\t *\n-\t * We also need this memory barrier (wmb) to make certain all of the\n+\t/* We also need this memory barrier (wmb) to make certain all of the\n \t * status bits have been updated before next_to_watch is written.\n \t */\n \twmb();\n@@ -4004,7 +3990,12 @@ static void ixgbevf_tx_map(struct ixgbevf_ring *tx_ring,\n \ttx_ring->next_to_use = i;\n \n \t/* notify HW of packet */\n-\twritel(i, tx_ring->tail);\n+\twritel_relaxed(i, tx_ring->tail);\n+\n+\t/* We need this if more than one processor can write to our tail\n+\t * at a time, it synchronizes IO on IA64/Altix systems\n+\t */\n+\tmmiowb();\n \n \treturn;\n dma_error:\n",
    "prefixes": [
        "v8",
        "7/7"
    ]
}