Xen Zynq Distribution Support Forums

Full Version: DMA from DomU on ZynqMP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys,

Is there any of you that already performed a DMA from DomU on Zynq Ultrascale+?
For instance, doing write/read using /dev/mem or with /dev/uio?
Thank you.

Best regards,
Arief
Yes, we have passed through a DMA device and the User Manual gives an example of passing through a GEM which uses a DMA engine.

What exactly are you trying to do?

From the devices you list it looks like you may be trying to use an UIO driver, which might not be easy since UIO generally precludes the device's entry in the device tree, and Xen uses the device tree to appropriately setup the SMMU for DMA.

Nate
(12-11-2017, 02:04 PM)Nathan.Studer Wrote: [ -> ]Yes, we have passed through a DMA device and the User Manual gives an example of passing through a GEM which uses a DMA engine.

What exactly are you trying to do?

From the devices you list it looks like you may be trying to use an UIO driver, which might not be easy since UIO generally precludes the device's entry in the device tree, and Xen uses the device tree to appropriately setup the SMMU for DMA.

    Nate

Thanks for your reply, Nate.

I'm trying to run an IP on PL which communicates with a program that runs on Linux.
For now, it all runs on Dom0. Now that I want to provide the same capability on DomU,
I need the DomU to be able to write/read to the IP through AXI interface.

Right now, I'm using /dev/mem port to perform a transfer between Dom0 - PL.
It seems that I can't do the same for DomU - PL. I know it's harder to use UIO driver.
That's why I'm using /dev/mem or even devmem command on Petalinux.

If you know any source/document/manual that can help me get through this, it would be much appreciated.
 
Thank you.

Arief