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.

TDA4VM-Q1: TDA4VM:RGMII 5 eth transmission failed with ALE_DROP errors

Part Number: TDA4VM-Q1

Hi,TI

we are developing MAC-MAC mode on RGMII5 with sja1105 switch.

the RTOS PDK is at version 8.0

When testing the connection it appears the error of ALE_DROP: (with ARP broadcasting )

 Is there any method to resolve this problem ? Why it drops all  packets?

Can we print the packages that ALE has dropped?

the printing scripts is as follow:

3630.cpsw_all_reg_print.c

thanks a lot!

  • update:the ALE entries are here:

    ===============================
    0: Clear Stats : CPSW 2G
    1: Clear Stats : CPSW 5G
    2: Clear Stats : CPSW 9G
    3: Print Stats : CPSW 2G
    4: Print Stats : CPSW 5G
    5: Print Stats : CPSW 9G
    6: Print ALE : CPSW 2G
    7: Print ALE : CPSW 5G
    8: Print ALE : CPSW 9G
    9: Print Enet CFG : CPSW 2G
    10: Print Enet CFG : CPSW 5G
    11: Print Enet CFG : CPSW 9G
    12: Verify Enet Ctrl CFG : CPSW 2G
    13: Verify Enet Ctrl CFG : CPSW 5G
    14: Verify Enet Ctrl CFG : CPSW 9G
    15: Print MAC Config : CPSW 2G
    16: Print MAC Config : CPSW 5G
    17: Print MAC Config : CPSW 9G
    18: Print 5G RGMII regs
    19: Print 9G RGMII regs
    20: Print 9G pinmux regs:0-172
    Make your choice : 8
    ---------------------------------------------
    -------CPSWnG ALE TABLE----------------------
    ---------------------------------------------
    ---------------------------------------------
     Entry 0 - VLAN INNER 
    ---------------------------------------------
    ENTRY_TYPE        = 2
    IVLAN_ID           = 300
    NO FRAG           = 0
    REG_MCAST_FLOOD   = 511
    VLAN FWD Untagged Egress = 511
    LMT NEXT HDR      = 0
    UNREG_MCAST_FLOOD = 0
    VLAN_MEMBER_LIST  = 511
    ---------------------------------------------
     Entry 1 - VLAN INNER 
    ---------------------------------------------
    ENTRY_TYPE        = 2
    IVLAN_ID           = 400
    NO FRAG           = 0
    REG_MCAST_FLOOD   = 511
    VLAN FWD Untagged Egress = 511
    LMT NEXT HDR      = 0
    UNREG_MCAST_FLOOD = 0
    VLAN_MEMBER_LIST  = 511
    ---------------------------------------------
     Entry 2 - VLAN INNER 
    ---------------------------------------------
    ENTRY_TYPE        = 2
    IVLAN_ID           = 401
    NO FRAG           = 0
    REG_MCAST_FLOOD   = 511
    VLAN FWD Untagged Egress = 511
    LMT NEXT HDR      = 0
    UNREG_MCAST_FLOOD = 0
    VLAN_MEMBER_LIST  = 511
    ---------------------------------------------
     Entry 3 - VLAN INNER 
    ---------------------------------------------
    ENTRY_TYPE        = 2
    IVLAN_ID           = 402
    NO FRAG           = 0
    REG_MCAST_FLOOD   = 511
    VLAN FWD Untagged Egress = 511
    LMT NEXT HDR      = 0
    UNREG_MCAST_FLOOD = 0
    VLAN_MEMBER_LIST  = 511
    ---------------------------------------------
     Entry 4 - VLAN INNER 
    ---------------------------------------------
    ENTRY_TYPE        = 2
    IVLAN_ID           = 403
    NO FRAG           = 0
    REG_MCAST_FLOOD   = 511
    VLAN FWD Untagged Egress = 511
    LMT NEXT HDR      = 0
    UNREG_MCAST_FLOOD = 0
    VLAN_MEMBER_LIST  = 511
    ---------------------------------------------
     Entry 5 - VLAN INNER 
    ---------------------------------------------
    ENTRY_TYPE        = 2
    IVLAN_ID           = 404
    NO FRAG           = 0
    REG_MCAST_FLOOD   = 511
    VLAN FWD Untagged Egress = 511
    LMT NEXT HDR      = 0
    UNREG_MCAST_FLOOD = 0
    VLAN_MEMBER_LIST  = 511
    ---------------------------------------------
     Entry 6 - VLAN INNER 
    ---------------------------------------------
    ENTRY_TYPE        = 2
    IVLAN_ID           = 405
    NO FRAG           = 0
    REG_MCAST_FLOOD   = 511
    VLAN FWD Untagged Egress = 511
    LMT NEXT HDR      = 0
    UNREG_MCAST_FLOOD = 0
    VLAN_MEMBER_LIST  = 511
    ---------------------------------------------
     Entry 7 - VLAN INNER 
    ---------------------------------------------
    ENTRY_TYPE        = 2
    IVLAN_ID           = 406
    NO FRAG           = 0
    REG_MCAST_FLOOD   = 511
    VLAN FWD Untagged Egress = 511
    LMT NEXT HDR      = 0
    UNREG_MCAST_FLOOD = 0
    VLAN_MEMBER_LIST  = 511
    ---------------------------------------------
     Entry 8 - VLAN INNER 
    ---------------------------------------------
    ENTRY_TYPE        = 2
    IVLAN_ID           = 407
    NO FRAG           = 0
    REG_MCAST_FLOOD   = 511
    VLAN FWD Untagged Egress = 511
    LMT NEXT HDR      = 0
    UNREG_MCAST_FLOOD = 0
    VLAN_MEMBER_LIST  = 511
    ---------------------------------------------
     Entry 9 - Multicast
    ---------------------------------------------
    PORT_MASK        = 1ff
    SUPER            = 0
    MCAST IGNORE BITS= 0
    MCAST_FWD_STATE  = 0
    ENTRY_TYPE       = 1
    MULTICAST_ADDR   = ffff ffffffff
    ---------------------------------------------
     Entry 10 - Unicast
    ---------------------------------------------
    TRUNK            = 0
    PORT_NUMBER      = 0
    BLOCK            = 0
    SECURE           = 1
    TOUCH            = 0
    AGEABLE          = 0
    ENTRY_TYPE       = 1
    UNICAST_ADDR     = 70ff 761d92c2
    ---------------------------------------------
     Entry 12 - Unicast
    ---------------------------------------------
    TRUNK            = 0
    PORT_NUMBER      = 0
    BLOCK            = 0
    SECURE           = 0
    TOUCH            = 0
    AGEABLE          = 0
    ENTRY_TYPE       = 1
    UNICAST_ADDR     = 70ff 761d92c1
    Completed analysis of 1024 ALE entries
    ===============================
                 Menu
    ===============================
    0: Clear Stats : CPSW 2G
    1: Clear Stats : CPSW 5G
    2: Clear Stats : CPSW 9G
    3: Print Stats : CPSW 2G
    4: Print Stats : CPSW 5G
    5: Print Stats : CPSW 9G
    6: Print ALE : CPSW 2G
    7: Print ALE : CPSW 5G
    8: Print ALE : CPSW 9G
    9: Print Enet CFG : CPSW 2G
    10: Print Enet CFG : CPSW 5G
    11: Print Enet CFG : CPSW 9G
    12: Verify Enet Ctrl CFG : CPSW 2G
    13: Verify Enet Ctrl CFG : CPSW 5G
    14: Verify Enet Ctrl CFG : CPSW 9G
    15: Print MAC Config : CPSW 2G
    16: Print MAC Config : CPSW 5G
    17: Print MAC Config : CPSW 9G
    18: Print 5G RGMII regs
    19: Print 9G RGMII regs
    20: Print 9G pinmux regs:0-172
    Make your choice : 11
    
    ==============================
         CPSW9G MAC Mode Config   
    ==============================
    Port 0: Mode: RGMII, RGMII-ID:Disabled 
    Port 1: Mode: RGMII, RGMII-ID:Disabled 
    Port 2: Mode: RGMII, RGMII-ID:Disabled 
    Port 3: Mode: RGMII, RGMII-ID:Disabled 
    Port 4: Mode: RGMII, RGMII-ID:Enabled 
    Port 5: Mode: RGMII, RGMII-ID:Disabled 
    Port 6: Mode: RGMII, RGMII-ID:Disabled 
    Port 7: Mode: SGMII
    ===============================
                 Menu
    ===============================
    0: Clear Stats : CPSW 2G
    1: Clear Stats : CPSW 5G
    2: Clear Stats : CPSW 9G
    3: Print Stats : CPSW 2G
    4: Print Stats : CPSW 5G
    5: Print Stats : CPSW 9G
    6: Print ALE : CPSW 2G
    7: Print ALE : CPSW 5G
    8: Print ALE : CPSW 9G
    9: Print Enet CFG : CPSW 2G
    10: Print Enet CFG : CPSW 5G
    11: Print Enet CFG : CPSW 9G
    12: Verify Enet Ctrl CFG : CPSW 2G
    13: Verify Enet Ctrl CFG : CPSW 5G
    14: Verify Enet Ctrl CFG : CPSW 9G
    15: Print MAC Config : CPSW 2G
    16: Print MAC Config : CPSW 5G
    17: Print MAC Config : CPSW 9G
    18: Print 5G RGMII regs
    19: Print 9G RGMII regs
    20: Print 9G pinmux regs:0-172
    Make your choice : ^C
    root@j7-evm:~# ./checkRGMII.sh 
        Platform: J7 TDA4VM  
        Command:  k3conf  
    MDIO_ALIVE_REG (0x0c000f08) = 0x0000003B  
            bit 0  : Yes
            bit 1  : Yes
            bit 3  : Yes
            bit 4  : Yes
            bit 5  : Yes
    MDIO_LINK_REG (0x0c000f0c) = 0x00000000  
    please input your port: 1-8 5
    CTRLMMR_ENET 5 CTRL (0x00104054) = 0x00000002  
            PORT_MODE_SEL          : 2h RGMII
            RGMII_ID_MODE          : 0h Internal Transmit Delay
    CPSW SS RGMII 5 STATUS (0x0c000040) = 0x0000000D  
            FULLDUPLEX           : 1h Full duplex
            SPEED                : 1000Mbps
            LINK                 : 1h Link is up
    CPSW_SS_STATUS_SGMII_LINK_REG (0x0c000078) = 0x00000000  
            SGMII1_LINK          : 0h No
    CPSW_SS_SGMII_CONTROL_REG_ 5 (0x0c000510) = 0x00000000  
            TEST_PATTERN_EN      : 0h operation
            MASTER               : 0h Slave Mode
            LOOPBACK             : 0h Not in internal loopback mode
            MR_NP_LOADED         : 0h --------
            FAST_LINK_TIMER      : 0h link timer 10ms in FIBER mode and 1.6ms in SGMII mode
            MA_AN_RESTART        : 0h Write 1h and tehn 0h to this bit caused the auto negotiation
            MR_AN_ENABLE         : 0h wirte 1 to this bit enbales the auto negotiation progess
    CPSW_SS_SGMII_STATUS_REG_ 5 (0x0c000514) = 0x00000028  
            LOCK                  : 0h SEDES PLL isn't locked
            MR_AN_COMPLETE        : 0h no AUTO Negotiation is not complete
            AN_EEROR              : 0h no negotiation error
            LINK