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: how to enable TDA4VH eval board 10G XFI interface function

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: TDA4VH

Hi TI,

            I have two questions with TDA4VH eval board 10G XFI interface.

Question 1:

                   I want use  TDA4VH eval board 10G XFI interface (J52 ENET-EXP-1 or J51 ENET-EXP-2) connect with other machine XFI interface ,  but  they comminicate failed.   how to enable TDA4VH eval board 10G

XFI interface function,  For SDK 08.06,   In addition to using the device tree(k3-j784s4-exp1-exp2-usxgmii.dts, k3-j784s4-exp1-usxgmii.dts, k3-j784s4-exp2-usxgmii.dts), where should we modify(uboot  or kernel)?

       

Question 2:

                   Can J52 ENET-EXP-1 and J51 ENET-EXP-2 of TDA4VH eval board 10G XFI interface communicate with each other?   If yes,   Where should I modofiy?   I am a fresh.  thanks.

Best Regards

  • Hi,

    Q1:

    Apart from from including the overlays, there isn't anything else to be done for enabling the USXGMII link. Just as a note, by default, the USXGMII is possible only in MAC-to-MAC mode. We do not have any daughter cards which support USXGMII/XFI links.

    If you are facing any issues, can you provide the steps you took to get to this from the out-of-box state.

    Q2:

    I think what you mean by this is that one header controlled by one core another by another core and communicate between the two cores over this. This is not possible. Only one OS can control the entire CPSW at once which includes both the headers.

    Regards,
    Tanmay

  •  I want use  TDA4VH eval board 10G XFI mode(not USXGMII mode), I don't know how to set.

  • Hi,

    For the software changes, you can refer to the file "arch/arm64/boot/dts/ti/k3-j784s4-evm-usxgmii-exp1-exp2.dtso" in [SDK-Install-path]/board-support/ti-linux-[commit-hash]/arch/arm64/boot/dts/ti/k3-j784s4-evm-usxgmii-exp1-exp2.dtso. With Native linux driver, these are the only changes required.

    Both USXGMII and XFI use the same encryption and the same 10.134G serdes lane. SO the same configuration will work for XFI too.

    Regards,
    Tanmay 

  • Thank you for your reply !

    I see the file k3-j784s4-evm-usxgmii-exp1-exp2.dtso:

    &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 = <5000>;
           full-duplex;
    };
    };

    If I want to use 10G XFI mode(not USXGMII mode), only change speed = <5000> to speed = <10000>,   It is right?

    Best Regards,

    kevin 

  • Hi Kevin,

    Thats correct.

    Regards,
    Tanmay

  • Hi Tanmay,

    when I set speed = <10000>, find dmesg  log :

    [ 2.413893] am65-cpsw-nuss c000000.ethernet (unnamed net_device) (uninitialized): fixed link full duplex 10000Mbps not recognised
    [ 2.425541] am65-cpsw-nuss c000000.ethernet (unnamed net_device) (uninitialized): fixed link full duplex 10000Mbps not recognised

    that's OK?

    Best Regards,

    kevin 

  • Hi Kevin,

    Can you please include the attached patch in the kernel. This patch adds the capability for a 10G connection with MAC.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/adding_2D00_10000fd_2D00_capability_2D00_in_2D00_cpsw_2D00_driver.patch

    You should not get this error after this patch.

    Regards,
    Tanmay

  • OK , thank you very much !

  • Hi Tanmay,

                  I use external 10G XFI interface to connect TDA4 XFI interface,  them linked up.   What's more, external 10G XFI interface have been enabled   

    Auto-Negotiation mode, It shows TDA4 XFI interface speed was 5G not 10G,   I use iperf tool for testing, found TDA4 XFI interface speed was 5G too.

    1. TDA4VH dmesg log shows 10Gbps: 

    [ 7.845386] am65-cpsw-nuss c000000.ethernet eth2: configuring for fixed/usxgmii link mode
    [ 7.854068] am65-cpsw-nuss c000000.ethernet eth2: Link is Up - 10Gbps/Full - flow control off
    [ 7.868727] am65-cpsw-nuss c000000.ethernet eth1: configuring for fixed/usxgmii link mode
    [ 7.876926] am65-cpsw-nuss c000000.ethernet eth1: Link is Up - 10Gbps/Full - flow control off

    2.   root@j784s4-evm:~# ethtool eth1
    Settings for eth1:
    Supported ports: [ MII ]
    Supported link modes: 10000baseCR/Full
    Supported pause frame use: Symmetric Receive-only
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes: 10000baseCR/Full
    Advertised pause frame use: Symmetric
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Link partner advertised link modes: 10000baseCR/Full
    Link partner advertised pause frame use: No
    Link partner advertised auto-negotiation: No
    Link partner advertised FEC modes: Not reported
    Speed: 10000Mb/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

    TDA4VH XFI and USXGMII both support 10G/5G modes?   If support ,  Why does TDA4VH show 10G, but actually 5G? 

    Best Regards 

    Kevin

  • Hi Kevin,

    Can you please explain where do you see the auto-negotiated speed at 5G?

    With iperf, the software reaches a CPU loading bottle neck before 10G speeds are achieved. So from standard linux network stack, a speed of 10G is not expected.

    Regards,
    Tanmay

  • Hi Tanmay,

                    My test networking:   tda4<----->switch<-------->x86,      switch port1 connect with tda4,      switch port2 connect with x86,    I found port1 is 5G and

    port2 is 10G in switch. iperf test is 5G. 

                   I use x86<----> switch<------->x86 for testing again, switch port1 and port2 connect with two x86,  I found port 1 and port 2 are 10G in switch , iperf

    test is 10G.

     

    Best Regards

    Kevin

  • Hi Kevin,

    Let me see if we have anything on either CPSW MAC and/or on serdes which can give us some information about actual bit rate on link.

    According to my knowledge, we do not have anything for this. Both MACs are supposed to communicate and configure the serdes for a common link rate.

    Can you let me know which switch you are using? Also are you reading some register on the switch which tells you the port is configured as 5G?

    Regards,
    Tanmay

  • Hi Tanmay,

                      We use Microchip Switch,  Switch provides a series of configuration and viewing commands in cli.   I enter some commands in swtich cli (show interface xxx),    It shows the  switch port   connect with x86  was 10G, tda4 was 5G.

                       Which register can be configured as 10G XFI mode  and which register can be checked to see if it is configured as 10G in tda4 ?  thanks!

    Best Regards

    Kevin

  • Hi Kevin,

    Which register can be configured as 10G XFI mode  and which register can be checked to see if it is configured as 10G in tda4 ?  thanks!

    I am still checking up on this with the hardware experts. I will get back to you as soon as get a response from the hardware team.

    Regards,
    Tanmay

  • Hi Tanmay,

    1.  I am still checking up on this with the hardware experts. I will get back to you as soon as get a response from the hardware team. 

            ---------  Any progress?

    2. As far as you know,   why the  TDA4 XFI speed  change to 5G generally? software or hardware problems, maybe  .......? 

    Best Regards

    Kevin

  • Hi Kevin,

    Sorry for the delay on this.

    I am still checking up on this with the hardware experts. I will get back to you as soon as get a response from the hardware team. 

            ---------  Any progress?

    5G vs 10G is decided by the clock speed and bitrate set in serdes CPSW MAC will modify the link accordingly.

    As far as you know,   why the  TDA4 XFI speed  change to 5G generally? software or hardware problems, maybe  .......? 

    So this might be because the serdes is configured for 5G bitrate

    Regards,
    Tanmay