FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
All support for Intel NUC 7 - 13 systems has transitioned to ASUS. Read latest update.
6324 Discussions

mSGDMA mm_Read Data is slow, but mm_Write Data is fast (ok) for "TSE_mSGDMA to HIP AVMM-DMA" logic

New Contributor I

I am trying to transfer(read & write) data using the mSGDMA cores in QuartusPro 19.2 , between TSE core and PCIe HIP (avmm-dma) cores on an Arria10 FPGA.  In Linux driver, we create ethernet node,  allocate socket buffers, then managed to send & receive ethernet packets through the mSGDMA engine to test its full duplex performance. 


In the ethenet receiving direction, data is streaming out of TSE_MAC core, then mSGDMA (mm_Write)  move data into Linux PC memory through PCIe HIP (txs port). We tested this path, and ethernet performance is good.


While in the ethenet transmission direction, mSGDMA (mm_Read) moves ethernet data from Linux PC memory(socket buffer) through PCIe HIP (txs port),  into TSE MAC core. In this direction, we tested and saw the ethernet performance is bad, so performance test failed.


After a lot debugging,  we found the "PCIe txs_waitrequest" signal behaviour very differently, which may introduce the  [ good performance of eth-receiving ] vs [ N-OK performance of eth-transmit ].    

1)  For good eth-receiving direction, in which "mSGDMA (mm_Write) moves data from TSE MAC into PCIe HIP TXS ",   "PCIe txs_waitrequest" signal can be deasserted to activate the mSGDMA (mm_Write)  into Host memory very quickly, and the interval is ~10 clock cycles or so.  (see "mSGDMA_writedata.png" )


2)  For failed eth-transmit direction, in which "mSGDMA (mm_Read) moves data from PCIe HIP TXS " into TSE-MAC,   "PCIe txs_waitrequest" signal was very slower to be deasserted to activate the mSGDMA (mm_READ) operation from Host memory into TSE MAC ,  that interval is ~160 clock cycles which is much bigger.  (see "mSGDMA_readdata.png" )



Above 2 pictures show the "txs_waitrequest" behaviour is very different, Has anyone seen this before or have any clue what could be causing this? 

( Pls note, we use PCIe AVMM-DMA , instead of AVMM ) .


/best regards


0 Kudos
2 Replies
New Contributor I

kindly reply pls

0 Kudos
New Contributor I

Hi @EBERLAZARE_I_Intel ,, 

I think you're the expert of  " mSGDMA IP" area , would you help to double check my original question (or at least relay it to an more suitable person to reply ) ?   Thanks very much

0 Kudos