Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/71243/?format=api
http://patchwork.dpdk.org/api/patches/71243/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200611084330.18301-5-qi.z.zhang@intel.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20200611084330.18301-5-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200611084330.18301-5-qi.z.zhang@intel.com", "date": "2020-06-11T08:43:24", "name": "[04/10] net/ice/base: add commands for system diagnostic", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "0a1e7168331b96027897d35b78860b7b697bbd6d", "submitter": { "id": 504, "url": "http://patchwork.dpdk.org/api/people/504/?format=api", "name": "Qi Zhang", "email": "qi.z.zhang@intel.com" }, "delegate": { "id": 31221, "url": "http://patchwork.dpdk.org/api/users/31221/?format=api", "username": "yexl", "first_name": "xiaolong", "last_name": "ye", "email": "xiaolong.ye@intel.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20200611084330.18301-5-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 10404, "url": "http://patchwork.dpdk.org/api/series/10404/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=10404", "date": "2020-06-11T08:43:20", "name": "net/ice: base code update for 20.08 batch 2", "version": 1, "mbox": "http://patchwork.dpdk.org/series/10404/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/71243/comments/", "check": "warning", "checks": "http://patchwork.dpdk.org/api/patches/71243/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id DF435A00C5;\n\tThu, 11 Jun 2020 10:40:13 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9FF2E1BE97;\n\tThu, 11 Jun 2020 10:39:43 +0200 (CEST)", "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id 4B9691BC25\n for <dev@dpdk.org>; Thu, 11 Jun 2020 10:39:41 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Jun 2020 01:39:41 -0700", "from dpdk51.sh.intel.com ([10.67.111.82])\n by orsmga004.jf.intel.com with ESMTP; 11 Jun 2020 01:39:39 -0700" ], "IronPort-SDR": [ "\n EG2vqwqazG4s55JoXHH0sczqoizpyo1Mwb59qmGzaiW/dQaT4F2GX/vFIfMm873fLEp/LK3Kyw\n newlbwLwgqPQ==", "\n ULKBx6wMDUVzYTEYXRrMwKiFiLX42Hw9KPJsNQ5N19LC/gUmFW2Y5dbSLWgo2zKWsq6M0ZptsI\n fhqanQKhg/MQ==" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.73,499,1583222400\"; d=\"scan'208\";a=\"419039153\"", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "dev@dpdk.org, xiaolong.ye@intel.com, Qi Zhang <qi.z.zhang@intel.com>,\n Sharon Haroni <sharon.haroni@intel.com>,\n Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>", "Date": "Thu, 11 Jun 2020 16:43:24 +0800", "Message-Id": "<20200611084330.18301-5-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.13.6", "In-Reply-To": "<20200611084330.18301-1-qi.z.zhang@intel.com>", "References": "<20200611084330.18301-1-qi.z.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH 04/10] net/ice/base: add commands for system\n\tdiagnostic", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "System diagnostic solution extend the ability to fetch FW\ninternal status data and error indication.\n\nSigned-off-by: Sharon Haroni <sharon.haroni@intel.com>\nSigned-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_adminq_cmd.h | 54 +++++++++++++++++++++++++++++++++++\n 1 file changed, 54 insertions(+)", "diff": "diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h\nindex f480917cd..eaf6c3d0e 100644\n--- a/drivers/net/ice/base/ice_adminq_cmd.h\n+++ b/drivers/net/ice/base/ice_adminq_cmd.h\n@@ -2646,6 +2646,50 @@ struct ice_aqc_event_lan_overflow {\n \tu8 reserved[8];\n };\n \n+/* Set Health Status (direct 0xFF20) */\n+struct ice_aqc_set_health_status_config {\n+\tu8 event_source;\n+#define ICE_AQC_HEALTH_STATUS_SET_PF_SPECIFIC_MASK\tBIT(0)\n+#define ICE_AQC_HEALTH_STATUS_SET_ALL_PF_MASK\t\tBIT(1)\n+#define ICE_AQC_HEALTH_STATUS_SET_GLOBAL_MASK\t\tBIT(2)\n+\tu8 reserved[15];\n+};\n+\n+/* Get Health Status codes (indirect 0xFF21) */\n+struct ice_aqc_get_supported_health_status_codes {\n+\t__le16 health_code_count;\n+\tu8 reserved[6];\n+\t__le32 addr_high;\n+\t__le32 addr_low;\n+};\n+\n+/* Get Health Status (indirect 0xFF22) */\n+struct ice_aqc_get_health_status {\n+\t__le16 health_status_count;\n+\tu8 reserved[6];\n+\t__le32 addr_high;\n+\t__le32 addr_low;\n+};\n+\n+/* Get Health Status event buffer entry, (0xFF22)\n+ * repeated per reported health status\n+ */\n+struct ice_aqc_health_status_elem {\n+\t__le16 health_status_code;\n+\t__le16 event_source;\n+#define ICE_AQC_HEALTH_STATUS_PF\t\t\t(0x1)\n+#define ICE_AQC_HEALTH_STATUS_PORT\t\t\t(0x2)\n+#define ICE_AQC_HEALTH_STATUS_GLOBAL\t\t\t(0x3)\n+\t__le32 internal_data1;\n+#define ICE_AQC_HEALTH_STATUS_UNDEFINED_DATA\t(0xDEADBEEF)\n+\t__le32 internal_data2;\n+};\n+\n+/* Clear Health Status (direct 0xFF23) */\n+struct ice_aqc_clear_health_status {\n+\t__le32 reserved[4];\n+};\n+\n /**\n * struct ice_aq_desc - Admin Queue (AQ) descriptor\n * @flags: ICE_AQ_FLAG_* flags\n@@ -2750,6 +2794,10 @@ struct ice_aq_desc {\n \t\tstruct ice_aqc_get_link_status get_link_status;\n \t\tstruct ice_aqc_event_lan_overflow lan_overflow;\n \t\tstruct ice_aqc_get_link_topo get_link_topo;\n+\t\tstruct ice_aqc_set_health_status_config set_health_status_config;\n+\t\tstruct ice_aqc_get_supported_health_status_codes get_supported_health_status_codes;\n+\t\tstruct ice_aqc_get_health_status get_health_status;\n+\t\tstruct ice_aqc_clear_health_status clear_health_status;\n \t} params;\n };\n \n@@ -2989,6 +3037,12 @@ enum ice_adminq_opc {\n \n \t/* Standalone Commands/Events */\n \tice_aqc_opc_event_lan_overflow\t\t\t= 0x1001,\n+\n+\t/* SystemDiagnostic commands */\n+\tice_aqc_opc_set_health_status_config\t\t= 0xFF20,\n+\tice_aqc_opc_get_supported_health_status_codes\t= 0xFF21,\n+\tice_aqc_opc_get_health_status\t\t\t= 0xFF22,\n+\tice_aqc_opc_clear_health_status\t\t\t= 0xFF23\n };\n \n #endif /* _ICE_ADMINQ_CMD_H_ */\n", "prefixes": [ "04/10" ] }{ "id": 71243, "url": "