Hi TI Experts,
We are develop a VxWorks Virt MAC driver for TDA4 in order to perform network communication via CPSW9G (EthFw).
Now, we can attach to the EthFw through RPMSG and the EthFw can return:
- SessionId
- CoreKey
- RxMTU
- TxMTU
- Features
- AllocFlowIdx
- TxCPSWPsilDstId
After the attachment, we can successfully do “ping” or “DebugStatDump” on the EthFw.
But we are stuck in sending packet.
Our UDMA driver works. After sending a packet, we can get the Tx – finish interruption.
As per our investigation, these packets are all dropped by ALE.
Here are the traces. From “Port 0 Statistics”, we can see that all the packets have been counted in “aleDrop”.
From below trace, there is the ALE table. We compared ours with Linux’s. They are the same.
We also checked the Linux code. We didn’t find that Linux do any configuration for ALE. Maybe we missed something important.
Could you please give us some hints or clues? Then we can move on.
Thanks in advance!
Enabling clocks for CPSW_9G!
=======================================================
CPSW Ethernet Firmware Demo
=======================================================
CPSW_9G Test on MAIN NAVSS
IPC_echo_test (core : mcu2_0) .....
Remote device (core : mcu2_1) .....
CpswPhy_bindDriver: PHY 0: OUI:080028 Model:23 Ver:01 <-> 'dp83867' : OK
Remote demo device (core : mcu2_0) .....
CpswPhy_bindDriver: PHY 3: OUI:080028 Model:23 Ver:01 <-> 'dp83867' : OK
PHY 0 is alive
PHY 3 is alive
PHY 12 is alive
PHY 15 is alive
PHY 23 is alive
Host MAC address: 70:ff:76:1d:87:64
[NIMU_NDK] CPSW has been started successfully
Cpsw_handleLinkUp: port 2: Link up: 1-Gpbs Full-Duplex
Function:app_ethrdev_srv_cb_attach_ext_handler,HostId:0,CpswType:1
Function:app_ethrdev_srv_cb_register_mac_handler,HostId:0,Handle:a2b371c0,CoreKey:38acb7e6, MacAddress:70:ff:76:1d:870
Cpsw_ioctlInternal: CPSW: Registered MAC address.ALE entry:10, Policer Entry:0Function:app_ethrdev_srv_cb_register_ip8
Failed to add Static ARP Entry
================LLI Table entries===========
Number of Static ARP Entries: 0
SNo. IP Address MAC Address
------ ------------- ---------------
Function:app_ethrdev_srv_cb_client_notify_handler,HostId:0,Handle:38acb7e6,CoreKey:a2b371c0,NotifyId:RPMSG_KDRV_TP_ETn
0: Vlanid: 012c, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff RAW:[0 212c1ff1 ff0001ff]
1: Vlanid: 0190, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff RAW:[0 21901ff1 ff0001ff]
2: Vlanid: 0191, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff RAW:[0 21911ff1 ff0001ff]
3: Vlanid: 0192, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff RAW:[0 21921ff1 ff0001ff]
4: Vlanid: 0193, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff RAW:[0 21931ff1 ff0001ff]
5: Vlanid: 0194, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff RAW:[0 21941ff1 ff0001ff]
6: Vlanid: 0195, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff RAW:[0 21951ff1 ff0001ff]
7: Vlanid: 0196, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff RAW:[0 21961ff1 ff0001ff]
8: Vlanid: 0197, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff RAW:[0 21971ff1 ff0001ff]
9: Address: 70ff761d8764, Port: 000 Se=1 Bl=0 TOUCH=0 AGE=0 TRUNK=0 RAW:[1 100070ff 761d8764]
10: Address: 70ff761d8763, Port: 000 Se=0 Bl=0 TOUCH=0 AGE=0 TRUNK=0 RAW:[0 100070ff 761d8763]
1013 Free Entries
0: POLICER_DST_MAC,ALE Index: 10
0: POLICER_THREAD,THREAD ID:0
0: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
95 Free Entries
Port 0 Statistics
-----------------------------------------
rxGoodFrames = 6
rxBcastFrames = 1
rxMcastFrames = 5
aleDrop = 6
rxOctets = 522
txGoodFrames = 2
txBcastFrames = 2
txOctets = 128
octetsFrames64 = 3
octetsFrames65to127 = 5
netOctets = 650
portMaskDrop = 6
aleUnknownMcast = 5
aleUnknownMcastBcnt = 458
aleUnknownBcast = 1
aleUnknownBcastBcnt = 64
txPri[2] = 2
txPriBcnt[2] = 128
External Port 0 Statistics
-----------------------------------------
External Port 1 Statistics
-----------------------------------------
External Port 2 Statistics
-----------------------------------------
rxGoodFrames = 17
rxBcastFrames = 2
rxMcastFrames = 15
aleDrop = 15
rxOctets = 1673
octetsFrames64 = 4
octetsFrames65to127 = 10
octetsFrames128to255 = 3
netOctets = 1673
portMaskDrop = 15
aleUnknownMcast = 5
aleUnknownMcastBcnt = 455
aleUnknownBcast = 1
aleUnknownBcastBcnt = 64
External Port 3 Statistics
-----------------------------------------
External Port 4 Statistics
-----------------------------------------
External Port 5 Statistics
-----------------------------------------
External Port 6 Statistics
-----------------------------------------
External Port 7 Statistics
-----------------------------------------