Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/599652/?format=api
{ "id": 599652, "url": "http://patchwork.ozlabs.org/api/patches/599652/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20160318183300.40415.74097.stgit@mdrustad-wks.jf.intel.com/", "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": "<20160318183300.40415.74097.stgit@mdrustad-wks.jf.intel.com>", "list_archive_url": null, "date": "2016-03-18T18:33:00", "name": "[V2,3/7] ixgbe: Add new semaphore method for a new MAC", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "33a3b26961ba4c08ed736a8092a4b4fb49c1200c", "submitter": { "id": 13252, "url": "http://patchwork.ozlabs.org/api/people/13252/?format=api", "name": "Rustad, Mark D", "email": "mark.d.rustad@intel.com" }, "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/20160318183300.40415.74097.stgit@mdrustad-wks.jf.intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/599652/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/599652/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@lists.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" ], "Received": [ "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ozlabs.org (Postfix) with ESMTP id 3qRYkS4Cwvz9s9Z\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 19 Mar 2016 05:33:04 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id DD7949218E;\n\tFri, 18 Mar 2016 18:33:03 +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 hzLYyIaJInGF; Fri, 18 Mar 2016 18:33:03 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 699829218F;\n\tFri, 18 Mar 2016 18:33:03 +0000 (UTC)", "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id AC50B1C105C\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 18 Mar 2016 18:33:01 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id A5C7295B03\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 18 Mar 2016 18:33:01 +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 sVrZo9qSAByr for <intel-wired-lan@lists.osuosl.org>;\n\tFri, 18 Mar 2016 18:33:01 +0000 (UTC)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 034E195AFF\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 18 Mar 2016 18:33:00 +0000 (UTC)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby orsmga101.jf.intel.com with ESMTP; 18 Mar 2016 11:33:00 -0700", "from mdrustad-wks.jf.intel.com ([134.134.3.229])\n\tby FMSMGA003.fm.intel.com with ESMTP; 18 Mar 2016 11:33:00 -0700" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.24,356,1455004800\"; d=\"scan'208\";a=\"672026889\"", "From": "Mark D Rustad <mark.d.rustad@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Fri, 18 Mar 2016 11:33:00 -0700", "Message-ID": "<20160318183300.40415.74097.stgit@mdrustad-wks.jf.intel.com>", "In-Reply-To": "<20160318183203.40415.3005.stgit@mdrustad-wks.jf.intel.com>", "References": "<20160318183203.40415.3005.stgit@mdrustad-wks.jf.intel.com>", "User-Agent": "StGit/unknown-version", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [PATCH V2 3/7] ixgbe: Add new semaphore method\n\tfor a new MAC", "X-BeenThere": "intel-wired-lan@lists.osuosl.org", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>", "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>", "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>" }, "content": "Add a new method to support the firmware token used as a semaphore\nfor phy access on a new mac.\n\nSigned-off-by: Mark Rustad <mark.d.rustad@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 53 +++++++++++++++++++++++++\n 1 file changed, 53 insertions(+)", "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\nindex aaea94759d76..615aaea069b6 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\n@@ -2428,6 +2428,59 @@ static void ixgbe_release_swfw_sync_X550em(struct ixgbe_hw *hw, u32 mask)\n \tixgbe_release_swfw_sync_X540(hw, mask);\n }\n \n+/**\n+ * ixgbe_acquire_swfw_sync_x550em_a - Acquire SWFW semaphore\n+ * @hw: pointer to hardware structure\n+ * @mask: Mask to specify which semaphore to acquire\n+ *\n+ * Acquires the SWFW semaphore and get the shared phy token as needed\n+ */\n+static s32 ixgbe_acquire_swfw_sync_x550em_a(struct ixgbe_hw *hw, u32 mask)\n+{\n+\tu32 hmask = mask & ~IXGBE_GSSR_TOKEN_SM;\n+\tint retries = FW_PHY_TOKEN_RETRIES;\n+\ts32 status;\n+\n+\twhile (--retries) {\n+\t\tstatus = 0;\n+\t\tif (hmask)\n+\t\t\tstatus = ixgbe_acquire_swfw_sync_X540(hw, hmask);\n+\t\tif (status)\n+\t\t\treturn status;\n+\t\tif (!(mask & IXGBE_GSSR_TOKEN_SM))\n+\t\t\treturn 0;\n+\n+\t\tstatus = ixgbe_get_phy_token(hw);\n+\t\tif (!status)\n+\t\t\treturn 0;\n+\t\tif (hmask)\n+\t\t\tixgbe_release_swfw_sync_X540(hw, hmask);\n+\t\tif (status != IXGBE_ERR_TOKEN_RETRY)\n+\t\t\treturn status;\n+\t\tudelay(FW_PHY_TOKEN_DELAY * 1000);\n+\t}\n+\n+\treturn status;\n+}\n+\n+/**\n+ * ixgbe_release_swfw_sync_x550em_a - Release SWFW semaphore\n+ * @hw: pointer to hardware structure\n+ * @mask: Mask to specify which semaphore to release\n+ *\n+ * Release the SWFW semaphore and puts the shared phy token as needed\n+ */\n+static void ixgbe_release_swfw_sync_x550em_a(struct ixgbe_hw *hw, u32 mask)\n+{\n+\tu32 hmask = mask & ~IXGBE_GSSR_TOKEN_SM;\n+\n+\tif (mask & IXGBE_GSSR_TOKEN_SM)\n+\t\tixgbe_put_phy_token(hw);\n+\n+\tif (hmask)\n+\t\tixgbe_release_swfw_sync_X540(hw, hmask);\n+}\n+\n #define X550_COMMON_MAC \\\n \t.init_hw\t\t\t= &ixgbe_init_hw_generic, \\\n \t.start_hw\t\t\t= &ixgbe_start_hw_X540, \\\n", "prefixes": [ "V2", "3/7" ] }