Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/610120/?format=api
{ "id": 610120, "url": "http://patchwork.ozlabs.org/api/patches/610120/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1460542112-20166-5-git-send-email-harshitha.ramamurthy@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": "<1460542112-20166-5-git-send-email-harshitha.ramamurthy@intel.com>", "list_archive_url": null, "date": "2016-04-13T10:08:24", "name": "[next,S34,04/12] i40e: Remove HMC AQ API implementation", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "e814c93944fc06808226883fe2b9ce17f9a34b5e", "submitter": { "id": 68642, "url": "http://patchwork.ozlabs.org/api/people/68642/?format=api", "name": "Harshitha Ramamurthy", "email": "harshitha.ramamurthy@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/1460542112-20166-5-git-send-email-harshitha.ramamurthy@intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/610120/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/610120/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@osuosl.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "intel-wired-lan@osuosl.org" ], "Received": [ "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id 3qlX4s700Rz9sD9\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 14 Apr 2016 04:14:21 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 2413833A13;\n\tWed, 13 Apr 2016 18:14:21 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id k6KilHu63ilh; Wed, 13 Apr 2016 18:14:17 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 4A35533A0E;\n\tWed, 13 Apr 2016 18:14:17 +0000 (UTC)", "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 710FC1C10B8\n\tfor <intel-wired-lan@osuosl.org>;\n\tWed, 13 Apr 2016 18:14:14 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 68035339FE\n\tfor <intel-wired-lan@osuosl.org>;\n\tWed, 13 Apr 2016 18:14:14 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id KOMfHj0uy8NW for <intel-wired-lan@osuosl.org>;\n\tWed, 13 Apr 2016 18:14:11 +0000 (UTC)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby silver.osuosl.org (Postfix) with ESMTP id 6E14D33A05\n\tfor <intel-wired-lan@osuosl.org>;\n\tWed, 13 Apr 2016 18:14:11 +0000 (UTC)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga102.jf.intel.com with ESMTP; 13 Apr 2016 11:14:11 -0700", "from harshitha-linux1.jf.intel.com ([10.166.45.81])\n\tby fmsmga002.fm.intel.com with ESMTP; 13 Apr 2016 11:14:11 -0700" ], "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.24,480,1455004800\"; d=\"scan'208\";a=\"957967583\"", "From": "Harshitha Ramamurthy <harshitha.ramamurthy@intel.com>", "To": "intel-wired-lan@osuosl.org", "Date": "Wed, 13 Apr 2016 03:08:24 -0700", "Message-Id": "<1460542112-20166-5-git-send-email-harshitha.ramamurthy@intel.com>", "X-Mailer": "git-send-email 2.4.3", "In-Reply-To": "<1460542112-20166-1-git-send-email-harshitha.ramamurthy@intel.com>", "References": "<1460542112-20166-1-git-send-email-harshitha.ramamurthy@intel.com>", "Subject": "[Intel-wired-lan] [next PATCH S34 04/12] i40e: Remove HMC AQ API\n\timplementation", "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: Neerav Parikh <neerav.parikh@intel.com>\n\nRemove the code that implements the HMC AQ APIs and call these APIs.\nThis is done because these are obsolete APIs and are not supported\nby firmware.\n\nSigned-off-by: Neerav Parikh <neerav.parikh@intel.com>\nChange-ID: I5d771d8f37c3e16e7b0a972ff9b27e75aa2d05d4\n---\n drivers/net/ethernet/intel/i40e/i40e_adminq.c | 4 ---\n drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 25 ------------------\n drivers/net/ethernet/intel/i40e/i40e_common.c | 30 ----------------------\n drivers/net/ethernet/intel/i40e/i40e_prototype.h | 4 ---\n .../net/ethernet/intel/i40evf/i40e_adminq_cmd.h | 25 ------------------\n 5 files changed, 88 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq.c b/drivers/net/ethernet/intel/i40e/i40e_adminq.c\nindex 43bb413..738b42a 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_adminq.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_adminq.c\n@@ -617,10 +617,6 @@ i40e_status i40e_init_adminq(struct i40e_hw *hw)\n \thw->nvm_release_on_done = false;\n \thw->nvmupd_state = I40E_NVMUPD_STATE_INIT;\n \n-\tret_code = i40e_aq_set_hmc_resource_profile(hw,\n-\t\t\t\t\t\t I40E_HMC_PROFILE_DEFAULT,\n-\t\t\t\t\t\t 0,\n-\t\t\t\t\t\t NULL);\n \tret_code = 0;\n \n \t/* success! */\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\nindex 5179b3b..48c0c00 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n@@ -205,10 +205,6 @@ enum i40e_admin_queue_opc {\n \ti40e_aqc_opc_resume_port_tx\t\t\t\t= 0x041C,\n \ti40e_aqc_opc_configure_partition_bw\t\t\t= 0x041D,\n \n-\t/* hmc */\n-\ti40e_aqc_opc_query_hmc_resource_profile\t= 0x0500,\n-\ti40e_aqc_opc_set_hmc_resource_profile\t= 0x0501,\n-\n \t/* phy commands*/\n \ti40e_aqc_opc_get_phy_abilities\t\t= 0x0600,\n \ti40e_aqc_opc_set_phy_config\t\t= 0x0601,\n@@ -1586,27 +1582,6 @@ struct i40e_aqc_configure_partition_bw_data {\n \n I40E_CHECK_STRUCT_LEN(0x22, i40e_aqc_configure_partition_bw_data);\n \n-/* Get and set the active HMC resource profile and status.\n- * (direct 0x0500) and (direct 0x0501)\n- */\n-struct i40e_aq_get_set_hmc_resource_profile {\n-\tu8\tpm_profile;\n-\tu8\tpe_vf_enabled;\n-\tu8\treserved[14];\n-};\n-\n-I40E_CHECK_CMD_LENGTH(i40e_aq_get_set_hmc_resource_profile);\n-\n-enum i40e_aq_hmc_profile {\n-\t/* I40E_HMC_PROFILE_NO_CHANGE = 0, reserved */\n-\tI40E_HMC_PROFILE_DEFAULT\t= 1,\n-\tI40E_HMC_PROFILE_FAVOR_VF\t= 2,\n-\tI40E_HMC_PROFILE_EQUAL\t\t= 3,\n-};\n-\n-#define I40E_AQ_GET_HMC_RESOURCE_PROFILE_PM_MASK\t0xF\n-#define I40E_AQ_GET_HMC_RESOURCE_PROFILE_COUNT_MASK\t0x3F\n-\n /* Get PHY Abilities (indirect 0x0600) uses the generic indirect struct */\n \n /* set in param0 for get phy abilities to report qualified modules */\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c\nindex 0e8552b..4a934e1 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_common.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_common.c\n@@ -2855,36 +2855,6 @@ i40e_status i40e_aq_debug_write_register(struct i40e_hw *hw,\n }\n \n /**\n- * i40e_aq_set_hmc_resource_profile\n- * @hw: pointer to the hw struct\n- * @profile: type of profile the HMC is to be set as\n- * @pe_vf_enabled_count: the number of PE enabled VFs the system has\n- * @cmd_details: pointer to command details structure or NULL\n- *\n- * set the HMC profile of the device.\n- **/\n-i40e_status i40e_aq_set_hmc_resource_profile(struct i40e_hw *hw,\n-\t\t\t\tenum i40e_aq_hmc_profile profile,\n-\t\t\t\tu8 pe_vf_enabled_count,\n-\t\t\t\tstruct i40e_asq_cmd_details *cmd_details)\n-{\n-\tstruct i40e_aq_desc desc;\n-\tstruct i40e_aq_get_set_hmc_resource_profile *cmd =\n-\t\t(struct i40e_aq_get_set_hmc_resource_profile *)&desc.params.raw;\n-\ti40e_status status;\n-\n-\ti40e_fill_default_direct_cmd_desc(&desc,\n-\t\t\t\t\ti40e_aqc_opc_set_hmc_resource_profile);\n-\n-\tcmd->pm_profile = (u8)profile;\n-\tcmd->pe_vf_enabled = pe_vf_enabled_count;\n-\n-\tstatus = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details);\n-\n-\treturn status;\n-}\n-\n-/**\n * i40e_aq_request_resource\n * @hw: pointer to the hw struct\n * @resource: resource id\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_prototype.h b/drivers/net/ethernet/intel/i40e/i40e_prototype.h\nindex 8afb237..4c8977c 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_prototype.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_prototype.h\n@@ -236,10 +236,6 @@ i40e_status i40e_aq_config_vsi_bw_limit(struct i40e_hw *hw,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n i40e_status i40e_aq_dcb_updated(struct i40e_hw *hw,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n-i40e_status i40e_aq_set_hmc_resource_profile(struct i40e_hw *hw,\n-\t\t\t\tenum i40e_aq_hmc_profile profile,\n-\t\t\t\tu8 pe_vf_enabled_count,\n-\t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n i40e_status i40e_aq_config_switch_comp_bw_limit(struct i40e_hw *hw,\n \t\t\t\tu16 seid, u16 credit, u8 max_bw,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\nindex 1bcb8cf..180ae57 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\n@@ -205,10 +205,6 @@ enum i40e_admin_queue_opc {\n \ti40e_aqc_opc_resume_port_tx\t\t\t\t= 0x041C,\n \ti40e_aqc_opc_configure_partition_bw\t\t\t= 0x041D,\n \n-\t/* hmc */\n-\ti40e_aqc_opc_query_hmc_resource_profile\t= 0x0500,\n-\ti40e_aqc_opc_set_hmc_resource_profile\t= 0x0501,\n-\n \t/* phy commands*/\n \ti40e_aqc_opc_get_phy_abilities\t\t= 0x0600,\n \ti40e_aqc_opc_set_phy_config\t\t= 0x0601,\n@@ -1583,27 +1579,6 @@ struct i40e_aqc_configure_partition_bw_data {\n \n I40E_CHECK_STRUCT_LEN(0x22, i40e_aqc_configure_partition_bw_data);\n \n-/* Get and set the active HMC resource profile and status.\n- * (direct 0x0500) and (direct 0x0501)\n- */\n-struct i40e_aq_get_set_hmc_resource_profile {\n-\tu8\tpm_profile;\n-\tu8\tpe_vf_enabled;\n-\tu8\treserved[14];\n-};\n-\n-I40E_CHECK_CMD_LENGTH(i40e_aq_get_set_hmc_resource_profile);\n-\n-enum i40e_aq_hmc_profile {\n-\t/* I40E_HMC_PROFILE_NO_CHANGE = 0, reserved */\n-\tI40E_HMC_PROFILE_DEFAULT\t= 1,\n-\tI40E_HMC_PROFILE_FAVOR_VF\t= 2,\n-\tI40E_HMC_PROFILE_EQUAL\t\t= 3,\n-};\n-\n-#define I40E_AQ_GET_HMC_RESOURCE_PROFILE_PM_MASK\t0xF\n-#define I40E_AQ_GET_HMC_RESOURCE_PROFILE_COUNT_MASK\t0x3F\n-\n /* Get PHY Abilities (indirect 0x0600) uses the generic indirect struct */\n \n /* set in param0 for get phy abilities to report qualified modules */\n", "prefixes": [ "next", "S34", "04/12" ] }