From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B3CC29AB1F; Mon, 5 May 2025 22:19:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746483567; cv=none; b=CCrIi9BkopW+H3PVdKNgqVlnNRNnso7XFthPaVluviWhdi0HmmtIRMcSgnpbcs6b+dHYxpjnpjvFMJc3YSyTk9i7+8BqGOmwR0y6aqIW4UUrt1RZzLPySEx4/8hwvQWRLhA3V7p9ERckDAYwXW2YInkBQYw8YAd3XeTqNzeFm80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746483567; c=relaxed/simple; bh=/92+ydjZ4xWbLMNc2vXLjW/dIk+/V2geXTvO+9uyKt8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=EdDwL5adeNAqVmc+uOuZichkHRq22+Qh9Dl1Rlzinf7jiB7j3nvbEWjIZsVmaTBl3Q6F2ptvuTjLuaSGZ6J6uDZcTQFzzWyNN1/cY/xqi3DeRm6nsFrHvHHEdzWnYSAqQCwT+3ZKCpDD7TdZq5f+WTh3ATsLUj+nF+Oga0ZOABA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ikoHSIrq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ikoHSIrq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE985C4CEED; Mon, 5 May 2025 22:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746483567; bh=/92+ydjZ4xWbLMNc2vXLjW/dIk+/V2geXTvO+9uyKt8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ikoHSIrqITGuoRADTakHc1blZXpS6Kj+UMI+PP8bhizbyDkwHadB3o19s7+3Etlcr JL18z5ZzY0Lt1HvGr+IFjPS0QHA/lHCLmxp3qEgsmmJqmW6u78V5wnymDmkmP5y99v UXN6yZN3y63TtISA7++NXQorR7UR8RZNc0ntRDZ2F54eWKbSwDpam250T72z3tP6+/ dXUc8lhFP7Yrs/rK7N1hmUNPhUFwgx2TSWqu3qRGDzag/fYcvYdGcTcziHCVEe5T2s hMeb4I8Fc0bFO/r4ByGroCW3WDZJxD2DscWCDy32UgDIyAcstNqPrnR5+xrhRSsmm4 aA21gombeGF9g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jedrzej Jagielski , Przemek Kitszel , Mateusz Polchlopek , Simon Horman , Jeremiah Lokan , Tony Nguyen , Paolo Abeni , Sasha Levin , andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 6.14 118/642] ixgbe: add support for thermal sensor event reception Date: Mon, 5 May 2025 18:05:34 -0400 Message-Id: <20250505221419.2672473-118-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250505221419.2672473-1-sashal@kernel.org> References: <20250505221419.2672473-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.14.5 Content-Transfer-Encoding: 8bit From: Jedrzej Jagielski [ Upstream commit affead2d904e8f82c0b89e23b3835242eb8c3e1a ] E610 NICs unlike the previous devices utilising ixgbe driver are notified in the case of overheating by the FW ACI event. In event of overheat when threshold is exceeded, FW suspends all traffic and sends overtemp event to the driver. Then driver logs appropriate message and disables the adapter instance. The card remains in that state until the platform is rebooted. This approach is a solution to the fact current version of the E610 FW doesn't support reading thermal sensor data by the SW. So give to user at least any info that overtemp event has occurred, without interface disappearing from the OS without any note. Reviewed-by: Przemek Kitszel Reviewed-by: Mateusz Polchlopek Reviewed-by: Simon Horman Signed-off-by: Jedrzej Jagielski Tested-by: Jeremiah Lokan (A Contingent worker at Intel) Signed-off-by: Tony Nguyen Link: https://patch.msgid.link/20250310174502.3708121-7-anthony.l.nguyen@intel.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 ++++ drivers/net/ethernet/intel/ixgbe/ixgbe_type_e610.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index 467f81239e12f..481f917f7ed28 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -3185,6 +3185,10 @@ static void ixgbe_handle_fw_event(struct ixgbe_adapter *adapter) case ixgbe_aci_opc_get_link_status: ixgbe_handle_link_status_event(adapter, &event); break; + case ixgbe_aci_opc_temp_tca_event: + e_crit(drv, "%s\n", ixgbe_overheat_msg); + ixgbe_down(adapter); + break; default: e_warn(hw, "unknown FW async event captured\n"); break; diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_type_e610.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_type_e610.h index 8d06ade3c7cd9..617e07878e4f7 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_type_e610.h +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_type_e610.h @@ -171,6 +171,9 @@ enum ixgbe_aci_opc { ixgbe_aci_opc_done_alt_write = 0x0904, ixgbe_aci_opc_clear_port_alt_write = 0x0906, + /* TCA Events */ + ixgbe_aci_opc_temp_tca_event = 0x0C94, + /* debug commands */ ixgbe_aci_opc_debug_dump_internals = 0xFF08, -- 2.39.5