From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8878345500; Wed, 26 Jun 2024 13:56:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BDAC8432E4; Wed, 26 Jun 2024 13:55:14 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 485B042E95 for ; Wed, 26 Jun 2024 13:43:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719402210; x=1750938210; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eiQrOeVoW1fMJs1AopV+uc+2d9rp4/NJEFKzDYavbf4=; b=jM3q8n0JKSqa2o79bO2iXExWbfddxGTgclVyTob9Z40+Z8e8ZZuecl/Q qiNS4S4/u6fcUPF2iXCCZYUyDq3CMW3xbGDtIbJ6nDZS1TCmg8npjQla9 7Tsh/LY47L+pZErdYbdMbVKlxqfGdmqwyqevaTb/5nll3EXZe/DHPScpe cof/Sf2UfW5Sm7BjBeXsjmfV5Ueq958Y6DUC63a/cm8sWuWl5qCfbSfNx 2zZa/ua8awZGROu/X9dCiXE3ejL3JDbZ8MdXV/6H6NqlBQt4oWD4CCzQS bxXuX83OzTJrOHakesWzEHQHp6PBaV72evIaLz/Y5YouGGvEkZt+NCLFO g==; X-CSE-ConnectionGUID: 2hQSceeZRS26poA/1j+0VA== X-CSE-MsgGUID: YOLiGgIORtOtsDowLF9aDw== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979329" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979329" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2024 04:43:29 -0700 X-CSE-ConnectionGUID: QGrgO9SYTeO0aMnSPWUYCg== X-CSE-MsgGUID: GVqnOPSaQ1inlz497Ic7eg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43873533" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:43:29 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Wojciech Drewek , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 018/103] net/ice/base: add Cage Max Power override NVM module Date: Wed, 26 Jun 2024 12:41:06 +0100 Message-ID: <9d25fe263dc6059e78d1faee3325122122fa6a9a.1719401847.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Wojciech Drewek Define Cage Max Power override NVM module which allows to override maximum power of QSFP/SFP cage. There might be up to 8 cages so each of them has its own word in the module. From the ice driver perspective we need only Override Enable bit so there is no need to define bits where maximum power s stored. This bit determines if the new max power should be used (1) or the default value should be used (0). Signed-off-by: Wojciech Drewek Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_adminq_cmd.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h index 13db853eae..f235bfb2fe 100644 --- a/drivers/net/ice/base/ice_adminq_cmd.h +++ b/drivers/net/ice/base/ice_adminq_cmd.h @@ -1977,6 +1977,14 @@ struct ice_aqc_nvm { #define ICE_AQC_NVM_LLDP_STATUS_RD_LEN 4 /* In Bytes */ #define ICE_AQC_NVM_TX_TOPO_MOD_ID 0x14B +#define ICE_AQC_NVM_CMPO_MOD_ID 0x153 + +/* Cage Max Power override NVM module */ +struct ice_aqc_nvm_cmpo { + __le16 length; +#define ICE_AQC_NVM_CMPO_ENABLE BIT(8) + __le16 cages_cfg[8]; +}; struct ice_aqc_nvm_tx_topo_user_sel { __le16 length; -- 2.43.0