Giter Site home page Giter Site logo

Comments (4)

X-Ryl669 avatar X-Ryl669 commented on September 26, 2024

I've the same issue and tried your workaround and it did not work for me. I think I've found two workaround.

Workaround 1

Make sure your buffer size is a multiple of a power of 2 (mine was 0x96000 and it failed, but once set to 0x100000 it worked flawlessly, with 0x100000 = 2¹⁰).

Workaround 2

This requires a bit more work on your code. Typically when it fails, the driver times out. You do get this information from user space since read returns a cryptic 512 error.

So first, I've changed the timeout to something very small (via ioctl IOCTL_XDMA_TIMEOUT_SET on /dev/xdma0_c2h_0) so it's not noticeable.

It must be a bit longer than the expected transfer time (you are in guesswhatwonderland here).
Then when it fails, I'm issuing 2 ioctl on the /dev/xdma0_control, the former with XDMA_IOCOFFLINE and the latter with XDMA_IOCONLINE.

This has for effect of resetting the driver's state to some known state (without resetting the PCIe device) and it's very fast. Then you can resume the failing transfer and it'll complete correctly up to the next time.

Obviously, the first workaround is preferred but anyway...

from dma_ip_drivers.

jberaud avatar jberaud commented on September 26, 2024

Is fixed by #68

from dma_ip_drivers.

jberaud avatar jberaud commented on September 26, 2024

But the message could be fixed because when interrupting a transfer, we could check that wait_event_interruptible has been interrupted by a signal before printing a trace that we have a timeout (which is not true).

from dma_ip_drivers.

hmaarrfk avatar hmaarrfk commented on September 26, 2024

Hello,

My name is Mark Harfouche. I am not affiliated with Xilinx in any way. Over the
years of using QDMA, I've been wanted better community organization.

I've created a fork of dma_ip_drivers which I intend to maintain and work with the
community at large to improve.

The fork can be found https://github.com/hmaarrfk/dma_ip_drivers

For now, I am stating the main goals of the repository in
hmaarrfk#2

If you are interested in working together, feel free to open an issue or PR to
my fork.

Best,

Mark

from dma_ip_drivers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.