Comments (4)
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.
Is fixed by #68
from dma_ip_drivers.
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.
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)
- xdma driver install error HOT 1
- And here is complete guide for repaire the issue: HOT 2
- what is the unit of xdma BW in xdma run test
- assignment of read-only member ‘vm_flags’ HOT 4
- ‘struct genl_ops’ has no member named ‘policy’ HOT 1
- The xdma linux kernel driver does not build against Ubuntu kernel 6.5.x (Ubuntu 22.04.1_LTS). Any idea? HOT 3
- dma-perf can only get half of the bandwidth of a x8 PCIe Gen 5 card. Any suggestions?
- "DESC_COMPL" and "DESC_STOPPED" HOT 1
- Up to date drivers for Linux 6.8.9
- Is there a way for xdma driver to serve risc-v PC
- xdma: read write fpga user reg abnormal HOT 1
- Ubuntu 24.04 -Werror=incompatible-pointer-types HOT 1
- Warning when install xdma drivers:modules_install: missing 'System.map' file. Skipping depmod.
- kernel headers after linux 6.3
- can XDMA used with DPDK?
- XDMA driver for ubuntu24.04 HOT 2
- Building failed HOT 16
- 7022 (rev ff)
- XMDA: Low perfomance numbers on Gen3x16 HOT 8
- Driver assumes SBI is out of reset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dma_ip_drivers.