🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #27238

[PATCH net-next v2 0/4] net: add Giga Lite (500baseT2) support for RTL8168H/EP/FP

#27238
From: Hee-Suk Kim
Date: Sat, 05 Dec 2026 04:00
89 lines
14709 bytes
Giga Lite is a Realtek proprietary mode which allows links of up to
500 Mbps over two-pair cabling. In South Korea, it is widely used to
support 500 Mbps plans by most ISPs. The vendor driver [1] sets PHY
page 0xa42, reg 0x14, bit 9 to allow it on RTL8168H and FP. The driver
does not handle RTL8168EP but I confirmed the same works for it by
setting the PHY register via SIOCSMIIREG on an SK Broadband 500 Mbps
plan [2].

With bit 9 set, the link still came up at about 470 Mbps even when
only 10/100 was advertised. As suggested by Heiner and Andrew, this
series exposes it as a new link mode,
ETHTOOL_LINK_MODE_500baseT2_Full, with SPEED_500. The PHY driver sets
bit 9 when 500baseT2/Full is advertised with autonegotiation enabled,
and clears it otherwise. The mode is advertised by default, and users
can turn it off with ethtool without touching the other modes.

Bit 9 is not reflected in any C22 advertisement register, and the PHY
negotiates Giga Lite on its own. As a result, the link partner's
support for it is not visible, and 500baseT2/Full never appears in the
link partner advertised modes. This only affects reporting, as the
resolved speed is read from PHYSR.

The vendor drivers for RTL8125, RTL8126 and RTL8127 set the same bit,
but they read the link speed from the MAC, so it is not confirmed
that PHYSR reports 0x30 on those chips. They also use a different
PHY driver entry. They are left out of this series, as are the other
Lite modes (OCP 0xa5ea) and 1000baseT2/Full.

[1] https://github.com/mtorromeo/r8168/blob/b3e24e4aa74a3561618d0abf01b708bd55def57a/src/r8168_n.c#L6375-L6390
[2] https://www.tworld.co.kr/web/product/callplan/NI00000567

---
Test results on a ThinkPad T14 Gen 5 (RTL8168ep/8111ep, XID 502) with
an SK Broadband 500 Mbps plan ("before"/"after" = without/with this
series, throughput by fast.com):

  kernel  advertised             bit 9         PHYSR  reported     throughput
  ------  ---------------------  ------------  -----  -----------  ----------
  before  10/100/1000            clear         0x10   100           94 Mbps
  before  10/100/1000            set manually  0x30   100 or 1000  470 Mbps
  after   10/100/500T2/1000      set           0x30   500          462 Mbps
  after   10/100/1000            clear         0x10   100           93 Mbps
  after   10/100/500T2           set           0x30   500          461 Mbps
  after   10/100                 clear         0x10   100           93 Mbps
  after   autoneg off, 100/Full  clear         0x10   100           93 Mbps

As ethtool cannot show Giga Lite for the link partner, it reported
only 10/100 in the link partner advertised modes in all "after" cases,
even on a Giga Lite link. The advertisement set with ethtool, with and
without 500baseT2/Full, was kept across ip link down/up and across
suspend/resume (s2idle).

---
Changes in v2:
- Split into ethtool, phylink, PHY and MAC patches (Heiner)
- Add ETHTOOL_LINK_MODE_500baseT2_Full and SPEED_500, and report a
  Giga Lite link as 500 instead of 1000 (Andrew, Heiner)
- Gate bit 9 on 500baseT2/Full instead of 1000baseT/Full
- Enable on RTL8168H and RTL8168FP as well (Heiner)
- Explain Giga Lite in a code comment (Heiner)
- Link to v1: https://lore.kernel.org/r/20261010135356.85454-1-hskim@dilluti0n.com

---
Hee-Suk Kim (4):
      net: ethtool: add 500baseT2 link mode
      net: phylink: add MAC_500FD
      net: phy: realtek: add Giga Lite support
      r8169: enable Giga Lite on RTL8168H/EP/FP

 MAINTAINERS                               |  1 +
 drivers/net/ethernet/realtek/r8169_main.c | 24 ++++++++++++++
 drivers/net/phy/phy-caps.h                |  1 +
 drivers/net/phy/phy-core.c                |  4 ++-
 drivers/net/phy/phy_caps.c                |  7 +++++
 drivers/net/phy/phylink.c                 |  1 +
 drivers/net/phy/realtek/realtek_main.c    | 52 +++++++++++++++++++++++++++++++
 include/linux/phylink.h                   | 29 ++++++++---------
 include/linux/realtek_phy.h               | 10 ++++++
 include/uapi/linux/ethtool.h              |  2 ++
 net/ethtool/common.c                      |  3 ++
 11 files changed, 119 insertions(+), 15 deletions(-)
---
base-commit: d5cf954cebe4f175dfd834e1dc471a3aa203ec7d
change-id: 20261116-giga-lite-2cf802c97bd4

Best regards,
--  
Hee-Suk Kim <hskim@dilluti0n.com>
Technical Details
Message-ID: <20261205-giga-lite-v2-0-5b84410edb9f@dilluti0n.com>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mi.newsdeef.eu!srv.newsdeef.eu!newsfeed.endofthelinebbs.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377823-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mi.newsdeef.eu!srv.newsdeef.eu!newsfeed.endofthelinebbs.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377823-linux-kernel-netdev=dewy.ru
From: hskim@dilluti0n.com (Hee-Suk Kim)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v2 0/4] net: add Giga Lite (500baseT2) support for
 RTL8168H/EP/FP
Date: Sat, 05 Dec 2026 13:00:35 +0900
Organization: Usenet Network
Message-ID: <20261205-giga-lite-v2-0-5b84410edb9f@dilluti0n.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2949233"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:D8c9thY/WtuTjsOejF6Odrg+SlM= sha256:r02nSA8tXi5IPsp5i2LubuSahH3+xra6OXmDt72oM50=
	sha1:mXQmVjf83t+oaogcrNjthcD0rdU= sha256:FnIiuRSZ5bQq31Xl/Brien7e9f7ra0vQiWaURV7Kdpg=
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 0F230117D63; Sat,  5 Dec 2026 07:01:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.098
X-Spam-Status: No, score=-3.098 tagged_above=-9999 required=6.31
	tests=[DKIM_INVALID=0.1, DKIM_SIGNED=0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.001, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (2048-bit key)
	reason="fail (message has been altered)" header.d=dilluti0n.com
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 1iv-A7m6zRLu;
	Sat,  5 Dec 2026 07:01:50 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-377823-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=dilluti0n.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id A33B6117D1F; Sat,  5 Dec 2026 07:01:42 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 9960B2A9DB; Sat,  5 Dec 2026 04:01:32 +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=1796443278;
	b=gtbJ0P4uuM6ItUPvyscyX4JOxZ3yXz0RmX6dzVcMmgd3kLEYFJgGg98B/PL8PI50QKI6
	 PkNIh5PrMdmmPlCaI0E3ciwKpNfjbZz0WNOqCSazhFHY+XmLiD71x9mwyL5E8Cu48Bdxs
	 0pJ7hYQSOWGkQOp/NFqYW2AnDhBNTGKUJ+5il0dN/hv/fkSLS4cpxYSwjERuQoGmOGSYC
	 xK7bPxjE45mz3xX6vOXG7rv0sECOXn0HEpEIPr7DbcGxibXOq7RwVsXsse0itYQSNhqoF
	 PFNX4XaCQ0pXPOI4RnSrNV8aZLosJ9MtnjOUUd226F8MofeIoM680KFoPaSfwgTQyBA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796443278;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Received:
	 From:Subject:Date:Message-Id:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking:
	 X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:
	 X-Report-Abuse:Feedback-ID:X-smtpcorp-track;
	bh=HzSWCKE//qSklcG64MwUuMetjn1bzJ1mcBGJ/78m09s=;
	b=kHT01R6i6oT2C6cbBWWwYZxRgfPjtjKWUrcDGzSWulpcMy/NNa2zuTVLqls4TSl83FoO
	 qvXfhcLf7O4L1sLWgQIjFWWdeLmBA7O247lMSX09MeUSlYE1R5eplOMvaZyAGQbNEKD2M
	 PxWcHVHi8EN2tWpaBr6jlcoL8FUduzKhDqq8ZGmy1A1KsWaiBo8XQIyavla6+xqmUqOAy
	 JBKBqxOHKmnJQcNWnUiAZEZJWzlosZyzAusUgVsw374A1EiW0wPUnTe2t/H6gOrvmIvfT
	 jYDBKv7+yHgYHGOZxvTZoWjYW+rW3T5NnjM/OOR4rATluX9EXMen9QC+/ab6TOdy86A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=fail reason="signature verification failed" header.d=dilluti0n.com header.i=@dilluti0n.com header.a=rsa-sha256 header.s=s840244 header.b=cv5RZ3PY;
	dmarc=pass header.from=dilluti0n.com;
	spf=pass smtp.mailfrom=em840244.dilluti0n.com;
	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 6611760A2615;
	Sat,  5 Dec 2026 04:01:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=fail reason="signature verification failed" (2048-bit key, unprotected) header.d=dilluti0n.com header.i=@dilluti0n.com header.a=rsa-sha256 header.s=s840244 header.b=cv5RZ3PY
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.71.231
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796443277;
	b=Gf1/2cOPBZm3DIZ45eigvB9JcvB7R09N7u1y0F1CJqIze8bXuV3e4aJCdOYpk2yxWAx5
	 UmU/k5ZPBBiju7bOAUqwxKSj8VJwBVlVZFcHUHBcyLaU5EAptpCCgCVhoqTDbCNNALCVk
	 Iinx4JXJ0H291ntURnFpCpXW1U58GLWx8vScd5zk6bw1bdPKpEnAcecsVjKYGPAW8jNNy
	 KwixdMNztpeWG2Ff8L5iFO/rTo0jTWFPlQUE/NA26sUitC26rC+MENtU3nWw3XgprjWhZ
	 AeC46yVmVJ8NvxMvVgBRlAS7LlQQ0rJj209hKJaiNRnim+ONz3jt81BRvsj6NVwFpqQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796443277;
	h=DMARC-Filter:DKIM-Signature:Received:Received:From:Subject:Date:
	 Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding:
	 X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:
	 X-Developer-Key:X-Report-Abuse:Feedback-ID:X-smtpcorp-track;
	bh=HzSWCKE//qSklcG64MwUuMetjn1bzJ1mcBGJ/78m09s=;
	b=gIB+7DOWgLiG6OVhWkvlE57uPYKPC+BAkKAelN4PIQCgHyz3OHhoPSqYNuC6DZkKpFuF
	 G5csbXSK3Z2EqR9xgn6JIgD3lX9WICs7jKOOYXSPZeDuikMRWejXlQq698sJ+d2ccP147
	 2cqRYqnXwoaDhT+9gMFiEOTFqe/pXcovPBcNW/Pp/1HziK2M8+OM4wDNenyVyHdFKQ7UK
	 2QXYpeiLo0Dju6o/w0L8tof2t6wNebKpZW3plcQBHNJHqM5BVsQNa+ar5fj8oUomob5NQ
	 TC452RsRNSvU9bvFokeHQBLD5F6pUmXHpfp/wpMSOdDZST9D79JURIn2FiM2Ng9H/cA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=dilluti0n.com;
	spf=pass smtp.mailfrom=em840244.dilluti0n.com;
	dkim=pass header.d=dilluti0n.com header.i=@dilluti0n.com header.a=rsa-sha256 header.s=s840244 header.b=cv5RZ3PY;
	arc=none smtp.remote-ip=170.10.71.231
X-Received: from a5i231.smtp2go.com (a5i231.smtp2go.com [170.10.71.231])
	(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 127AD606A322
	for <netdev@vger.kernel.org>; Sat,  5 Dec 2026 04:01:17 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 127AD606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dilluti0n.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=em840244.dilluti0n.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilluti0n.com;
 i=@dilluti0n.com; q=dns/txt; s=s840244; t=1796443273; h=from : subject
 : to : message-id : date : list-unsubscribe : list-unsubscribe-post;
 bh=HzSWCKE//qSklcG64MwUuMetjn1bzJ1mcBGJ/78m09s=;
 b=cv5RZ3PYeffS5t0TFJ3MSIF8LTbnrddkyl+OsSV9LRCcCnIhYC2CXIqiHVwCJwb+L/kL/
 VCzbZ+AWn/e5wrTaKOO1SFsKhWfaAnoxmpd6RWCbA2rlKhuDbJQb8oPfU9t9Me4yZznrPCC
 okv28n+Q6qJ0kYZ00gJwW6O3ebHhTsgXRWuwWH81nAMI+L1UW5skneruZ2ZA9ANOibf4cW6
 wtlRCQRb14jFmcWgo9C88eZbtP9Hmk6GyPP+tHp3sp5sIg/wWsiiKdLGtvCUfk2TAAldjbK
 dl6hv0AtyBOu6jeep5RcjFC7C0bqbvike21ULtnmnuhPMZyJK9YsCypxIUPg==
X-Received: from [10.40.244.132] (helo=dilluti0n.com)
	by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256:X25519)
	(Exim 4.100.1)
	(envelope-from <hskim@dilluti0n.com>)
	id 1xZgxG-AIkwcC8maps-5Dzz;
	Sat, 05 Dec 2026 04:00:58 +0000
X-Received: from localhost (<unknown> [10.42.0.2])
	by dilluti0n.com (OpenSMTPD) with ESMTP id ac37bd21;
	Sat, 5 Dec 2026 04:00:48 +0000 (UTC)
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-B4-Tracking: v=1; b=H4sIAAAAAAAC/0WMQQ6CMBBFr0Jm7ZC2UERW3sO4gDLAKBTTFkNCu
 LtFF+avXv7L28CTY/JQJRs4erPn2UZQpwTMUNuekNvIoIQqpJQF9tzXOHIgVKYrhTKXc9PmEP2
 Xo47Xb+sGlgJaWgPcf49fmgeZcKQOt3PzhGFwVP/rIi7TmS7SUuc6R4mDf/J0bXkcl8DCpmaeY
 N8/1cjNRrQAAAA=
X-Change-ID: 20261116-giga-lite-2cf802c97bd4
X-Cc: Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, 
 Russell King <linux@armlinux.org.uk>, 
 "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, 
 Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, 
 Willem de Bruijn <willemb@google.com>, Simon Horman <horms@kernel.org>, 
 Maxime Chevallier <maxime.chevallier@bootlin.com>, 
 Daniel Golle <daniel@makrotopia.org>, nic_swsd@realtek.com, 
 Andrew Lunn <andrew+netdev@lunn.ch>, linux-kernel@vger.kernel.org, 
 javen <javen_xu@realsil.com.cn>, 
 Björn Töpel <bjorn@kernel.org>, 
 Hee-Suk Kim <hskim@dilluti0n.com>
X-Mailer: b4 0.15.2
X-Developer-Signature: v=1; a=openpgp-sha256; l=4393; i=hskim@dilluti0n.com;
 h=from:subject:message-id; bh=GIAbxoX6baM5xZ1qTJmgYRa2UWlmo1VYXJoz0/Hu3bY=;
 b=owGbwMvMwCncbZ4x63W37CbG02pJDNnCPVnnxRaVf9nSsVrqYVAle9ZrfQsmnerQdSxvb/a8q
 NpsK5jRsZGFQZiTwVJMkeWm/+z/6ere56Zmz3CCmcPKBDJEWqSBAQhYGPhyE/NKjXSM9Ey1DfUM
 gQwdIwYuTgGY6h1TGOuTp+pJ6npKsof2vP3O7S7/ZL7No+wv29TfmNoqnblgZn7mz7O/IdOKNp8
 wsHU5ypv2aRdjw0nJl5OjrU9uPaCfcoxDftJLs5nF5gf/iHL4OThtyBFy3VziuWK1q/mfH0f8A7
 JTvadOAgA=
X-Developer-Key: i=hskim@dilluti0n.com; a=openpgp;
 fpr=3D4686CAC75A49A69E49692099A8DC6DA49AB13C
X-Report-Abuse: Please forward a copy of this message, including all headers, to <abuse-report@smtp2go.com>
X-Feedback-ID: 840244m:840244atORciv:840244so0aWovVEL
X-smtpcorp-track: B_CgiLabMroC.3EjLEZSdJ2fq.15PIeApDs1a