From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796552878; b=vQDcUDIvbAIG7ucWOSVVjuujPJkA7JnWu3W1oahbgin/71nhr9LuuTvZnj/DOJt4gqi0 vBsdTgMC4eBYVhiOLHDPgdukjN7z3TGfmMGEe5kGjPGX3pI5ESJjOVxKoGL1YNtVbProx EA1eZNZouj+Ycobe1QyxeVBsEHlB0op/xhs7IDayGBhW28YhRAhOs9g55HCInRxgN0+D1 wpo5L9OhfZj68iTF5fOl8b/ZSgApPZgiSw6Avfrm/8E1teBDSF9CY8qcwWxpwAfPjJjUW N7OhpNZhyfY1P8+LlwQ7JkzP/NuBiO7hBSJw30DfTyrIJZYbDXiunsTWtMqrcCmPwIA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796552878; h=DMARC-Filter:Received:DKIM-Signature:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=6A18uOZg4wFc2EkB9XZKklrSeD+BMyLY0Dxw4qx6KhU=; b=BLl48nKXkves6djP2P9iaAW26jPLJaJ+wk3wr+bv6QVyuSqFTDgWrdrxksaJJo4E55Ro P/OGSL8eZbqs5LOHeKqEqSnkrbVdHTvCvQBD+V1yFjAsHBcgLD0ZDg9Y55pfnL19h8DHB 0Me19++agmPFr/Al1PcBJlRva6l4v3NFld8bK2Lb3i7cRIWarhzVX4ZuRd/LsluASFvxA i8f03So7AcfBFD5PIGig4myalorsZbwwUQ8AQNYHdO6RbpRSXvo0FiI8mCPkmfBghvfm2 CdttKDMa6FqluWejdD5oFHztHU6nm366ouFSw43slbeyY9IfaXlAoCmh+eEc6x9t6MA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=UT2Zh9Eu; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13]) (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 7AD40606A31F; Sun, 6 Dec 2026 10:27:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7AD40606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=UT2Zh9Eu Received: from ptx.office.stw.pengutronix.de (ptx.office.stw.4.pengutronix.de [10.9.0.3]) (Authenticated sender: relay-from-ptx.office.stw.pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id 3EC462027D6; Sun, 06 Dec 2026 11:27:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796552868; 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: in-reply-to:in-reply-to:references:references; bh=6A18uOZg4wFc2EkB9XZKklrSeD+BMyLY0Dxw4qx6KhU=; b=UT2Zh9Euc8oiPILviI9MvbRkhpuHUaSpOHPwCJ0wKTbXWyONj6I88hYJTEkh7BuJIONsFT mkhFQHlTJn9nljPlj76Fcy7cHwZI125mgSQ/I8aEklFvn+XmGLqWfyBxIu4C2onwyOTaE5 xQXZo9uk1uA4wKdUt9Uuc7YoV8bQ1xhBK0jfB2UVK4pwHeZlLpqTVYEI9B34QS0VtJfvbq N02YBFC/Es9w+0/ZSzSuyztJHGQEoEHINjQDZFgG8R+T54k/3+qDcY88hLXLpz1cRcfrE2 qctdi5ueF/tXBwzGH6CDf/CrpAcCpEi0tROZYj+mHnzY5YcSsnNUXblDwV/s8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796552868; 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: in-reply-to:in-reply-to:references:references; bh=6A18uOZg4wFc2EkB9XZKklrSeD+BMyLY0Dxw4qx6KhU=; b=cLthAtB4kcO/QeNDGEdDtO7JbS7DXNqr2p1RbVxTWF3GQP6xJxpwxlkA8kj0Ki7MbW67jk 9MD0BQ/4V9Wk9BK581+Y2en9O9C0F84+n3hfGwxKjEhDWS85PNY09aYGyuOXMbmwURJBqF 497fYkh8VkwOGypOjwQqxHpEaiGkr7YEiYhBTr+DJmha+3z2H8Z4M46mKFSoe3s79Epm3g Ppyww/bIoLHQM7W+PdUhLCnHSve6SzFDuyMNerGzkI4pppvG71Frc0OhfAygocxsTeDK96 lvqLmL//bkHwCkXpAWuTZbGN3w4f3C/JbmbLILqihA8uT7utVi8M+vNDm/I/Mw== ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1796552868; a=rsa-sha256; cv=none; b=DU09CM7ckvdSZYJqevfda0Eu3CKXSL+yj7Re5nG0UWGjDI+iPJ2Cm3BBofEGtP4nUpgz6Y LvT2j6XJPw8wBy0j1g2Sqj2tLD9ZTEVkDEubcOcA1NAZ8BrNws2vZGbiqeDPdiWJilcsRK tVpBxP8AohjvShdo6zxuZ6UjiQxtouK4sFvqbGadfI7vt/WfzZ2nSkbuQWBNkTTq2XKAiw OajxT3arkN6Pao6gOV3NRZ9FPkYQISeBPu1jIKM8xGtW3poxKowYsxjWIF0jShwsE8s3bQ q3PQ1a8mMP2EKg7KYTDrK+1QF43c+SfoQCPyIbAwkf5LXgilzC4Ym7tsqS6dnQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=relay-from-ptx.office.stw.pengutronix.de smtp.mailfrom=ore@pengutronix.de Received: by ptx.office.stw.pengutronix.de (Postfix, from userid 1058) id 0A15E1BFAB5; Sun, 06 Dec 2026 11:27:47 +0100 (CET) Date: Sun, 6 Dec 2026 11:27:47 +0100 From: Oleksij Rempel To: Maxime Chevallier Cc: Andrew Lunn , nic_swsd@realtek.com, Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Dennis Piecha , stable@vger.kernel.org, kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net v1 1/1] r8169: disable EEE on RTL8168h/8111h Message-ID: References: <20260925071040.2137178-1-o.rempel@pengutronix.de> <33b49886-7cfb-47af-9e71-3014ba1b39cc@bootlin.com> X-Mailing-List: netdev@vger.kernel.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-Disposition: inline In-Reply-To: <33b49886-7cfb-47af-9e71-3014ba1b39cc@bootlin.com> Hi Maxime, On Sun, Dec 06, 2026 at 08:09:02AM +0100, Maxime Chevallier wrote: > 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. Thx for diving into it! > 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 would recommend to use some device having a LPI counter, which report amount of transactions to the Low Power Idle mode (and/or reporting time spent in the LPI). For example LAN7850 support it. Otherwise, you will need to attach oscilloscope and measure signal on the MDI side. Active EEE will be visible without any advanced equipment. See: https://youtu.be/jfm0GoPu3jM?si=wHtlgta6Qt2zeJM3&t=1185 > 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. The combination of tx-timer configurations and link-speed should be correct. In the 1000Mbit mode, the link will be switched to the LPI , only if both timers on both link sides are agree. Means, if peer A has short tx-timer and other side has long or infinite timer, then LPI well be never activated. Active EEE do not mean active LPI. In 100Mbit mode, we will get separate LPI behavior on each pair. And may be higher chance to trigger something. > Any chance the original problem was on the link-partner side maybe ? It can be very high chance. Other questions is, if the system has external or internal PHY. If external, do it has active SmartEEE? > What was the partner's HW (PHY + MAC) in that case, and what kind of traffic > did you use to trigger that ? I guess, any traffic with measurable LPI effects. If you can measure MAC+PHY power consumption (or at leas system wide power) it will be great. Except of this, I can imagine that cable length and/or injected noise can trigger some of issues. > 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... Probably you will need to monitor link drop counts and any kind of packet drops (corruptions too). Best Regards, Oleksij