Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/894355/?format=api
{ "id": 894355, "url": "http://patchwork.ozlabs.org/api/patches/894355/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1522695990-31082-6-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-6-git-send-email-okaya@codeaurora.org>", "list_archive_url": null, "date": "2018-04-02T19:06:28", "name": "[v8,5/7] fm10k: Eliminate duplicate barriers on weakly-ordered archs", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "b28ee1c4bc252ba9be935e3fe063a8a25c448181", "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-6-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/894355/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/894355/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=\"PqoK/58W\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n\theader.d=codeaurora.org header.i=@codeaurora.org\n\theader.b=\"ef0LT/cn\"; 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 40FMCc0Fznz9s1r\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 3 Apr 2018 05:06:51 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 852DA30A61;\n\tMon, 2 Apr 2018 19:06:50 +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 rcpWY87hndWY; Mon, 2 Apr 2018 19:06:47 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 91BE830A5A;\n\tMon, 2 Apr 2018 19:06:46 +0000 (UTC)", "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 1B84E1C066A\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Apr 2018 19:06:46 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 18A5388E23\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Apr 2018 19:06:46 +0000 (UTC)", "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id Q-fDAWaq6ELr for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Apr 2018 19:06:45 +0000 (UTC)", "from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id AEA5089E9B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Apr 2018 19:06:45 +0000 (UTC)", "by smtp.codeaurora.org (Postfix, from userid 1000)\n\tid 4601E60F6C; Mon, 2 Apr 2018 19:06:44 +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 E894060F6C;\n\tMon, 2 Apr 2018 19:06:42 +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=1522696005;\n\tbh=BdmRP6qJRGY4whJjtRjcHF3173APXkFebNUnK8CK/Hg=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=PqoK/58Wrun18Vdb+eN33UI6HtCnhabEnIUoKmsEoY+z5E4zRiRQYCUrCXn5n65hC\n\tG9LMt8yHXE6CTbeZTvy5cYQoRQkAW4xhUThwQWCVXFfsIlBpq5KfPIffmw6uqgiDrK\n\tIk5VChi7Q9LBluKiEd5T47IW5bf2v568dHVAt4D8=", "v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org;\n\ts=default; t=1522696003;\n\tbh=BdmRP6qJRGY4whJjtRjcHF3173APXkFebNUnK8CK/Hg=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=ef0LT/cnNnfvqAdn9dYIhHYJGWFb/nHj9LyTw0ndZzosEqUIChYKSY+yIRrKBhsyB\n\tibAUMnORhDshXdS/bukwhcePlcjL5Hplnj0M+8+O5/+MGMymYVTt33lSHGg3l03KXQ\n\tut3yQEXPwccpXDV66/R5q0KLPqjVueXoNxO+dnO4=" ], "DMARC-Filter": "OpenDMARC Filter v1.3.2 smtp.codeaurora.org E894060F6C", "From": "Sinan Kaya <okaya@codeaurora.org>", "To": "jeffrey.t.kirsher@intel.com", "Date": "Mon, 2 Apr 2018 15:06:28 -0400", "Message-Id": "<1522695990-31082-6-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 5/7] fm10k: 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/fm10k/fm10k_main.c | 15 ++-------------\n 1 file changed, 2 insertions(+), 13 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_main.c b/drivers/net/ethernet/intel/fm10k/fm10k_main.c\nindex df86070..41e3aaa 100644\n--- a/drivers/net/ethernet/intel/fm10k/fm10k_main.c\n+++ b/drivers/net/ethernet/intel/fm10k/fm10k_main.c\n@@ -172,13 +172,6 @@ void fm10k_alloc_rx_buffers(struct fm10k_ring *rx_ring, u16 cleaned_count)\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-\n \t\t/* notify hardware of new descriptors */\n \t\twritel(i, rx_ring->tail);\n \t}\n@@ -1036,11 +1029,7 @@ static void fm10k_tx_map(struct fm10k_ring *tx_ring,\n \t/* record SW timestamp if HW timestamp is not available */\n \tskb_tx_timestamp(first->skb);\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 to make certain all of the\n+\t/* We need this memory barrier to make certain all of the\n \t * status bits have been updated before next_to_watch is written.\n \t */\n \twmb();\n@@ -1055,7 +1044,7 @@ static void fm10k_tx_map(struct fm10k_ring *tx_ring,\n \n \t/* notify HW of packet */\n \tif (netif_xmit_stopped(txring_txq(tx_ring)) || !skb->xmit_more) {\n-\t\twritel(i, tx_ring->tail);\n+\t\twritel_relaxed(i, tx_ring->tail);\n \n \t\t/* we need this if more than one processor can write to our tail\n \t\t * at a time, it synchronizes IO on IA64/Altix systems\n", "prefixes": [ "v8", "5/7" ] }