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 3EF3E454EF; Tue, 25 Jun 2024 13:20:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 118AF42EF7; Tue, 25 Jun 2024 13:16:42 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 3D5D142E55 for ; Tue, 25 Jun 2024 13:16:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314162; x=1750850162; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eiQrOeVoW1fMJs1AopV+uc+2d9rp4/NJEFKzDYavbf4=; b=Y/ocUaGhPWYzsuVuJFY1pGpLh2uWZxwv92nzgHYtUNlNrpqGR7eoX2ES 6i97LIgjQs158dXcin47qtPMwgEDtwHHHkP2Vt8IqDGfeoPBDsPhPmNBj 6IjKY6SARGtNs4zmVGsaOUND480qb3Jqe5jLeb4XhD0hkQmIqZBcD1gl3 NDjPkwpHc7jWwarDdMP6gtX/YvWeDTteSOxTGkDobdxyKN0ctAtwo+qzG /mATQmuzovnJlTHk2nkKQHwycmPD8Wxj7+Xo/FzoEMU2n6FJxWrnKXz44 oA8TD4SRFD8CG0XLMeqGuFUUbBcQCB3SuMZUJ3amyxySqGqc5vp1HjOQ6 w==; X-CSE-ConnectionGUID: Gkw9UVIOQeivxJVNriuUcA== X-CSE-MsgGUID: RjdoMRQBReCIsbaLDo/m+g== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080177" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080177" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2024 04:16:01 -0700 X-CSE-ConnectionGUID: iO5ftPTKSDa+DZIXwp6hsQ== X-CSE-MsgGUID: rxT1KPkUQKC8+kakqUE0Ig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719146" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:16:01 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Wojciech Drewek , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 038/129] net/ice/base: add Cage Max Power override NVM module Date: Tue, 25 Jun 2024 12:12:43 +0100 Message-ID: <6a94aa78bcc15e3bb146499150eaae6274623c99.1719313663.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