Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1229958/?format=api
{ "id": 1229958, "url": "http://patchwork.ozlabs.org/api/patches/1229958/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200127085927.13999-14-anthony.l.nguyen@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": "<20200127085927.13999-14-anthony.l.nguyen@intel.com>", "list_archive_url": null, "date": "2020-01-27T08:59:26", "name": "[S39,14/15] ice: add support for E823 devices", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "85ae164a947c5863f443ddc0c176f2f8146d65f8", "submitter": { "id": 68875, "url": "http://patchwork.ozlabs.org/api/people/68875/?format=api", "name": "Tony Nguyen", "email": "anthony.l.nguyen@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/20200127085927.13999-14-anthony.l.nguyen@intel.com/mbox/", "series": [ { "id": 155506, "url": "http://patchwork.ozlabs.org/api/series/155506/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=155506", "date": "2020-01-27T08:59:25", "name": "[S39,01/15] ice: Validate config for SW DCB map", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/155506/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1229958/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1229958/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; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=osuosl.org (client-ip=140.211.166.133;\n\thelo=hemlock.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com" ], "Received": [ "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 485xdY1YDYz9sRs\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 28 Jan 2020 04:32:17 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id B12FC879C5;\n\tMon, 27 Jan 2020 17:32:15 +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 10rQvmIxCg9t; Mon, 27 Jan 2020 17:32:14 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id ADAAD879A6;\n\tMon, 27 Jan 2020 17:32:14 +0000 (UTC)", "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 90A6A1BF283\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jan 2020 17:32:12 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 89F278796C\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jan 2020 17:32:12 +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 NwYusuA9YPsW for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jan 2020 17:32:11 +0000 (UTC)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id 52AB2879C5\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jan 2020 17:32:11 +0000 (UTC)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t27 Jan 2020 09:32:10 -0800", "from unknown (HELO localhost.jf.intel.com) ([10.166.244.174])\n\tby fmsmga005.fm.intel.com with ESMTP; 27 Jan 2020 09:32:10 -0800" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,370,1574150400\"; d=\"scan'208\";a=\"427350662\"", "From": "Tony Nguyen <anthony.l.nguyen@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Mon, 27 Jan 2020 00:59:26 -0800", "Message-Id": "<20200127085927.13999-14-anthony.l.nguyen@intel.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20200127085927.13999-1-anthony.l.nguyen@intel.com>", "References": "<20200127085927.13999-1-anthony.l.nguyen@intel.com>", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [PATCH S39 14/15] ice: add support for E823\n\tdevices", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.29", "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>", "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": "From: Bruce Allan <bruce.w.allan@intel.com>\n\nAdd E823 device ids and convert conditional expressions to a more\nappropriate switch statement.\n\nSigned-off-by: Bruce Allan <bruce.w.allan@intel.com>\nSigned-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>\n---\n drivers/net/ethernet/intel/ice/ice_devids.h | 20 +++++++++++++\n drivers/net/ethernet/intel/ice/ice_main.c | 10 +++++++\n drivers/net/ethernet/intel/ice/ice_nvm.c | 32 +++++++++++++++------\n 3 files changed, 53 insertions(+), 9 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/ice/ice_devids.h b/drivers/net/ethernet/intel/ice/ice_devids.h\nindex 56952d89ada8..6fccb66ff43c 100644\n--- a/drivers/net/ethernet/intel/ice/ice_devids.h\n+++ b/drivers/net/ethernet/intel/ice/ice_devids.h\n@@ -5,6 +5,16 @@\n #define _ICE_DEVIDS_H_\n \n /* Device IDs */\n+/* Intel(R) Ethernet Connection E823-L for backplane */\n+#define ICE_DEV_ID_E823L_BACKPLANE\t0x124C\n+/* Intel(R) Ethernet Connection E823-L for SFP */\n+#define ICE_DEV_ID_E823L_SFP\t\t0x124D\n+/* Intel(R) Ethernet Connection E823-L/X557-AT 10GBASE-T */\n+#define ICE_DEV_ID_E823L_10G_BASE_T\t0x124E\n+/* Intel(R) Ethernet Connection E823-L 1GbE */\n+#define ICE_DEV_ID_E823L_1GBE\t\t0x124F\n+/* Intel(R) Ethernet Connection E823-L for QSFP */\n+#define ICE_DEV_ID_E823L_QSFP\t\t0x151D\n /* Intel(R) Ethernet Controller E810-C for backplane */\n #define ICE_DEV_ID_E810C_BACKPLANE\t0x1591\n /* Intel(R) Ethernet Controller E810-C for QSFP */\n@@ -13,6 +23,16 @@\n #define ICE_DEV_ID_E810C_SFP\t\t0x1593\n /* Intel(R) Ethernet Controller E810-XXV for SFP */\n #define ICE_DEV_ID_E810_XXV_SFP\t\t0x159B\n+/* Intel(R) Ethernet Connection E823-C for backplane */\n+#define ICE_DEV_ID_E823C_BACKPLANE\t0x188A\n+/* Intel(R) Ethernet Connection E823-C for QSFP */\n+#define ICE_DEV_ID_E823C_QSFP\t\t0x188B\n+/* Intel(R) Ethernet Connection E823-C for SFP */\n+#define ICE_DEV_ID_E823C_SFP\t\t0x188C\n+/* Intel(R) Ethernet Connection E823-C/X557-AT 10GBASE-T */\n+#define ICE_DEV_ID_E823C_10G_BASE_T\t0x188D\n+/* Intel(R) Ethernet Connection E823-C 1GbE */\n+#define ICE_DEV_ID_E823C_SGMII\t\t0x188E\n /* Intel(R) Ethernet Connection E822-C for backplane */\n #define ICE_DEV_ID_E822C_BACKPLANE\t0x1890\n /* Intel(R) Ethernet Connection E822-C for QSFP */\ndiff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c\nindex 017d68b158fc..5f23806669e2 100644\n--- a/drivers/net/ethernet/intel/ice/ice_main.c\n+++ b/drivers/net/ethernet/intel/ice/ice_main.c\n@@ -3616,6 +3616,11 @@ static const struct pci_device_id ice_pci_tbl[] = {\n \t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E810C_QSFP), 0 },\n \t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E810C_SFP), 0 },\n \t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E810_XXV_SFP), 0 },\n+\t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E823C_BACKPLANE), 0 },\n+\t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E823C_QSFP), 0 },\n+\t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E823C_SFP), 0 },\n+\t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E823C_10G_BASE_T), 0 },\n+\t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E823C_SGMII), 0 },\n \t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E822C_BACKPLANE), 0 },\n \t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E822C_QSFP), 0 },\n \t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E822C_SFP), 0 },\n@@ -3625,6 +3630,11 @@ static const struct pci_device_id ice_pci_tbl[] = {\n \t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E822L_SFP), 0 },\n \t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E822L_10G_BASE_T), 0 },\n \t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E822L_SGMII), 0 },\n+\t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E823L_BACKPLANE), 0 },\n+\t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E823L_SFP), 0 },\n+\t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E823L_10G_BASE_T), 0 },\n+\t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E823L_1GBE), 0 },\n+\t{ PCI_VDEVICE(INTEL, ICE_DEV_ID_E823L_QSFP), 0 },\n \t/* required last entry */\n \t{ 0, }\n };\ndiff --git a/drivers/net/ethernet/intel/ice/ice_nvm.c b/drivers/net/ethernet/intel/ice/ice_nvm.c\nindex 7525ac50742e..75cd4cbb473b 100644\n--- a/drivers/net/ethernet/intel/ice/ice_nvm.c\n+++ b/drivers/net/ethernet/intel/ice/ice_nvm.c\n@@ -289,17 +289,31 @@ enum ice_status ice_init_nvm(struct ice_hw *hw)\n \n \tnvm->eetrack = (eetrack_hi << 16) | eetrack_lo;\n \n+\tswitch (hw->device_id) {\n \t/* the following devices do not have boot_cfg_tlv yet */\n-\tif (hw->device_id == ICE_DEV_ID_E822C_BACKPLANE ||\n-\t hw->device_id == ICE_DEV_ID_E822C_QSFP ||\n-\t hw->device_id == ICE_DEV_ID_E822C_10G_BASE_T ||\n-\t hw->device_id == ICE_DEV_ID_E822C_SGMII ||\n-\t hw->device_id == ICE_DEV_ID_E822C_SFP ||\n-\t hw->device_id == ICE_DEV_ID_E822X_BACKPLANE ||\n-\t hw->device_id == ICE_DEV_ID_E822L_SFP ||\n-\t hw->device_id == ICE_DEV_ID_E822L_10G_BASE_T ||\n-\t hw->device_id == ICE_DEV_ID_E822L_SGMII)\n+\tcase ICE_DEV_ID_E823C_BACKPLANE:\n+\tcase ICE_DEV_ID_E823C_QSFP:\n+\tcase ICE_DEV_ID_E823C_SFP:\n+\tcase ICE_DEV_ID_E823C_10G_BASE_T:\n+\tcase ICE_DEV_ID_E823C_SGMII:\n+\tcase ICE_DEV_ID_E822C_BACKPLANE:\n+\tcase ICE_DEV_ID_E822C_QSFP:\n+\tcase ICE_DEV_ID_E822C_10G_BASE_T:\n+\tcase ICE_DEV_ID_E822C_SGMII:\n+\tcase ICE_DEV_ID_E822C_SFP:\n+\tcase ICE_DEV_ID_E822X_BACKPLANE:\n+\tcase ICE_DEV_ID_E822L_SFP:\n+\tcase ICE_DEV_ID_E822L_10G_BASE_T:\n+\tcase ICE_DEV_ID_E822L_SGMII:\n+\tcase ICE_DEV_ID_E823L_BACKPLANE:\n+\tcase ICE_DEV_ID_E823L_SFP:\n+\tcase ICE_DEV_ID_E823L_10G_BASE_T:\n+\tcase ICE_DEV_ID_E823L_1GBE:\n+\tcase ICE_DEV_ID_E823L_QSFP:\n \t\treturn status;\n+\tdefault:\n+\t\tbreak;\n+\t}\n \n \tstatus = ice_get_pfa_module_tlv(hw, &boot_cfg_tlv, &boot_cfg_tlv_len,\n \t\t\t\t\tICE_SR_BOOT_CFG_PTR);\n", "prefixes": [ "S39", "14/15" ] }