cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
avinashc
Explorer
Explorer
232 Views
Registered: ‎10-09-2018

illegal seek for XDMA_user access

Hello,

@deepeshm @nagabhar @liy 

I am working on PICO EVB board and having some issues with xdma_user access for AXI_lite bus.

System: Vivado, ubuntu 18.04.2, dma-ip-driver from xilinx 65444

 

run_test working file, result : passed

sudo ./dma_from_device -d /dev/xdma0_c2h_0 -f infile.bin -s 4096 -a 1000 -o 24
/dev/xdma0_c2h_0 ** Average BW = 4096, 90.876816

above command working fine.


rnd4@rnd4-HP-Slimline-Desktop-PC-270-p0XX:~/xilinx/pico/dma_ip_drivers-master/XDMA/linux-kernel/tools$ sudo ./dma_from_device -d /dev/xdma0_user -f infile.bin -s 4096 -a 1000 -o 24
/dev/xdma0_user, seek off 0xffffffffffffffff != 0x3e8.
seek file: Illegal seek

this command is not working, and I am not understanding Illegal seek error.

 

 

dma.png

 

I have tried with giving offset as shown by side -->

tried with this offset also and my BAR0 address offset also( maybe I am wrong here and did not understand cocept)

 

My DMA is working fine but other BAR is not working,What may be the possible reason here?

What are the ways to solve above error?

 

 

 

 

 

-----------------

with this command also i am not getting proper data

sudo ./reg_rw /dev/xdma0_user 0x0000 w 0x12121212
argc = 5
device: /dev/xdma0_user
address: 0x00000000
access type: write
access width given.
access width: word (32-bits)
character device /dev/xdma0_user opened.
Memory mapped at address 0x7f189ccdc000.
Write 32-bits value 0x12121212 to 0x00000000 (0x0x7f189ccdc000)


rnd4@rnd4-HP-Slimline-Desktop-PC-270-p0XX:~/xilinx/pico/dma_ip_drivers-master/XDMA/linux-kernel/tools$ sudo ./reg_rw /dev/xdma0_user 0x0000 r
argc = 4
device: /dev/xdma0_user
address: 0x00000000
access type: write
access width given.
access width: word (32-bits)
character device /dev/xdma0_user opened.
Memory mapped at address 0x7f1eb872d000.
Read 32-bit value at address 0x00000000 (0x7f1eb872d000): 0xffffffff

 

writing data and reading data is not matching.

So if I try above commands to send single data or file, after that DMA detection also gets stopped.

Basically it affecting working thing.

What can be done here?

 

Thank You!

Avinash

 

0 Kudos
1 Reply
pvenugo
Moderator
Moderator
127 Views
Registered: ‎07-31-2012

Hi @avinashc ,

Could you check if xdma0_user is registered in /dev directory?

Also, make sure that offset address of XDMA matches with script.

 

Regards

Praveen


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