Article View: linux.kernel.netdev
Article #20871[PATCH iwl-net 2/5] e1000e: let dev_watchdog reset the adapter after a Tx hang
From: Steffen Dirkwinkel
Date: Mon, 23 Nov 2026 09:55
Date: Mon, 23 Nov 2026 09:55
56 lines
11775 bytes
11775 bytes
From: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
When e1000e detects a Tx hang it stops the queue and relies on
dev_watchdog() to call e1000_tx_timeout(), which resets the adapter.
While the hang lasts it is reported every two seconds, and every report
stops the queue again. Since commit 95ecba62e2fd ("net: fix races in
netdev_tx_sent_queue()/dev_watchdog()") netif_tx_stop_queue() also
writes trans_start, so the 5 s watchdog timeout never expires and a
hung adapter stays offline until the link is cycled by hand.
This was observed on a laptop with an I219-LM (8086:550a) running
v6.19: a Tx hang lasted 104 minutes, with 3120 hang reports and no
"NETDEV WATCHDOG" message, until the link was set down and up.
Stop the queue only if it isn't stopped yet. netif_tx_stop_queue() has
to write trans_start to close the race that commit fixed, so it is
left as it is.
Tested with error injection: setting CTRL.GIO_MASTER_DISABLE stalls
Tx. With this change, I219-LM devices (8086:15b7 and 8086:15f9) were
reachable again after 11 to 17 s in 24 of 24 tries. Without it, an
8086:15b7 device stayed offline in 8 of 8.
igb, igc and e1000 stop the queue in the same way and get the same
change in the following patches.
Fixes: 95ecba62e2fd ("net: fix races in netdev_tx_sent_queue()/dev_watchdog()")
Cc: stable@vger.kernel.org
Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
---
drivers/net/ethernet/intel/e1000e/netdev.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index 6f85dab5c55c..e916eba19fe0 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -1144,8 +1144,12 @@ static void e1000_print_hw_hang(struct work_struct *work)
return;
}
- /* Real hang detected */
- netif_stop_queue(netdev);
+ /* Real hang detected. The hang is reported every two seconds, but
+ * stop the queue only once: stopping it again would also restart
+ * the Tx timeout, so dev_watchdog() would never reset the adapter.
+ */
+ if (!netif_queue_stopped(netdev))
+ netif_stop_queue(netdev);
e1e_rphy(hw, MII_BMSR, &phy_status);
e1e_rphy(hw, MII_STAT1000, &phy_1000t_status);
--
2.56.1
Technical Details
Message-ID:
<20261123-e1000e-tx-hang-v1-2-ecb4309942f1@beckhoff.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369210-linux-kernel-netdev=dewy.ruReferences:
<20261123-e1000e-tx-hang-v1-0-ecb4309942f1@beckhoff.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369210-linux-kernel-netdev=dewy.ru From: lists@steffen.cc (Steffen Dirkwinkel) Newsgroups: linux.kernel.netdev Subject: [PATCH iwl-net 2/5] e1000e: let dev_watchdog reset the adapter after a Tx hang Date: Mon, 23 Nov 2026 10:55:16 +0100 Organization: Usenet Network Message-ID: <20261123-e1000e-tx-hang-v1-2-ecb4309942f1@beckhoff.com> References: <20261123-e1000e-tx-hang-v1-0-ecb4309942f1@beckhoff.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3845084"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:BtkYK3AGQ8RiA4KA9NGtg9e5wsg= sha256:w4qrUBy/qrHupTyZ+8X4Xu3BfEBJGCsVyoYk2YbcH4o= sha1:F3JkifUhdYfADjsEKPlHMer/5Sk= sha256:jBTgCXh168XUZbQLEGFeRE3ajmc/Sfg4AL/jquARQeA= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 7C348125D9A; Mon, 23 Nov 2026 12:56:42 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=steffen.cc X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tabFn4uVcqzG; Mon, 23 Nov 2026 12:56:39 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369210-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=steffen.cc X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 82CB5125D98; Mon, 23 Nov 2026 12:56:31 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 3FCDB340B7; Mon, 23 Nov 2026 09:56:10 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795427767; b=a51WxzLyDrH1tMsYBzR3wci//x3zZ2z0NIr1PjDVrQ0DI01ycGN/OieqvBCx/CY9eCGz NJt5CiCTF06fAu0nLoy7iS4uQBawvmzXgJuIQsaUYRMBJJ6/QF+GlzYN5eQe1n/Ro30Ml 5U9fYFgaaNvsWjUvQDsdB48z/wk+vP3W4SqKEQyvkKXmRZFlXvxr2WgpK9+eUyJ7aNxU7 WV32r1reeq2yH6YgndnO0cIXtMed1bCMP0WAuwmC0WjCmNDi5nw+B7UZrI8mlq0eT8Wtj GX0h/exjEFqyZCPDU9ORXSyfx/1qcAfZjuMS9b73WH9nS8r5iTM8DHH5G0+7OBVn50w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795427767; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From: Date:Subject:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Rspamd-Queue-Id; bh=WL5R4iHTKyqUmYt+PndBZojbg2VKGSQ09Viuh54Sxo0=; b=ncX0y2erp1jpnSu6fdO08jYxxJSKtc8dsL37oc2gvE6H2jL16FVTpfCDxbTZ8tIpP9hD dqRbMzsHbFwPM78op3IF6JmLQ7YodWI6P6Ox+1AmoDI9OCTXsf82WrE64HpWLqqivWATb 5xmdhkNZW4CGcxF6h85yMbIHZ6G5nsXmnZd6MbuYVakz03MoSL84lyxOvMjYV58n/C6TB AUuKE1ONzKoX+qx9dYUv5jjA5ozn3Ljda/rY1tMaJI96auH29NJwplfENO7Y/ytLHqs1u FBWT3PcqCPsMBB+C4PrI3Lp1KsPDtdDVG3nWbbV0LFgbiMFVrYTMMjKVCZWzIahPnEA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=steffen.cc header.i=@steffen.cc header.a=rsa-sha256 header.s=MBO0001 header.b=amWI9P9X; dmarc=pass header.from=steffen.cc; spf=pass smtp.mailfrom=steffen.cc; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8EF6606A32D; Mon, 23 Nov 2026 09:56:06 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=steffen.cc header.i=@steffen.cc header.a=rsa-sha256 header.s=MBO0001 header.b=amWI9P9X X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=80.241.56.151 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795427761; b=UlWtxRkwJgCWoxJkV7m5+PjjbMuIMt56sjeR+LMBMgJ0bTUx5aPwTtXA3uK1zH7RemdG gJe1InL0QG91yFm8X0MenQ75c7VjF1RXQ0RRBnu23tSHMwKvlJTpaSyu6gSS/nX6/CQAI nVye5usaqmHK/XKEZkO7wQdC6Ql4e+OHSHKFTIzpY/2xlPpH1ENB04r11VNj7G8ZsFDL6 wZRIcEUZjZyeusjlXwC65FmghcHNa/mk4mJ1ya3i3XPnm9mAGeG8Mm1lZMPUMcvALh9SI WJXxbVfCh1qDQ7u0przMHNQYVxEMbBbzOGUq4e6jAuCpij9iLNtjlZVhvx9bLv3Zybg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795427761; h=DMARC-Filter:Received:DKIM-Signature:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Rspamd-Queue-Id; bh=WL5R4iHTKyqUmYt+PndBZojbg2VKGSQ09Viuh54Sxo0=; b=Nco3ObwsGGwKHAret+0towvJ29hlo2fLAsXHL7iGLLU0dGs5O5Ll1Vzi0LDJybI0FqoX NHAk+lHpRmqs/H0f2N7JXhfvUXDD4vgcw4QCx9P0TJscgWFBdocRjRcDyUppqDnALHDEG SgfvuWE59RO2folqZe690CLUwIU3+gpOUOL2kSkMGPfnfnpwuBqNysihU/IZxLeOTHOeu LLmO5Yw9bIX0TAKwS2Cn936ZMgjw2tBzr3enB6dDf56yUN1DLc+ecroC+U0UZmYLXOHUF OulDHGWwmPElgJYzYi1rfjwovz58HZ7pFr01WQChBXX14Um2NjfKmuRN52KF7qnKiAA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=steffen.cc; spf=pass smtp.mailfrom=steffen.cc; dkim=pass header.d=steffen.cc header.i=@steffen.cc header.a=rsa-sha256 header.s=MBO0001 header.b=amWI9P9X; arc=none smtp.remote-ip=80.241.56.151 X-Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 681B0606A32E; Mon, 23 Nov 2026 09:56:00 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 681B0606A32E X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=steffen.cc X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=steffen.cc X-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4jY1Xl4knzz8v0b; Mon, 23 Nov 2026 10:55:51 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=steffen.cc; s=MBO0001; t=1795427751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WL5R4iHTKyqUmYt+PndBZojbg2VKGSQ09Viuh54Sxo0=; b=amWI9P9XuEyeCuBwnxQIFyoi8ncYSw9TlWJVNEAlyfqXk/vVFocfMitycX1MHOHQSTnH90 IbcrvlccZYxu/4tTCr6J9w+qCqFNOF/rmE5G4zkqSi/7PdddDfKHNW26PyYcYgyRdVIlZx 3R9DMnvPmIyPgLWs91mZ6JiqxkCevV3z3gIAJID090LgsMupNIhngFno5W+qgqmGGmA5HW MKJ3DEPwutcOI3X920jamimsLQKaM2NKvOrNYrgKm7yldQTWsvYhucUkQL3TI4gOHzhGTe 49DEKSE9OiJShNDzXV1I0Md2TEECpUPVzDoU8BUe6jAsmuMuLq5Txfg2GsXuLw== X-Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of lists@steffen.cc designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=lists@steffen.cc X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261123-e1000e-tx-hang-v1-0-ecb4309942f1@beckhoff.com> X-Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Helge Deller <deller@kernel.org>, Kurt Kanzenbach <kurt@linutronix.de>, Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>, stable@vger.kernel.org X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795427747; l=2275; i=s.dirkwinkel@beckhoff.com; s=20260625; h=from:subject:message-id; bh=0TafWYGRwlZ53tYl0ky61zeXbqbv+riYcpx3ZxKtx6w=; b=AOYdFSIbp+BieMI2SYWa9+otd1iG7wrUjUfS5Aa7sESWLnTnqn3ubS/nN6QrMWA23l4RwSq8k DuFNoqKi3WwDOP34ESb54sDs8oBwhlGmc7oddZLtq/HDa5NsJD1VcXt X-Developer-Key: i=s.dirkwinkel@beckhoff.com; a=ed25519; pk=5DcsaSpVtmm7nCi3Bnw5A4vbXI+sg3hBgt8e2A2U/gw= X-Rspamd-Queue-Id: 4jY1Xl4knzz8v0b