From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796540951; b=koJtyFvbibpfmwdKSDJ1ZakeYca57O/Ux/X7GgwSnJNPAKnvGb6lrZX6ZedLjrb8zG8N 3e8k5B92+Ktl3EQN57r0mMlsLaWOEWLZsLOZQhn2FYlK5gBJJ2EWjFw3CXR66INcFmhgi 9h7YIpaIsy+DyQTfDEzngrCFTxIQDX12yiBlooberIMZTnML3ml6A9kPIfGV9jmO2GIcR iuPETTUXmee/C03l+nMfhpm3+Tq7C+02xRzTUnA7Z62MUy9arSZMNrk9/yMlAFAvZRqEB C6W12Sf7Aaybd2fQ86mYtjqy5Q5rLXlnz9CUSdWrkG3nB8q0p74GMB4d6AH1LrGeajA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796540951; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=CA/QTXeQ77Arb1Ic4KXv5/fp7tebDw/2r/A4QZ7reAQ=; b=AvvJHHF368QzP+3TvFEWi0HUsBe6nSVA3wKHjRTo5/xkf6UspiN9NVUM6myNcNbMC9A9 okC0I8Fvh/GPZ7jHxdtDWVO4vArMr/SUuvJ5E47Jn71M3vopUETT0H4gaFSp9GAaL/rgt 56Qn2djrnPAQayVP16W6F79PxiKK5ZfwuexLBpJBp0qMzXk4F7G/SvB4WbOKUTQ9ze447 QGDQLZx+OIPWhCAuBza8idGHVza+0XA3ne0KjpMFq1kQXlSyFWVp1bEdqpW9RdnAxOObH dxoUSlg8eglXv+Si+/qHr0KWvkFctBUmyqMgxyxiaudvnfcFlZnZPbQqwsP3i/WmAyQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=fzKW9F0B; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 8CD33606A321; Sun, 6 Dec 2026 07:09:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8CD33606A321 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=fzKW9F0B Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id D35E0C026F4; Sun, 6 Dec 2026 07:09:20 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 09A40604C0; Sun, 6 Dec 2026 07:09:08 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 289A411EA179C; Sun, 06 Dec 2026 08:09:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796540947; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=CA/QTXeQ77Arb1Ic4KXv5/fp7tebDw/2r/A4QZ7reAQ=; b=fzKW9F0B/GQ8PZfMNwvC/q1N2TrQoRAf6rYyaFB62i1qkRAQXKZrTyG/GpDBc0YzfansQ7 Uq6jpJEyYjAhEOosek82Qlo+t1bD90XkYULJdPmhqc5CLzImQOcuAdrU3cP6lTGS+WELZr qdz33hnaa8cx84qPzKKR6AXGhEhMFw7W0tKl6j6zlZtZMVbcdxJu2RJzO8FswPHuSsMRkv xVb1dCPIwlB4vFgkAcpP6iNCHwBKF5NbIG4QPEeAyQRlxwElNO5+wAPJXpZvR6xQxDs1Rx wbv+p/8RHEnhUAJavA9ZKYLGl1slFW4JccGstDE7v0V2S/sxo+6kQAiOHdVSIg== Message-ID: <33b49886-7cfb-47af-9e71-3014ba1b39cc@bootlin.com> Date: Sun, 6 Dec 2026 08:09:02 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v1 1/1] r8169: disable EEE on RTL8168h/8111h To: Oleksij Rempel , Andrew Lunn , nic_swsd@realtek.com, Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Dennis Piecha , stable@vger.kernel.org, kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20260925071040.2137178-1-o.rempel@pengutronix.de> Content-Language: en-US From: Maxime Chevallier In-Reply-To: <20260925071040.2137178-1-o.rempel@pengutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 Hi Oleskij, Dennis, On 9/25/26 09:10, Oleksij Rempel wrote: > Force EEE off on the RTL8168h/8111h (RTL_GIGA_MAC_VER_46) at PHY connect > with phy_disable_eee(). > > Commit 202fef9bbbf5 ("net: phy: realtek: fix EEE advertisement write on > the internal PHY MMD path") made EEE actually advertise on the generic > Realtek PHY; the write had been a no-op before. On the RTL8168h that > un-masks a latent defect: once EEE negotiates, RX silently stalls after > ~7-20 minutes. The carrier stays up, no counter or dmesg moves, and only > "ip link set down/up" recovers it; disabling EEE keeps the link stable. > > Root-causing the RTL8168h LPI/RX path needs hardware not available now, so > disable EEE for this version. Use phy_disable_eee() rather than dropping > the version from rtl_supports_eee(): the latter also skips > rtl_enable_tx_lpi(), whose disable branch clears the MAC TX-LPI bits (ERI > 0x1b0[1:0]) on link up. rtl_hw_start_8168h_1() does not clear them (the > RTL8402/RTL8106e init does), so a warm reboot from an EEE-active state > could otherwise leave TX-LPI asserted while the PHY no longer negotiates > EEE. Keeping the version EEE-capable preserves that clear path. This also > covers the RTL8168M, which shares RTL_GIGA_MAC_VER_46. I recently got a bunch of quad-ports RTL8168h/8111h cards with the same version info that you report, and I'm using these to test EEE kselftests I'm planning to upstream next week. I tried to reproduce this issue with multiple peers : - Intel i350 (igb driver) - mvpp2 + marvell 88e1510 PHY - mvneta + 88e6341 switch and its internal PHY - mvneta + 88e6176 switch and its PHY I tested multiple loads: just pings, high-throughput tests with iperf3, mix of UDP + TCP + random delays, this has been running for multiple hours each with this patch reverted, and I didn't reproduce any of these stalls. Any chance the original problem was on the link-partner side maybe ? What was the partner's HW (PHY + MAC) in that case, and what kind of traffic did you use to trigger that ? It's not very urgent on my side, I have enough i350 ports to run the stmmac CI and the eee tests when they land, but TBH the realtek cards are cheaper, and if I could use these in my setup to test EEE that'd be awesome :) In the meantime, I'll keep running long tests with this patch reverted, see if I can reproduce that... Maxime