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 B629D4404F; Wed, 12 Jun 2024 17:12:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D6BB442DCA; Wed, 12 Jun 2024 17:04:42 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 52BAB42D78 for ; Wed, 12 Jun 2024 17:04:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204677; x=1749740677; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DEdKWDez+pjTsu1AchN7URUqjCpBDPeS8+inKEC1osk=; b=I6lR0AbGI0pb5fbbb5L08483c5FXRanEAwSdXR7W06iDEFLMxyEJv2nD +dIIziTFDoAKXRQmvV+0MR0HBJaNBRCGtmVwVSNwlcuEa64wva7GKM81Z tI8H4d/192ByyllB8nrE/ZWtkzY3RqMv0C+/c0b3MtrCvuqtAEi0nAQ7y Sg5M+92yPvgKmCzbf/psjopNkT5E5pj5FjirWHkpIJ+tAemhClKSiBwTs 6ST+q/PYNuUtygBvez2/y5h2lBPE8jQ1HIaT9JIue0DhJg6Ua0K/4H4RA t5zk7RXLgWzU4trnYT1+iS0W2O3ghjAqHFvv3PQwCCcgo83tRg5HAw7yA w==; X-CSE-ConnectionGUID: ZfbV6d7JQ/K/fdiVA+mDUg== X-CSE-MsgGUID: dc9nmYjMTVCoW4zSsj1SOQ== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459499" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459499" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 08:04:35 -0700 X-CSE-ConnectionGUID: bu659AnKTqmFIcAlWLDAmg== X-CSE-MsgGUID: PFafxMwgRMOuBLlrKwnANw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925241" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:04:34 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Wojciech Drewek Subject: [PATCH v2 048/148] net/ice/base: add Cage Max Power override NVM module Date: Wed, 12 Jun 2024 16:00:42 +0100 Message-ID: <65fd687344bd64c67d6c8e962909d39ce172c3b1.1718204528.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20240430154014.1026-1-ian.stokes@intel.com> 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: Ian Stokes 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 8d6de52a72..04a0b1cf9b 100644 --- a/drivers/net/ice/base/ice_adminq_cmd.h +++ b/drivers/net/ice/base/ice_adminq_cmd.h @@ -1950,6 +1950,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