Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/54674/?format=api
http://patches.dpdk.org/api/patches/54674/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190611155221.2703-18-leyi.rong@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": "<20190611155221.2703-18-leyi.rong@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190611155221.2703-18-leyi.rong@intel.com", "date": "2019-06-11T15:51:32", "name": "[v2,17/66] net/ice/base: add API to init FW logging", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e8c203ec49923057884841c548420276577207b1", "submitter": { "id": 1204, "url": "http://patches.dpdk.org/api/people/1204/?format=api", "name": "Leyi Rong", "email": "leyi.rong@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/20190611155221.2703-18-leyi.rong@intel.com/mbox/", "series": [ { "id": 4981, "url": "http://patches.dpdk.org/api/series/4981/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4981", "date": "2019-06-11T15:51:15", "name": "shared code update", "version": 2, "mbox": "http://patches.dpdk.org/series/4981/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/54674/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/54674/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D0FCD1C373;\n\tTue, 11 Jun 2019 17:54:23 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 056A51C482\n\tfor <dev@dpdk.org>; Tue, 11 Jun 2019 17:53:59 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Jun 2019 08:53:59 -0700", "from lrong-srv-03.sh.intel.com ([10.67.119.177])\n\tby orsmga001.jf.intel.com with ESMTP; 11 Jun 2019 08:53:58 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Leyi Rong <leyi.rong@intel.com>", "To": "qi.z.zhang@intel.com", "Cc": "dev@dpdk.org, Leyi Rong <leyi.rong@intel.com>,\n\tDan Nowlin <dan.nowlin@intel.com>,\n\tPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>", "Date": "Tue, 11 Jun 2019 23:51:32 +0800", "Message-Id": "<20190611155221.2703-18-leyi.rong@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190611155221.2703-1-leyi.rong@intel.com>", "References": "<20190604054248.68510-1-leyi.rong@intel.com>\n\t<20190611155221.2703-1-leyi.rong@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 17/66] net/ice/base: add API to init FW logging", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "In order to initialize the current status of the FW logging,\nthe api ice_get_fw_log_cfg is added. The function retrieves\nthe current setting of the FW logging from HW and updates the\nice_hw structure accordingly.\n\nSigned-off-by: Dan Nowlin <dan.nowlin@intel.com>\nSigned-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Leyi Rong <leyi.rong@intel.com>\n---\n drivers/net/ice/base/ice_adminq_cmd.h | 1 +\n drivers/net/ice/base/ice_common.c | 48 +++++++++++++++++++++++++++\n 2 files changed, 49 insertions(+)", "diff": "diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h\nindex 7b0aa8aaa..739f79e88 100644\n--- a/drivers/net/ice/base/ice_adminq_cmd.h\n+++ b/drivers/net/ice/base/ice_adminq_cmd.h\n@@ -2196,6 +2196,7 @@ enum ice_aqc_fw_logging_mod {\n \tICE_AQC_FW_LOG_ID_WATCHDOG,\n \tICE_AQC_FW_LOG_ID_TASK_DISPATCH,\n \tICE_AQC_FW_LOG_ID_MNG,\n+\tICE_AQC_FW_LOG_ID_SYNCE,\n \tICE_AQC_FW_LOG_ID_MAX,\n };\n \ndiff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c\nindex 62c7fad0d..7093ee4f4 100644\n--- a/drivers/net/ice/base/ice_common.c\n+++ b/drivers/net/ice/base/ice_common.c\n@@ -582,6 +582,49 @@ static void ice_cleanup_fltr_mgmt_struct(struct ice_hw *hw)\n #define ICE_FW_LOG_DESC_SIZE_MAX\t\\\n \tICE_FW_LOG_DESC_SIZE(ICE_AQC_FW_LOG_ID_MAX)\n \n+/**\n+ * ice_get_fw_log_cfg - get FW logging configuration\n+ * @hw: pointer to the HW struct\n+ */\n+static enum ice_status ice_get_fw_log_cfg(struct ice_hw *hw)\n+{\n+\tstruct ice_aqc_fw_logging_data *config;\n+\tstruct ice_aq_desc desc;\n+\tenum ice_status status;\n+\tu16 size;\n+\n+\tsize = ICE_FW_LOG_DESC_SIZE_MAX;\n+\tconfig = (struct ice_aqc_fw_logging_data *)ice_malloc(hw, size);\n+\tif (!config)\n+\t\treturn ICE_ERR_NO_MEMORY;\n+\n+\tice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_fw_logging_info);\n+\n+\tdesc.flags |= CPU_TO_LE16(ICE_AQ_FLAG_BUF);\n+\tdesc.flags |= CPU_TO_LE16(ICE_AQ_FLAG_RD);\n+\n+\tstatus = ice_aq_send_cmd(hw, &desc, config, size, NULL);\n+\tif (!status) {\n+\t\tu16 i;\n+\n+\t\t/* Save fw logging information into the HW structure */\n+\t\tfor (i = 0; i < ICE_AQC_FW_LOG_ID_MAX; i++) {\n+\t\t\tu16 v, m, flgs;\n+\n+\t\t\tv = LE16_TO_CPU(config->entry[i]);\n+\t\t\tm = (v & ICE_AQC_FW_LOG_ID_M) >> ICE_AQC_FW_LOG_ID_S;\n+\t\t\tflgs = (v & ICE_AQC_FW_LOG_EN_M) >> ICE_AQC_FW_LOG_EN_S;\n+\n+\t\t\tif (m < ICE_AQC_FW_LOG_ID_MAX)\n+\t\t\t\thw->fw_log.evnts[m].cur = flgs;\n+\t\t}\n+\t}\n+\n+\tice_free(hw, config);\n+\n+\treturn status;\n+}\n+\n /**\n * ice_cfg_fw_log - configure FW logging\n * @hw: pointer to the HW struct\n@@ -636,6 +679,11 @@ static enum ice_status ice_cfg_fw_log(struct ice_hw *hw, bool enable)\n \t (!hw->fw_log.actv_evnts || !ice_check_sq_alive(hw, &hw->adminq)))\n \t\treturn ICE_SUCCESS;\n \n+\t/* Get current FW log settings */\n+\tstatus = ice_get_fw_log_cfg(hw);\n+\tif (status)\n+\t\treturn status;\n+\n \tice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_fw_logging);\n \tcmd = &desc.params.fw_logging;\n \n", "prefixes": [ "v2", "17/66" ] }{ "id": 54674, "url": "