Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zynq u-dma-buf with DMA #74

Open
gtortone opened this issue Mar 31, 2021 · 5 comments
Open

Zynq u-dma-buf with DMA #74

gtortone opened this issue Mar 31, 2021 · 5 comments

Comments

@gtortone
Copy link

Hi,
do you have an example/tutorial to use DMA on Zynq with u-dma-buf ?

I already have a Vivado design with a PL FIFO filled by a counter for Microzed (Zynq-7000) that work
with dma-proxy (Xilinx demo) but I'did not find any example on how to use your implementation to receive
data from DMA.

Thanks in advance.

@ikwzm
Copy link
Owner

ikwzm commented Mar 31, 2021

Thank you for the issue.

I haven't prepared a tutorial in particular, but the following repositories may be helpful.

@gtortone
Copy link
Author

gtortone commented Apr 1, 2021

Hi,
thanks a lot for the links ! They are very helpful for me to understand DMA on Zynq.
I realized that in your C code you are using DMA in direct-mode... do you have an example
to use DMA scatter-gather mode ?

Thanks a lot !

@ikwzm
Copy link
Owner

ikwzm commented Apr 1, 2021

Excuse me. There is no scatter-gather DMA sample. u-dma-buf reserves a "contiguous" memory space in the kernel as a buffer, so we don't use scatter-gather mode.

@gtortone
Copy link
Author

gtortone commented Apr 1, 2021

Hi,
thanks for the explanation... but I'm asking if it is possible to use scatter-gather DMA with multiple u-dma-buf kernel buffers... or inside a single u-dma-buf using different sub-buffers...

@ikwzm
Copy link
Owner

ikwzm commented Apr 1, 2021

I have no experience with it, but I think it is possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants