From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.84.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796458750; b=rK6RlDeOpnh3OUn5H3TbaJeu7EQtO52Dliq+/4UxCYh+p9/D5f+tnkarm30LCySUlvZE vzG0akfRzXsw17mlYx5SucEmpZlmQnPrO0i6hYzY7BQhf8j6OR06uQ9JJm8+V+oD4lVBf Q6Dot4jg4M25VXiVC8JP3NImVFk7UZ2j7GRNkh9LzUAmTMq+W2hAttC6a6GqxQBosopYj 8VRhssTlSiSMbyARwkKYMf+xgJWQnIyii8HX2Hkh8eReOKoLghtZ4lkI7KcgC6Gn8cO+y h8OoyXE3eTkjKa6jPxZVe7TbkKaOsVKFxhgJVTtOu/DoaNq7c5CHJwemUIf+SmRKQRg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796458750; 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=kQV0zgVIF0pmfw+Rz9uqEMladzGdFNyrzipuAfW22R0=; b=KzKs1zFlW+hOsHE3AH8tvT82ocImWgSs67bAV4jJKRgIv+wcxalLw/ALS9Hyqq1ZyF9d OWRxRshbi0ajcukt+UV2msVntuMO8dgfNvhvIRrr/Yc+cSWnzUyw0GZJGkAXZJX1yHYpZ dpm73A8isGsHZw3+OSGEmrdC/gDTqBS2F7nzcJLSCHwqibqtVZatXm9K8nUNxx3m2k3HO ua8rnrSQgao4StVfINxqGIAv5NdcvCs/m4esdkhrCXSFVYSP0h5doypnfNvcVQ9XzTbnx LfkP1bpH0xygDeHthy/6t/DahlHqvClgQcSxsYCa/qEi5EhURjVePpodmJywCsBPpnw== 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=CYl1O8Ix; arc=none smtp.remote-ip=185.246.84.56 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 9B6CE606A32F for ; Sat, 5 Dec 2026 08:19:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9B6CE606A32F 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, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=CYl1O8Ix Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id BA5F31A1946; Sat, 5 Dec 2026 08:19:06 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 8A61060766; Sat, 5 Dec 2026 08:19:06 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 5EF4F11EA00CC; Sat, 05 Dec 2026 09:18:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796458745; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=kQV0zgVIF0pmfw+Rz9uqEMladzGdFNyrzipuAfW22R0=; b=CYl1O8Ix3wYODMVbgG2D7+T76iVwSCzxRZ0rF6fHjDT/DgoaZkH1k2FHU/0efLILnlg5hr yuB3SUEDalFINIEsY6TE0NFcuRSKMVFNmt2NUzQ7WLvTefi418ahEDERAbWsbu76IHuA1K KfBxghDkBT7P8w3fB+1lBkdXcpY2m3h+Rt5jGZVx8IjN4kJJ/KkSWEP39LJTBZB9ZAJ35k Nm5siF8j2xWj862+hUlW55f8Eyam9lvlSGwUgOSMgZYOVXQZfxFyq9u0CquMrqd/yWK1lZ ATfAnqm1FbEleiTGPswG4m3BHd2ve/eRzxP2slAOPlLPynxWtaz4GoBZnvt1gQ== Message-ID: <31418f01-3ec4-413e-8842-2717e04fefe7@bootlin.com> Date: Sat, 5 Dec 2026 09:18:53 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v2 1/4] net: ethtool: add 500baseT2 link mode To: Hee-Suk Kim , netdev@vger.kernel.org Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , Simon Horman , Daniel Golle , nic_swsd@realtek.com, Andrew Lunn , linux-kernel@vger.kernel.org, javen , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= References: <20261205-giga-lite-v2-0-5b84410edb9f@dilluti0n.com> <20261205-giga-lite-v2-1-5b84410edb9f@dilluti0n.com> Content-Language: en-US From: Maxime Chevallier In-Reply-To: <20261205-giga-lite-v2-1-5b84410edb9f@dilluti0n.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 Hi, On 12/5/26 05:00, Hee-Suk Kim wrote: > Add ETHTOOL_LINK_MODE_500baseT2_Full_BIT and SPEED_500 for 500 Mbps > over two pairs, together with the matching phylib link capability. > > Signed-off-by: Hee-Suk Kim [...] > @@ -295,6 +298,10 @@ unsigned long phy_caps_from_interface(phy_interface_t interface) > { > unsigned long link_caps = 0; > > + /* The only PHYs known to support 500baseT2 are attached over GMII */ > + if (interface == PHY_INTERFACE_MODE_GMII) > + link_caps |= BIT(LINK_CAPA_500FD); > + This whole patch seems good to me, with all the phy_caps and all, the only question I have is about the xMII mode used. Is it really GMII, or some tweaked version of it ? I guess the MAC to PHY mode on these setups isn't pure GMII, but likely a modified of it, with a different clock rate ? at 1G the GMII is clocked at 125MHz, do you know what's going on at 500M ? Does a PHY that supports 500BaseT2 also support other 2-pair modes, like 100BaseTX ? IOW, can the xMII used here adapt for multiple speeds like GMII ? We may need a dedicated phy_interface_t value for the xMII here is what I mean :) Maxime