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 78FFF4404F; Wed, 12 Jun 2024 17:08:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4B80410E4; Wed, 12 Jun 2024 17:03:53 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 033D841148 for ; Wed, 12 Jun 2024 17:03:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204630; x=1749740630; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OZZ5a2t37aLgqUb41bYahC+VTTqYBw4qi/ve7lUVWy8=; b=nvyW9yk5DxQ9XQ4SJ+Di0uc2VrlJBnRGHhPbovSsNEqEK2IsrvJcQrsd 7FY6L+tDlHxbee4D1fULZ8cOVjQ78d/sEA91k103vLkmAchcsC8/qUV/G JKkMoosghQNfSqpnX6u7XuCqYAcr6BMvaPxSETlPDtQWmLO/ejJA0uYot jk4Y7k7CQOTQomfgcl3LTfNki5evFM4UzbraJYnOTzwXePfS3hZKtfKV/ PnHJQC1ivZDld+XqmAG0iohgpqhnART/WlqBp47q9QlnfHAJGbMSFnwLM ZFxhhO4+0oFh4DPqOpQWrpeYv/JNzpWeHr6Su3Gue7iv5f8gior5KGBMf Q==; X-CSE-ConnectionGUID: 3jsR43nZQnqrIViqu/dNJQ== X-CSE-MsgGUID: xQ41urMqTyemoK6IPXWf9w== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459211" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459211" 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:03:49 -0700 X-CSE-ConnectionGUID: OFJsCsUeTBONr+tKNRnHxQ== X-CSE-MsgGUID: 4kRbKnPrQNCzs6tb3mqk8g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39924951" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:03:48 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Fabio Pricoco Subject: [PATCH v2 020/148] net/ice/base: support for OROM update in recovery mode Date: Wed, 12 Jun 2024 16:00:14 +0100 Message-ID: <4fb4393f876265f50e25242d00e282f7c03baf7e.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 OROM update in recovery mode is allowed or not based on function capability 0x0090. This patch adds capability parsing for it. Signed-off-by: Fabio Pricoco Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_adminq_cmd.h | 1 + drivers/net/ice/base/ice_common.c | 5 +++++ drivers/net/ice/base/ice_type.h | 2 ++ 3 files changed, 8 insertions(+) diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h index ab3dfd8685..fe82df747c 100644 --- a/drivers/net/ice/base/ice_adminq_cmd.h +++ b/drivers/net/ice/base/ice_adminq_cmd.h @@ -129,6 +129,7 @@ struct ice_aqc_list_caps_elem { #define ICE_AQC_CAPS_EXT_TOPO_DEV_IMG3 0x0084 #define ICE_AQC_CAPS_TX_SCHED_TOPO_COMP_MODE 0x0085 #define ICE_AQC_CAPS_NAC_TOPOLOGY 0x0087 +#define ICE_AQC_CAPS_OROM_RECOVERY_UPDATE 0x0090 #define ICE_AQC_CAPS_ROCEV2_LAG 0x0092 u8 major_ver; diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index 34a4b74956..ca9a6baef7 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -2502,6 +2502,11 @@ ice_parse_common_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps, case ICE_AQC_CAPS_TX_SCHED_TOPO_COMP_MODE: caps->tx_sched_topo_comp_mode_en = (number == 1); break; + case ICE_AQC_CAPS_OROM_RECOVERY_UPDATE: + caps->orom_recovery_update = (number == 1); + ice_debug(hw, ICE_DBG_INIT, "%s: orom_recovery_update = %d\n", + prefix, caps->orom_recovery_update); + break; default: /* Not one of the recognized common capabilities */ found = false; diff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h index b2f093c84b..239b1a018e 100644 --- a/drivers/net/ice/base/ice_type.h +++ b/drivers/net/ice/base/ice_type.h @@ -719,6 +719,8 @@ struct ice_hw_common_caps { bool ext_topo_dev_img_ver_schema[ICE_EXT_TOPO_DEV_IMG_COUNT]; #define ICE_EXT_TOPO_DEV_IMG_VER_SCHEMA BIT(2) bool tx_sched_topo_comp_mode_en; + /* Support for OROM update in Recovery Mode */ + bool orom_recovery_update; }; /* IEEE 1588 TIME_SYNC specific info */ -- 2.43.0