Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/618190/?format=api
{ "id": 618190, "url": "http://patchwork.ozlabs.org/api/patches/618190/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1462313600-3123-2-git-send-email-bimmy.pujari@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": "<1462313600-3123-2-git-send-email-bimmy.pujari@intel.com>", "list_archive_url": null, "date": "2016-05-03T22:13:09", "name": "[next,S36,01/12] i40e: Add support for disabling all link and change bits needed for PHY interactions.", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "f8e71a9254862c3bac8b09c69e6c5a28cbcb43ed", "submitter": { "id": 68919, "url": "http://patchwork.ozlabs.org/api/people/68919/?format=api", "name": "Pujari, Bimmy", "email": "bimmy.pujari@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/1462313600-3123-2-git-send-email-bimmy.pujari@intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/618190/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/618190/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 hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ozlabs.org (Postfix) with ESMTP id 3qzxks1zYgz9t69\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 4 May 2016 09:11:49 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 6BEBF8739B;\n\tTue, 3 May 2016 23:11:48 +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 LyA0iRoEhd1A; Tue, 3 May 2016 23:11:47 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id C7A0E875B2;\n\tTue, 3 May 2016 23:11:47 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 816641C0E66\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 3 May 2016 23:11:41 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 7CE03895F9\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 3 May 2016 23:11:41 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 7McmBVtclF9K for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 3 May 2016 23:11:37 +0000 (UTC)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 91DEF885B8\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 3 May 2016 23:11:37 +0000 (UTC)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga104.fm.intel.com with ESMTP; 03 May 2016 16:11:20 -0700", "from bimmy.jf.intel.com (HELO bimmy.linux1.jf.intel.com)\n\t([134.134.2.117])\n\tby orsmga002.jf.intel.com with ESMTP; 03 May 2016 16:11:20 -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,574,1455004800\"; d=\"scan'208\";a=\"968055123\"", "From": "Bimmy Pujari <bimmy.pujari@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Tue, 3 May 2016 15:13:09 -0700", "Message-Id": "<1462313600-3123-2-git-send-email-bimmy.pujari@intel.com>", "X-Mailer": "git-send-email 2.4.11", "In-Reply-To": "<1462313600-3123-1-git-send-email-bimmy.pujari@intel.com>", "References": "<1462313600-3123-1-git-send-email-bimmy.pujari@intel.com>", "Subject": "[Intel-wired-lan] [next PATCH S36 01/12] i40e: Add support for\n\tdisabling all link and change bits needed for PHY interactions.", "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>", "MIME-Version": "1.0", "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": "From: Kevin Scott <kevin.c.scott@intel.com>\n\nAdd flag to tell firmware to disable link on all ports.\n\nThis patch changes the bits set for telling firmware the PHY needs\nto be modified by driver. Without this patch, the setting will only\nset that mode for the current port on the device. Because the\nMDIO interface is common for the copper device. The command needs to\nset the mode for all ports.\n\nSigned-off-by: Kevin Scott <kevin.c.scott@intel.com>\nSigned-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>\nChange-ID: I8baa7da91d384291ac95b41ae1a516604f8eb67f\n---\nTesting Hints :\nTest by blinking led on one\nor more ports on Fort Pond device and do something to interact\nwith the other PHY's on the same device at the same time, like\nlanconf and Dump PHY NVM.\n\n drivers/net/ethernet/intel/i40e/i40e.h | 4 +++-\n drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 3 +++\n drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 2 +-\n 3 files changed, 7 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h\nindex 7f52bfe..0d9038f 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e.h\n@@ -111,7 +111,9 @@\n #define I40E_OEM_VER_PATCH_MASK 0xff\n #define I40E_OEM_VER_BUILD_SHIFT 8\n #define I40E_OEM_VER_SHIFT 24\n-#define I40E_PHY_DEBUG_PORT BIT(4)\n+#define I40E_PHY_DEBUG_ALL \\\n+\t(I40E_AQ_PHY_DEBUG_DISABLE_LINK_FW | \\\n+\tI40E_AQ_PHY_DEBUG_DISABLE_ALL_LINK_FW)\n \n /* The values in here are decimal coded as hex as is the case in the NVM map*/\n #define I40E_CURRENT_NVM_VERSION_HI 0x2\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\nindex eacbe74..11cf1a5 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n@@ -1833,7 +1833,10 @@ struct i40e_aqc_set_phy_debug {\n #define I40E_AQ_PHY_DEBUG_RESET_EXTERNAL_NONE\t0x00\n #define I40E_AQ_PHY_DEBUG_RESET_EXTERNAL_HARD\t0x01\n #define I40E_AQ_PHY_DEBUG_RESET_EXTERNAL_SOFT\t0x02\n+/* Disable link manageability on a single port */\n #define I40E_AQ_PHY_DEBUG_DISABLE_LINK_FW\t0x10\n+/* Disable link manageability on all ports */\n+#define I40E_AQ_PHY_DEBUG_DISABLE_ALL_LINK_FW\t0x20\n \tu8\treserved[15];\n };\n \ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\nindex 0a5374e..8460723 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\n@@ -1880,7 +1880,7 @@ static int i40e_set_phys_id(struct net_device *netdev,\n \t\tif (!(pf->flags & I40E_FLAG_HAVE_10GBASET_PHY)) {\n \t\t\tpf->led_status = i40e_led_get(hw);\n \t\t} else {\n-\t\t\ti40e_aq_set_phy_debug(hw, I40E_PHY_DEBUG_PORT, NULL);\n+\t\t\ti40e_aq_set_phy_debug(hw, I40E_PHY_DEBUG_ALL, NULL);\n \t\t\tret = i40e_led_get_phy(hw, &temp_status,\n \t\t\t\t\t &pf->phy_led_val);\n \t\t\tpf->led_status = temp_status;\n", "prefixes": [ "next", "S36", "01/12" ] }