Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/546647/?format=api
{ "id": 546647, "url": "http://patchwork.ozlabs.org/api/patches/546647/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1447961665-12344-8-git-send-email-deepthi.kavalur@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": "<1447961665-12344-8-git-send-email-deepthi.kavalur@intel.com>", "list_archive_url": null, "date": "2015-11-19T19:34:20", "name": "[V3:,next,S22,07/12] i40e: Opcode and structures required by OEM Post Update AQ command and add new NVM arq message", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "2cae560195bc3ec8f47000a5bf91540ecb8bb37c", "submitter": { "id": 67654, "url": "http://patchwork.ozlabs.org/api/people/67654/?format=api", "name": "Deepthi Kavalur", "email": "deepthi.kavalur@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/1447961665-12344-8-git-send-email-deepthi.kavalur@intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/546647/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/546647/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 2000D1414BF\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 Nov 2015 06:34:36 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 6051988C80;\n\tThu, 19 Nov 2015 19:34:35 +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 b7NQAkf3isaZ; Thu, 19 Nov 2015 19:34:31 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 38C3288305;\n\tThu, 19 Nov 2015 19:34:29 +0000 (UTC)", "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id B56181C1641\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 19 Nov 2015 19:34:27 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id B25B994554\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 19 Nov 2015 19:34:27 +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 MlT-mK7ADfmT for <intel-wired-lan@lists.osuosl.org>;\n\tThu, 19 Nov 2015 19:34:27 +0000 (UTC)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 0566D94C4B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 19 Nov 2015 19:34:27 +0000 (UTC)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga102.jf.intel.com with ESMTP; 19 Nov 2015 11:34:28 -0800", "from dkavalur-mobl.amr.corp.intel.com (HELO\n\tlocalhost.localdomain.localdomain) ([134.134.176.88])\n\tby fmsmga001.fm.intel.com with ESMTP; 19 Nov 2015 11:34:26 -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-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.20,318,1444719600\"; d=\"scan'208\";a=\"842678119\"", "From": "Deepthi Kavalur <deepthi.kavalur@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Thu, 19 Nov 2015 11:34:20 -0800", "Message-Id": "<1447961665-12344-8-git-send-email-deepthi.kavalur@intel.com>", "X-Mailer": "git-send-email 2.1.0", "In-Reply-To": "<1447961665-12344-1-git-send-email-deepthi.kavalur@intel.com>", "References": "<1447961665-12344-1-git-send-email-deepthi.kavalur@intel.com>", "Cc": "Michal Kosiarz <michal.kosiarz@intel.com>", "Subject": "[Intel-wired-lan] [V3: next PATCH S22 07/12] i40e: Opcode and\n\tstructures required by OEM Post Update AQ command and add new\n\tNVM arq message", "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: Michal Kosiarz <michal.kosiarz@intel.com>\n\nThis is a part of implementation which contains data structures and\nopcode for new AQ command. There's a new ARQ message that gets sent\nnear the end of the NVM update process that the driver should recognize\nand ignore, rather than printing an Unknown Event error.\n\nSigned-off-by: Michal Kosiarz <michal.kosiarz@intel.com>\nAcked-by: Shannon Nelson <shannon.nelson@intel.com>\nSigned-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>\nChange-ID: I04830a5bcae14823e16b9424cc4165e169336c1f\n\nSigned-off-by: Shannon Nelson <shannon.nelson@intel.com>\nChange-ID: Ic73b0a4e10e0b6895d1f2435125f1e789f3756dd\n---\nTesting Hints :\n\tDo an nvmupdate with the current version of nvmupdate tool before and\n\tafter this patch is applied and watch the kernel log for the message\n\t\t\"ARQ Error: Unknown event 0x0720 received\"\n\tUsing \"nvmupdate -f\" will allow you to \"update\" your NVM with the same\n\tversion NVM, over and over; useful for this kind of testing.\n\n drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 21 +++++++++++++++++++++\n drivers/net/ethernet/intel/i40e/i40e_main.c | 1 +\n drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h | 21 +++++++++++++++++++++\n 3 files changed, 43 insertions(+)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\nindex 61a4979..b22012a 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n@@ -227,6 +227,7 @@ enum i40e_admin_queue_opc {\n \ti40e_aqc_opc_nvm_update\t\t\t= 0x0703,\n \ti40e_aqc_opc_nvm_config_read\t\t= 0x0704,\n \ti40e_aqc_opc_nvm_config_write\t\t= 0x0705,\n+\ti40e_aqc_opc_oem_post_update\t\t= 0x0720,\n \n \t/* virtualization commands */\n \ti40e_aqc_opc_send_msg_to_pf\t\t= 0x0801,\n@@ -1891,6 +1892,26 @@ struct i40e_aqc_nvm_config_data_immediate_field {\n \n I40E_CHECK_STRUCT_LEN(0xc, i40e_aqc_nvm_config_data_immediate_field);\n \n+/* OEM Post Update (indirect 0x0720)\n+ * no command data struct used\n+ */\n+struct i40e_aqc_nvm_oem_post_update {\n+#define I40E_AQ_NVM_OEM_POST_UPDATE_EXTERNAL_DATA\t0x01\n+\tu8 sel_data;\n+\tu8 reserved[7];\n+};\n+\n+I40E_CHECK_STRUCT_LEN(0x8, i40e_aqc_nvm_oem_post_update);\n+\n+struct i40e_aqc_nvm_oem_post_update_buffer {\n+\tu8 str_len;\n+\tu8 dev_addr;\n+\t__le16 eeprom_addr;\n+\tu8 data[36];\n+};\n+\n+I40E_CHECK_STRUCT_LEN(0x28, i40e_aqc_nvm_oem_post_update_buffer);\n+\n /* Send to PF command (indirect 0x0801) id is only used by PF\n * Send to VF command (indirect 0x0802) id is only used by PF\n * Send to Peer PF command (indirect 0x0803)\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex 7147404..7ded5e5 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -6295,6 +6295,7 @@ static void i40e_clean_adminq_subtask(struct i40e_pf *pf)\n \t\t\tbreak;\n \t\tcase i40e_aqc_opc_nvm_erase:\n \t\tcase i40e_aqc_opc_nvm_update:\n+\t\tcase i40e_aqc_opc_oem_post_update:\n \t\t\ti40e_debug(&pf->hw, I40E_DEBUG_NVM, \"ARQ NVM operation completed\\n\");\n \t\t\tbreak;\n \t\tdefault:\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\nindex 1c76389..f5b2b36 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\n@@ -227,6 +227,7 @@ enum i40e_admin_queue_opc {\n \ti40e_aqc_opc_nvm_update\t\t\t= 0x0703,\n \ti40e_aqc_opc_nvm_config_read\t\t= 0x0704,\n \ti40e_aqc_opc_nvm_config_write\t\t= 0x0705,\n+\ti40e_aqc_opc_oem_post_update\t\t= 0x0720,\n \n \t/* virtualization commands */\n \ti40e_aqc_opc_send_msg_to_pf\t\t= 0x0801,\n@@ -1888,6 +1889,26 @@ struct i40e_aqc_nvm_config_data_immediate_field {\n \n I40E_CHECK_STRUCT_LEN(0xc, i40e_aqc_nvm_config_data_immediate_field);\n \n+/* OEM Post Update (indirect 0x0720)\n+ * no command data struct used\n+ */\n+ struct i40e_aqc_nvm_oem_post_update {\n+#define I40E_AQ_NVM_OEM_POST_UPDATE_EXTERNAL_DATA\t0x01\n+\tu8 sel_data;\n+\tu8 reserved[7];\n+};\n+\n+I40E_CHECK_STRUCT_LEN(0x8, i40e_aqc_nvm_oem_post_update);\n+\n+struct i40e_aqc_nvm_oem_post_update_buffer {\n+\tu8 str_len;\n+\tu8 dev_addr;\n+\t__le16 eeprom_addr;\n+\tu8 data[36];\n+};\n+\n+I40E_CHECK_STRUCT_LEN(0x28, i40e_aqc_nvm_oem_post_update_buffer);\n+\n /* Send to PF command (indirect 0x0801) id is only used by PF\n * Send to VF command (indirect 0x0802) id is only used by PF\n * Send to Peer PF command (indirect 0x0803)\n", "prefixes": [ "V3:", "next", "S22", "07/12" ] }