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.

J722SXH01EVM: Can it support simultaneous sending and receiving of two Ethernet channels?

Part Number: J722SXH01EVM

Hello:

Can it support simultaneous sending and receiving of two Ethernet channels?
Configuring two MAC ports, the second port always fails to receive.
After swapping the DMA configurations of the two channels, the second channel still cannot receive.
MAC port_1 Tx   OK
MAC port_1 Rx  OK
MAC port_2 Tx   OK
MAC port_2 Rx  NOT OK
Configuring any single Ethernet channel independently enables both sending and receiving.
MCU R5F core
 
  • Hi,

    So irrespective of the number of external ports, there is only one internal host port for the switch.

    If you want to separate the traffic received on these ports at hardware level, you will need to configure the switch to direct the packets to different flows using policer entries. This feature is not supported on MCAL.

    I am not sure how mcal is handling the multiple ports. Let me check on this and get back to you.

    Regards,
    Tanmay  

  • Hi,

    TI MACL driver supports only MAC only mode not switch mode with the policer to control the data flow.

    CPSW3G supports only single Rx channel and multiple RX flows.

    Configuring two MAC ports, the second port always fails to receive.
    After swapping the DMA configurations of the two channels, the second channel still cannot receive.
    MAC port_1 Tx   OK
    MAC port_1 Rx  OK
    MAC port_2 Tx   OK
    MAC port_2 Rx  NOT OK

    I hope you have enabled both ports your self.
    If you would like to transmit and receive the data, you should have to only enable two tx channels for each of MAC Ports, whereas single Rx channel and Flow should be used in MAC only Mode.

    You can enable using single Tx channel also, while sending the traffic you need to pass MAC Port into via Tx Info Words to direct the packet to the dedicated MAC port.

    Best Regards,
    Sudheer

  • Hi Sudheer, Tanmay,

    We are enable 2 MAC ports. the Tx channel and (Rx channel + Rx flow) are different from 2 Mac-Ports. Each Tx channel + (Rx channel + Rx flow) is verified

    in single Mac-Port case. This issue is happen when using these configuration in dual-mac-ports case. please kindly help to suggest what is checking points you need. thanks.

    Regards

    Joe

  • Hi,

    We are enable 2 MAC ports. the Tx channel and (Rx channel + Rx flow) are different from 2 Mac-Ports. Each Tx channel + (Rx channel + Rx flow) is verified

    As I have pointed above, CPSW supports only single RX DMA channel for both ports.

    You should use two Tx channels, and One Rx Channel + Flow for transmission and reception of traffic from both MAC Ports.

    Best Regards,
    Sudheer

  • Hi,

    As I have pointed above, CPSW supports only single RX DMA channel for both ports.

    The example of MCAL eth_test_app control to init one Rx channel in 2 MAC ports case.

    cpsw2_rx 0x4600 to 0x4600
    pktdma_rx 0x9000 to 0x9017

    The PSIL pair configuration of MAC_PORT_1 i:

    src_thread = 0x00004600

    dst_thread = 0x0000900D, offset of dst_thread is 13 (0x0D)

    Rx channel id is 13

    flowid is 13

    Regards

    Joe

  • Hi,

    update current configuration:

    IA Name IA Device ID IA VINT Index Destination Name Destination Interface Destination Index
    J722S_DEV_DMASS0_INTAGGR_0 28 173 J722S_DEV_MCU_R5FSS0_CORE0 cpu0_intr 69
    J722S_DEV_DMASS0_INTAGGR_0 28 175 J722S_DEV_MCU_R5FSS0_CORE0 cpu0_intr 71

    ringNum src_thread dst_thread Rx channel flowid_start flowid_cnt flow_index (link to ringNum) src_id src_index dst_id dst_host_irq ia_id vint global_event
    MAC_PORT_1 112 0x00004600 0x0000900D (offset = 13) 13 13 1 13 28 5645 (112+5533) 121 69 28 173 786
    MAC_PORT_2 113 14 14 1 14 28 5646 (113+5533) 121 71 28 175 788

    Regards

    Joe

  • Hi,

    You can just add one more Ring for another Tx channel no need to add Rx channel and Flow,

    Is above Ring 113 will be the change number? If so, you can just use new Ring number as 113 and keep Rx channel and Flow as is.

    You probably need to use 3 Rings (2 for Tx channels 13, 14 and one for Rx ch 13 with Flow13) and 3 UDMA events.
    or 
    You can use single Tx and single Rx channel based on ALE packet can decide to send from Port-1 or Port-2, for this you need to update ALE entry properly.

    Best Regards,
    Sudheer