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 89F5A46084; Tue, 14 Jan 2025 11:13:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 744454060C; Tue, 14 Jan 2025 11:13:56 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by mails.dpdk.org (Postfix) with ESMTP id 4F48F4025F for ; Tue, 14 Jan 2025 11:13:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1736849636; x=1768385636; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=t/rflTWxuUSDggzqaFixUbzdCFM9Mbr31R5G5G10bTc=; b=G1LUqVrYhk4Gv01FXcIclnxHVUD47RSAjw4V8qpwWarAeopWyDlYW6OP QvLYfyaa762KAcvecvR7qTuu7Lt38jjUfPbUapuKJzftWzJF5dvF18TW0 +dXlhu9+hwKOtNY83YDToQs296Ory0Vq4xGUkjx+iwy59ZlqKfzN6CJas fDxqgOGthpWupbGTj111FPfvzxfGrJXLpMBPz08QJV78+3MSq7UYb1brl oI1IGx2Ffl73/en5YxUoiOsu2V8gu6uGXZ7brKUqwPywybBjSqGkRQMVl TryoXPOFqJHn/k6HsAkQZIp2oMwg7ZYhtTdUl0A+2PbxMbkFzDeXNfqxS w==; X-CSE-ConnectionGUID: u5SGNhEIRIC5GLpYukGx/w== X-CSE-MsgGUID: SU61ztdNTLm3iTFTXR0h4Q== X-IronPort-AV: E=McAfee;i="6700,10204,11314"; a="36426796" X-IronPort-AV: E=Sophos;i="6.12,314,1728975600"; d="scan'208";a="36426796" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2025 02:13:54 -0800 X-CSE-ConnectionGUID: /zCZbTi+Qhyaa1Pa5eIjaw== X-CSE-MsgGUID: i9gEUEShQA6lSiN6MJ1WwQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="128007349" Received: from unknown (HELO localhost.localdomain) ([10.239.252.210]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2025 02:13:51 -0800 From: Yuan Wang To: dev@dpdk.org Cc: anatoly.burakov@intel.com, vladimir.medvedkin@intel.com, Krzysztof Galazka , Yuan Wang Subject: [PATCH 05/10] net/ixgbe/base: add definition of FW temp event for E610 Date: Tue, 14 Jan 2025 18:10:15 +0800 Message-ID: <20250114101024.159941-6-yuanx.wang@intel.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250114101024.159941-1-yuanx.wang@intel.com> References: <20250114101024.159941-1-yuanx.wang@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: Krzysztof Galazka E610 adapters report overheating using a FW event. Add opcode and event structure to properly handle such events. Signed-off-by: Krzysztof Galazka Signed-off-by: Yuan Wang --- drivers/net/ixgbe/base/ixgbe_type_e610.h | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_type_e610.h b/drivers/net/ixgbe/base/ixgbe_type_e610.h index d0c34c8690..f367ef8a41 100644 --- a/drivers/net/ixgbe/base/ixgbe_type_e610.h +++ b/drivers/net/ixgbe/base/ixgbe_type_e610.h @@ -509,6 +509,8 @@ enum ixgbe_aci_opc { ixgbe_aci_opc_done_alt_write = 0x0904, ixgbe_aci_opc_clear_port_alt_write = 0x0906, + ixgbe_aci_opc_temp_tca_event = 0x0C94, + /* debug commands */ ixgbe_aci_opc_debug_dump_internals = 0xFF08, @@ -1756,6 +1758,29 @@ struct ixgbe_aci_cmd_get_cgu_info { IXGBE_CHECK_PARAM_LEN(ixgbe_aci_cmd_get_cgu_info); +struct ixgbe_aci_cmd_temp_tca_event { + u8 event_desc; +#define IXGBE_TEMP_TCA_EVENT_DESC_SUBJ_SHIFT 0 +#define IXGBE_TEMP_TCA_EVENT_DESC_SUBJ_NVM 0 +#define IXGBE_TEMP_TCA_EVENT_DESC_SUBJ_EVENT_STATE 1 +#define IXGBE_TEMP_TCA_EVENT_DESC_SUBJ_ALL 2 + +#define IXGBE_TEMP_TCA_EVENT_DESC_ALARM_SHIFT 2 +#define IXGBE_TEMP_TCA_EVENT_DESC_WARNING_CLEARED 0 +#define IXGBE_TEMP_TCA_EVENT_DESC_ALARM_CLEARED 1 +#define IXGBE_TEMP_TCA_EVENT_DESC_WARNING_RAISED 2 +#define IXGBE_TEMP_TCA_EVENT_DESC_ALARM_RAISED 3 + + u8 reserved; + __le16 temperature; + __le16 thermal_sensor_max_value; + __le16 thermal_sensor_min_value; + __le32 addr_high; + __le32 addr_low; +}; + +IXGBE_CHECK_PARAM_LEN(ixgbe_aci_cmd_temp_tca_event); + /* Debug Dump Internal Data (indirect 0xFF08) */ struct ixgbe_aci_cmd_debug_dump_internals { __le16 cluster_id; /* Expresses next cluster ID in response */ -- 2.43.5