Re: [RFC PATCH net-next 0/2] Add Realtek XSGMII interface mode

From: Andrew Lunn

Date: Sun Nov 22 2026 - 16:24:54 EST


On Tue, Nov 17, 2026 at 08:47:46AM +0000, Jonas Jelonek wrote:
> Hi,
>
> This RFC adds an explicit PHY interface mode for Realtek's proprietary
> XSGMII transport. It carries eight 10/100/1000 Mbps ports over one
> 10.3125 Gbaud SerDes lane. Each logical port remains limited to 1 Gbps;
> the aggregate serial rate is not a per-port Ethernet speed.

We should be careful with naming. We have already have QSGMII and
PSGMII, for Quad and Pent. X is too vague. So we should somehow
indicate 8, Oct.

But...

> Protocol identity and naming
> ----------------------------
>
> XSGMII is the name Realtek uses for this interface. Calling it simply
> "octal SGMII" would describe its capacity without identifying its
> protocol. Existing modes such as QSGMII and PSGMII already distinguish
> multiplexed MAC-PHY transports; the PSGMII introduction is an example of
> adding the generic mode definitions separately from a driver user [1].
>
> Cisco USGMII is a relevant comparison, but equivalent port capacity does
> not establish interoperability. Cisco defines Q-USGMII for four ports
> over 5.0 Gb/s and O-USGMII for eight ports over 10.0 Gb/s, using 8b/10b
> coding and a packet-control header [2]. Linux already represents the
> quad variant as "qusgmii", with its own control-word decoding [3].
>
> Realtek documents XSGMII and O-USGMII as separate RTL8218E interfaces:
> XSGMII runs at 10.3125 Gb/s and O-USGMII at 10.0 Gb/s, with different
> hardware strap selections [4]. The SDK also distinguishes them in
> phy_8218e_macIntfSerdesMode_get() and applies separate initialization
> tables. Realtek's O-USGMII is therefore the candidate for comparison
> with Cisco's octal USGMII; it is not evidence that XSGMII can be renamed
> to USGMII. Compatibility of those O-USGMII implementations would need
> separate confirmation.
>
> This proposal retains the vendor's XSGMII name rather than assigning an
> existing protocol name to a distinct hardware configuration. It does
> not assume a particular XSGMII line encoding merely from the line rate.

https://deepwiki.com/lotusmomo/airoha_sdk/3.1-sgmiixsgmii-drivers-and-apis

Airoha also seems to have an XSGMII. Is it the same, or different?

Adding Christian.

I hope we are not going to have vendors introducing there own
variants, and we need

PHY_INTERFACE_MODE_REALTEK_OSGMII & PHY_INTERFACE_MODE_AIROHA_OSGMII,
etc.

Andrew