This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VH-Q1: linux serdes usxgmii issue

Part Number: TDA4VH-Q1

Hello
SerDes2 Lane2 and Lane3 are connected to a 10Gbps PHY.

Using k3-j784s4-evm-usxgmii-exp1-exp2.dtbo under Linux.

&main_cpsw0_port1 {
status = "okay";
phy-mode = "usxgmii";
mac-address = [00 00 00 00 00 00];
phys = <&cpsw0_phy_gmii_sel 1>, <&serdes2_usxgmii_link>;
phy-names = "mac", "serdes";
fixed-link {
speed = <10000>;
full-duplex;
};
};

&main_cpsw0_port2 {
status = "okay";
phy-mode = "usxgmii";
mac-address = [00 00 00 00 00 00];
phys = <&cpsw0_phy_gmii_sel 2>, <&serdes2_usxgmii_link>;
phy-names = "mac", "serdes";
fixed-link {
speed = <10000>;
full-duplex;
};
};

The speed is set to 10000 here.

Why does it show 5000base?

root@j784s4-evm:~# ethtool eth1
Settings for eth1:
Supported ports:   [ MII ]
Supported link modes:   5000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes:  5000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes:  5000baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Link partner advertised FEC modes: Not reported
Speed: 5000Mb/s
Duplex: Full
Auto-negotiation: on
Port: MII
PHYAD: 0
Transceiver: internal
Supports Wake-on: d
Wake-on: d
Current message level: 0x000020f7 (8439)
drv probe link ifdown ifup rx_err tx_err hw
Link detected: yes

root@j784s4-evm:~# ethtool eth2
Settings for eth2:
Supported ports:   [ MII ]
Supported link modes:   5000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes:  5000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes:  5000baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Link partner advertised FEC modes: Not reported
Speed: 5000Mb/s
Duplex: Full
Auto-negotiation: on
Port: MII
PHYAD: 0
Transceiver: internal
Supports Wake-on: d
Wake-on: d
Current message level: 0x000020f7 (8439)
drv probe link ifdown ifup rx_err tx_err hw
Link detected: yes

Why does it show 5000base?

When I run the 10Gbps PHY driver under mcu2-0, the network functions properly:

[MCU2_0]    725.275073 s: EthFw_initLinkArgs into macPort=0
[MCU2_0]    725.275160 s: EthFw_initLinkArgs into macPort=0 status  0
[MCU2_0]    725.275192 s: EthFw_initLinkArgs done i=4 macPort=0
[MCU2_0]    725.275541 s: Cpsw_openPortLinkNoPhy: Port 1: Link up: 10-Gbps Full-Duplex
[MCU2_0]    725.275596 s: EthFw_initLinkArgs into macPort=1
[MCU2_0]    725.275701 s: EthFw_initLinkArgs into macPort=1 status  0
[MCU2_0]    725.275731 s: EthFw_initLinkArgs done i=4 macPort=1
[MCU2_0]    725.276052 s: Cpsw_openPortLinkNoPhy: Port 2: Link up: 10-Gbps Full-Duplex

Best Regards,
 gj

  • Hi,

    Can you try with the following patch if that solves your issue:

    diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
    index 84cd71477b04..38cf9136d5bc 100644
    --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c
    +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
    @@ -3219,7 +3219,7 @@ am65_cpsw_nuss_init_port_ndev(struct am65_cpsw_common *common, u32 port_idx)
     	port->slave.phylink_config.dev = &port->ndev->dev;
     	port->slave.phylink_config.type = PHYLINK_NETDEV;
     	port->slave.phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 | MAC_100 |
    -						      MAC_1000FD | MAC_5000FD;
    +						      MAC_1000FD | MAC_5000FD | MAC_10000FD;
     	port->slave.phylink_config.mac_managed_pm = true; /* MAC does PM */
     
     	switch (port->slave.phy_if) {
    

    Regards,
    Tanmay

  • Hi Tanmay

    This patch has already been added in SDK 9.2.

    root@j784s4-evm:~# ethtool eth2
    Settings for eth2:
    Supported ports: [ MII ]
    Supported link modes: 5000baseT/Full
    Supported pause frame use: Symmetric Receive-only
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes: 5000baseT/Full
    Advertised pause frame use: Symmetric
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Link partner advertised link modes: 5000baseT/Full
    Link partner advertised pause frame use: No
    Link partner advertised auto-negotiation: No
    Link partner advertised FEC modes: Not reported
    Speed: 5000Mb/s
    Duplex: Full
    Auto-negotiation: on
    Port: MII
    PHYAD: 0
    Transceiver: internal
    Supports Wake-on: d
    Wake-on: d
    Current message level: 0x000020f7 (8439)
    drv probe link ifdown ifup rx_err tx_err hw
    Link detected: yes


    Best Regards,
     jun

  • Hi Jun,

    I didn't see this in our latest releases. Can you check if this is stlll present in the sources?

    Regards,
    Tanmay