Xilinx / Xilinx/dma_ip_drivers

Transfer timeout when using XDMA driver on Linux

Open
#175 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
856
Forks
570
PR merge metrics
No merged PRs in 30d

Description

Expected Behaviour

Data transfer should be successful

Actual Behaviour

Data transfer fails with 512 error and timeout is reported in log

Steps to Reproduce

Build and install the driver from https://github.com/Xilinx/dma_ip_drivers (current master/a7219ec)

Run the following script

def test():
    with open("/dev/xdma0_c2h_0", "rb") as xdma:
        data = xdma.read(4)
        print(data.hex())
 
 
if __name__ == '__main__':
    test()

Log is available here: log.txt

Notes

Works as expected on Windows 10

Linux version 2020.1 (a1d510f4eac17b9f293e0cabcfbf4f3fdb558e50) works as expected but no updated versions work.

System Information

Ubuntu 22.04

Kernel 5.15.0-41-generic

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided Python reproducer against the XDMA driver on Ubuntu 22.04 with kernel 5.15, then read log.txt and compare the behavior with version 2020.1 and the current master commit. Done means the 4-byte read from /dev/xdma0_c2h_0 completes successfully without the 512 error or timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.