UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor uriyabjungo
Visitor
401 Views
Registered: ‎08-08-2018

Issue with QDMA Driver: /dev/qdma01000-MM-0, W off 0x0, 0x200 failed -1. write file: Input/output error

Hi,

I've created a bitstream for Vivado 2018.3, using VCU118 Revision A, and using the instructions in  

https://www.xilinx.com/Attachment/Xilinx_Answer_71453_QDMA_Performance_v2.pdf

Successfully programmed the device with it,

And using the Linux QDMA driver in Xilinx_Answer_70928_QDMA_Linux_Driver_Files_ver2

Was not able to make it work:

 

I ran:

dmactl qdma01000 q add idx 2 mode mm dir h2c

dmactl qdma01000 q start idx 2 mode mm dir h2c

sudo ./dma_to_device -d /dev/qdma01000-MM-2 -s 512

and got the following:

/dev/qdma01000-MM-2, W off 0x0, 0x200 failed -1.
write file: Input/output error

and also these lines in dmesg:

[89712.419329] qdma:qdma_request_wait_for_cmpl: qdma01000-MM-0: req 0x00000000b5e29f40, W,512,0/512,0x0, done 0, err 0, tm 10000.
[89712.419333] qdma:qdma_descq_dump: qdma01000-MM-0: 0x0/0x0, desc sz 2048/2035, pidx 12, cidx 0

When trying to debug the code of dma_to_device it seems that the open() function works okay, but the error comes from the write() function that is called for fpga_fd.

 

Any suggestions in order to make it work?

 

0 Kudos
5 Replies
Moderator
Moderator
334 Views
Registered: ‎06-29-2011

Re: Issue with QDMA Driver: /dev/qdma01000-MM-0, W off 0x0, 0x200 failed -1. write file: Input/output error

Hi @uriyabjungo 

Can you apply the tactical patch detailed in AR:72013 below that fixes some known issues with the QDMA IP for v2018.3

https://www.xilinx.com/support/answers/72013.html

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

Kind regards,
Gareth
0 Kudos
Visitor uriyabjungo
Visitor
247 Views
Registered: ‎08-08-2018

Re: Issue with QDMA Driver: /dev/qdma01000-MM-0, W off 0x0, 0x200 failed -1. write file: Input/output error

Hi.
I applied the patch using method 2 in the readme (setting XILINX_PATH environment variable). I couldn't find any indication in Vivado that it was actually applied.

Even after running it with the patch (presumably), regenerating the bitstream, programming the device again, and running the same sequence of commands I still get the same error in Ubuntu.

In Windows I see 4 instances in of the device in the Device manager with a quotation mark and looking inside I get error 10 (driver could not start).

Please further instruct how to solve this.

 

Best Regards

0 Kudos
Visitor uriyabjungo
Visitor
124 Views
Registered: ‎08-08-2018

Re: Issue with QDMA Driver: /dev/qdma01000-MM-0, W off 0x0, 0x200 failed -1. write file: Input/output error

?

0 Kudos
82 Views
Registered: ‎05-22-2018

Re: Issue with QDMA Driver: /dev/qdma01000-MM-0, W off 0x0, 0x200 failed -1. write file: Input/output error

Hi @garethc

Any chance you can provide any further support to @uriyabjungo who is still stuck
https://forums.xilinx.com/t5/PCI-Express/Issue-with-QDMA-Driver-dev-qdma01000-MM-0-W-off-0x0-0x200-failed/m-p/967168#M13767
thanks you.

Best Regards
0 Kudos
Moderator
Moderator
50 Views
Registered: ‎06-29-2011

Re: Issue with QDMA Driver: /dev/qdma01000-MM-0, W off 0x0, 0x200 failed -1. write file: Input/output error

Hi @uriyabjungo 

First, have you tried with the newest version of the tools v2019.1.1? Also if you apply a patch you will see the patch highlighted beside the Vivado version at the top of the Vivado enviroment when you open Vivado. e.g. "Vivado 2019.1.1_AR72653" as per my screen shot below. Can you cofirm that you see the patch installed?

applied_patch.JPG

 

I am going to run through this AR:71543 to see if I see the same with v2019.1.1 version of Vivado.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

Kind regards,
Gareth
0 Kudos