UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Reply

zc706, enable SOC Ethernet in DMA mode

Accepted Solution Solved
Highlighted
Visitor
Posts: 5
Registered: ‎02-12-2018
Accepted Solution

zc706, enable SOC Ethernet in DMA mode

Hello,

 

I'm working with the zc706 bare metal using the SDK 2017.4.

I'm transferring high throughput of data over the ethernet.

in order to improve the performance, I would like to enable the Ethernet in DMA mode.

I've wondered through the Xilinx bsp ethernet drivers and couldn't find how to enable it.

I saw that the ethernet does have a "XEMACPS_DMACR_OFFSET" field that configures the DMA, but I'm not sure how to integrate it into the existing driver.

Can you please help me enable it?

 

Thank you,

Gilad


Accepted Solutions
Scholar
Posts: 1,596
Registered: ‎03-22-2016

Re: zc706, enable SOC Ethernet in DMA mode

@lampertg the DMA is part of the emacps driver. Enabled by default

https://xilinx.github.io/embeddedsw.github.io/emacps/doc/html/api/index.html

btlabs.us --- We do this for fun. Always give kudos. Accept as solution if your question was answered.

View solution in original post


All Replies
Scholar
Posts: 1,596
Registered: ‎03-22-2016

Re: zc706, enable SOC Ethernet in DMA mode

[ Edited ]

@lampertg 

Github example:

https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/emacps/examples/xemacps_example_intr_dma.c

 

If you are implementing on the PL side, this looks like a good guide:

http://ece545.com/F16/reports/F15_Ethernet.pdf

 

btlabs.us --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
Visitor
Posts: 5
Registered: ‎02-12-2018

Re: zc706, enable SOC Ethernet in DMA mode

Thank you@hbucher, I'll give it a try.

Visitor
Posts: 5
Registered: ‎02-12-2018

Re: zc706, enable SOC Ethernet in DMA mode

@hbucher, thank you again!

Is there a TCP stack that is integrated on top of the "emacps" or do I have to implement it myself? 

Appreciate your support.

Gilad

Scholar
Posts: 1,596
Registered: ‎03-22-2016

Re: zc706, enable SOC Ethernet in DMA mode

@lampertg Lwip. Enable it on the BPS.

The SDK comes with one example

btlabs.us --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
Visitor
Posts: 5
Registered: ‎02-12-2018

Re: zc706, enable SOC Ethernet in DMA mode

[ Edited ]

@hbucher, I've actually looked at the Lwip and was unable to find how to enable the DMA, I can see that it include some DMA related code, but not how to enable it.

Thanks,

Gilad

 

the only fields that have anything to do with DMA are the n_rx_descriptors and the n_tx_descriptors 

 

Scholar
Posts: 1,596
Registered: ‎03-22-2016

Re: zc706, enable SOC Ethernet in DMA mode

@lampertg the DMA is part of the emacps driver. Enabled by default

https://xilinx.github.io/embeddedsw.github.io/emacps/doc/html/api/index.html

btlabs.us --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
Visitor
Posts: 5
Registered: ‎02-12-2018

Re: zc706, enable SOC Ethernet in DMA mode

@hbucher once again, Thank you!