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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor lampertg
Visitor

zc706, enable SOC Ethernet in DMA mode

Jump to solution

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

0 Kudos
1 Solution

Accepted Solutions
Scholar hbucher
Scholar

Re: zc706, enable SOC Ethernet in DMA mode

Jump to solution

@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

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
7 Replies
Scholar hbucher
Scholar

Re: zc706, enable SOC Ethernet in DMA mode

Jump to solution

@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

 

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
Visitor lampertg
Visitor

Re: zc706, enable SOC Ethernet in DMA mode

Jump to solution

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

0 Kudos
Visitor lampertg
Visitor

Re: zc706, enable SOC Ethernet in DMA mode

Jump to solution

@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

0 Kudos
Scholar hbucher
Scholar

Re: zc706, enable SOC Ethernet in DMA mode

Jump to solution

@lampertg Lwip. Enable it on the BPS.

The SDK comes with one example

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
Visitor lampertg
Visitor

Re: zc706, enable SOC Ethernet in DMA mode

Jump to solution

@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 

 

0 Kudos
Scholar hbucher
Scholar

Re: zc706, enable SOC Ethernet in DMA mode

Jump to solution

@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

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
Visitor lampertg
Visitor

Re: zc706, enable SOC Ethernet in DMA mode

Jump to solution

@hbucher once again, Thank you!

0 Kudos