Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Dima Ruinskiy <dima.ruinskiy@intel.com>
To: intel-wired-lan@lists.osuosl.org
Cc: dima.ruinskiy@intel.com, anthony.l.nguyen@intel.com,
	Michael Edri <michael.edri@intel.com>
Subject: [PATCH iwl-net] e1000e: fix TX hang after failed S4 hibernate cycle
Date: Thu,  3 Dec 2026 11:57:51 +0200	[thread overview]
Message-ID: <20261203095751.1446451-1-dima.ruinskiy@intel.com> (raw)

When hibernation fails for any reason, the freeze/thaw cycle leaves the
e1000e adapter in a broken state: the PHY Reset Asserted (PHYRA) bit
remains set in the MAC Status register, preventing TX descriptor
processing, leading to a persistent TX hang.

In e1000e_pm_thaw(), call e1000e_reset() before e1000e_up() to clear stale
hardware state after the freeze/thaw cycle. This matches the resume path,
which already calls e1000e_reset() in __e1000_resume().

Fixes: 2800209994f8 ("e1000e: Refactor PM flows")
Co-developed-by: Michael Edri <michael.edri@intel.com>
Signed-off-by: Michael Edri <michael.edri@intel.com>
Signed-off-by: Dima Ruinskiy <dima.ruinskiy@intel.com>
---
 drivers/net/ethernet/intel/e1000e/netdev.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index e5508ae5812e..e79e63681367 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -6927,6 +6927,11 @@ static int e1000e_pm_thaw(struct device *dev)
 
 	rtnl_lock();
 	if (netif_running(netdev)) {
+		/* Reset adapter to clear stale PHY state
+		 * after freeze/thaw cycle. Without this,
+		 * a failed hibernation leaves the TX path hung.
+		 */
+		e1000e_reset(adapter);
 		rc = e1000_request_irq(adapter);
 		if (rc)
 			goto err_irq;
-- 
2.34.1


             reply	other threads:[~2026-12-03  9:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  9:57 Dima Ruinskiy [this message]
2026-12-03 10:23 ` [PATCH iwl-net] e1000e: fix TX hang after failed S4 hibernate cycle sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203095751.1446451-1-dima.ruinskiy@intel.com \
    --to=dima.ruinskiy@intel.com \
    --cc=anthony.l.nguyen@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=michael.edri@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox