get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/88349/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 88349,
    "url": "http://patches.dpdk.org/api/patches/88349/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210302072357.1657556-2-qi.z.zhang@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.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": "<20210302072357.1657556-2-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210302072357.1657556-2-qi.z.zhang@intel.com",
    "date": "2021-03-02T07:23:44",
    "name": "[01/14] net/ice/base: add firmware log support",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c1f25ab33bc6da1071c79c4d8bee869254821cb5",
    "submitter": {
        "id": 504,
        "url": "http://patches.dpdk.org/api/people/504/?format=api",
        "name": "Qi Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210302072357.1657556-2-qi.z.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 15435,
            "url": "http://patches.dpdk.org/api/series/15435/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15435",
            "date": "2021-03-02T07:23:43",
            "name": "ice: base code update",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/15435/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/88349/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/88349/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 9CA76A054F;\n\tTue,  2 Mar 2021 08:20:18 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C5B901CC4D6;\n\tTue,  2 Mar 2021 08:20:17 +0100 (CET)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 906BB40F35\n for <dev@dpdk.org>; Tue,  2 Mar 2021 08:20:16 +0100 (CET)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Mar 2021 23:20:13 -0800",
            "from dpdk51.sh.intel.com ([10.67.111.142])\n by fmsmga001.fm.intel.com with ESMTP; 01 Mar 2021 23:20:11 -0800"
        ],
        "IronPort-SDR": [
            "\n 0UdvKA99bA8evII/7LPd0ORbGZBRI7RK5Dl9zQTIwb7WmERqp8BR29Q+atZU/DtPCGCuL4JZ9r\n D4UYDWgwteYw==",
            "\n mXb8r/x+b7AegBIo+DVtm28mX8AcNV3t9wYSGv8MqnThED37AsKWG6ckDey5+vN4ZulrJq+JPm\n l0dx7hKsvXww=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9910\"; a=\"186775191\"",
            "E=Sophos;i=\"5.81,216,1610438400\"; d=\"scan'208\";a=\"186775191\"",
            "E=Sophos;i=\"5.81,216,1610438400\"; d=\"scan'208\";a=\"506230247\""
        ],
        "X-ExtLoop1": "1",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "To": "qiming.yang@intel.com",
        "Cc": "dev@dpdk.org, haiyue.wang@intel.com, junfeng.guo@intel.com,\n Qi Zhang <qi.z.zhang@intel.com>, Amir Shay <shay.amir@intel.com>",
        "Date": "Tue,  2 Mar 2021 15:23:44 +0800",
        "Message-Id": "<20210302072357.1657556-2-qi.z.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.26.2",
        "In-Reply-To": "<20210302072357.1657556-1-qi.z.zhang@intel.com>",
        "References": "<20210302072357.1657556-1-qi.z.zhang@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 01/14] net/ice/base: add firmware log support",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "Currently we do not provide full end-to-end solution for system level\ndebug and diagnostics. This change purpose is to fulfill design and\nimplementation gaps to provide full end-to-end (HW-FW-SW) diagnostic\nsolution. In addition to functional improvements, it will provide\nfeasible, user-friendly Debug information.\n\nSigned-off-by: Amir Shay <shay.amir@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, 53 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h\nindex 8f72f0db33..a345fb5a61 100644\n--- a/drivers/net/ice/base/ice_adminq_cmd.h\n+++ b/drivers/net/ice/base/ice_adminq_cmd.h\n@@ -2730,6 +2730,50 @@ struct ice_aqc_clear_health_status {\n \t__le32 reserved[4];\n };\n \n+/* Set FW Logging configuration (indirect 0xFF30)\n+ * Register for FW Logging (indirect 0xFF31)\n+ * Query FW Logging (indirect 0xFF32)\n+ * FW Log Event (indirect 0xFF33)\n+ * Get FW Log (indirect 0xFF34)\n+ * Clear FW Log (indirect 0xFF35)\n+ */\n+\n+struct ice_aqc_fw_log {\n+\tu8 cmd_flags;\n+#define ICE_AQC_FW_LOG_CONF_UART_EN\tBIT(0)\n+#define ICE_AQC_FW_LOG_CONF_AQ_EN\tBIT(1)\n+#define ICE_AQC_FW_LOG_CONF_SET_VALID\tBIT(3)\n+#define ICE_AQC_FW_LOG_AQ_REGISTER\tBIT(0)\n+#define ICE_AQC_FW_LOG_AQ_QUERY\t\tBIT(2)\n+#define ICE_AQC_FW_LOG_PERSISTENT\tBIT(0)\n+\tu8 rsp_flag;\n+#define ICE_AQC_FW_LOG_MORE_DATA\tBIT(1)\n+\t__le16 fw_rt_msb;\n+\tunion {\n+\t\tstruct {\n+\t\t\t__le32 fw_rt_lsb;\n+\t\t} sync;\n+\t\tstruct {\n+\t\t\t__le16 log_resolution;\n+#define ICE_AQC_FW_LOG_MIN_RESOLUTION\t\t(1)\n+#define ICE_AQC_FW_LOG_MAX_RESOLUTION\t\t(128)\n+\t\t\t__le16 mdl_cnt;\n+\t\t} cfg;\n+\t} ops;\n+\t__le32 addr_high;\n+\t__le32 addr_low;\n+};\n+\n+/* Response Buffer for:\n+ *    Set Firmware Logging Configuration (0xFF30)\n+ *    Query FW Logging (0xFF32)\n+ */\n+struct ice_aqc_fw_log_cfg_resp {\n+\t__le16 module_identifier;\n+\tu8 log_level;\n+\tu8 rsvd0;\n+};\n+\n /**\n  * struct ice_aq_desc - Admin Queue (AQ) descriptor\n  * @flags: ICE_AQ_FLAG_* flags\n@@ -3090,7 +3134,15 @@ enum ice_adminq_opc {\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+\tice_aqc_opc_clear_health_status\t\t\t= 0xFF23,\n+\n+\t/* FW Logging Commands */\n+\tice_aqc_opc_fw_logs_config\t\t\t= 0xFF30,\n+\tice_aqc_opc_fw_logs_register\t\t\t= 0xFF31,\n+\tice_aqc_opc_fw_logs_query\t\t\t= 0xFF32,\n+\tice_aqc_opc_fw_logs_event\t\t\t= 0xFF33,\n+\tice_aqc_opc_fw_logs_get\t\t\t\t= 0xFF34,\n+\tice_aqc_opc_fw_logs_clear\t\t\t= 0xFF35\n };\n \n #endif /* _ICE_ADMINQ_CMD_H_ */\n",
    "prefixes": [
        "01/14"
    ]
}