From nobody Fri Aug 7 14:27:09 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hGmgl60xGz6nB8x for ; Fri, 07 Aug 2026 14:27:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hGmgl1hGkz3ThW for ; Fri, 07 Aug 2026 14:27:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786112835; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qZ/I5lknNw5mIZarXhquLbmeMlqXOdubtlyqIiT3MRQ=; b=d61cMyPFbnR14anRU4Trd9taOlJXNgtUxgvw2hdaTwl7V2FhbgQ6+NFP3XikrPTg95SYeI Ke1S+5HEgBsm9uk+1JEennRi3Fh8WAATCKW6i9vdEWWNAnVVyARpJUhUAOYgwaU3k5c7OF gyr6lz/gAtpd6a3WuZVU1pdcodDtQqYeVCgofrRh6YiLZC5erHlRlh6XAAVI3/2wikVAoD q98U2La2txUV0TEMJLhuVYQrUFFuQu0hUf0OB7+1+9tsncMpSqPGk7VFw/YLksC/cUcdCy VOc5bcBssL61YjMocYWCsUMqf97kh8wlR+pXHqs1qz+b0PmazptnSJ6iRxGcLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786112835; a=rsa-sha256; cv=none; b=jNt9iVNEtT/pRUMHWHZ+IhJQckzvzDYndhhwkRph5FR/i7IY5DaU2bgo7SgtcM5EmTlRcz XlNIFrecxVlh8x5BcmAQD+B2CH9Yj4LBiYodf6ofpi4ZFMUyNmFFrTeLUdvxF4bw5dG4rf QAa8OjUKkjNe7al2FrrRzdQrCmObQFjBuEEaZUex73/6AWNVmAZW4NstL7NSJ9bU8S/ngh enrbocLPNyPn25/EGQlQnxHhSBPGkD11f86LHqQpSsPbixPm7gNI86GEgXxULkMPwfYZJv smbZ89CoL3REcmCE3XNJP7AmLqtnZaEql+kYCR9GjlL0vyerT86JUesboKqJNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786112835; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qZ/I5lknNw5mIZarXhquLbmeMlqXOdubtlyqIiT3MRQ=; b=mKedLcPX05YTF6yW4HCVZbMhfzVMARbbzIbrf1KekN8z3WExMkbe7j0aSWm43KF19LAvhx YFwv9OqINSnySTh3ROtkoxcXzRvaaABJH4XVHn4vC00nHB9oDN/WiCkuuwFHUV3EbXeGkc hU0ty0Oag3+jp6Ik1axUAIg4jIae1HuMJ6LonHESYigI1Tw4lqKpBZBYhfKITwmAPn0qVK zH/EVoczBeCrR7iR1PY7tLSLEaFCMrORpsHxjbcm9kX1ekFVoefmYNZktPjHBT2TiEdpM+ 2W30bgdakYO8805gb7EAz4bRkKuAPc/WBuogyB1HTECwG2hWPJ5CSSKM2xRawg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hGmgl0FLtz19V9 for ; Fri, 07 Aug 2026 14:27:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 44a15 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 07 Aug 2026 14:27:09 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: d025b84268ec - main - ixgbe: Apply the 82599 D3 link workaround only for D3 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d025b84268ec18d55c2d3088729cf4ad7673ecac Auto-Submitted: auto-generated Date: Fri, 07 Aug 2026 14:27:09 +0000 Message-Id: <6a75eb3d.44a15.5e2f06d9@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=d025b84268ec18d55c2d3088729cf4ad7673ecac commit d025b84268ec18d55c2d3088729cf4ad7673ecac Author: Kevin Bowling AuthorDate: 2026-08-05 14:33:32 +0000 Commit: Kevin Bowling CommitDate: 2026-08-07 14:26:41 +0000 ixgbe: Apply the 82599 D3 link workaround only for D3 ixgbe_stop_mac_link_on_d3_82599() implements the workaround for 82599 erratum 33. It forces incompatible auto-negotiation settings before the device enters D3, and reset clears them when returning to D0. ixgbe_if_stop() is also used for ordinary interface reconfiguration and recovery. Those paths do not enter D3 and should not program this power-management workaround. They continue to stop the adapter and disable the transmit laser. Move the call to ixgbe_setup_low_power_mode(), after ixgbe_if_stop(). This preserves the required ordering for detach, shutdown, and suspend while avoiding the D3 settings during ordinary restarts. MFC after: 2 weeks --- sys/dev/ixgbe/if_ix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c index 96188ca7ef7f..5ab30a8054a9 100644 --- a/sys/dev/ixgbe/if_ix.c +++ b/sys/dev/ixgbe/if_ix.c @@ -3788,6 +3788,10 @@ ixgbe_setup_low_power_mode(if_ctx_t ctx) ixgbe_if_stop(ctx); } + /* Disable the 82599 link only when actually entering D3. */ + if (hw->mac.type == ixgbe_mac_82599EB) + ixgbe_stop_mac_link_on_d3_82599(hw); + return error; } /* ixgbe_setup_low_power_mode */ @@ -4758,8 +4762,6 @@ ixgbe_if_stop(if_ctx_t ctx) ixgbe_reset_hw(hw); hw->adapter_stopped = false; ixgbe_stop_adapter(hw); - if (hw->mac.type == ixgbe_mac_82599EB) - ixgbe_stop_mac_link_on_d3_82599(hw); /* Turn off the laser - noop with no optics */ ixgbe_disable_tx_laser(hw);