dma_ip_drivers icon indicating copy to clipboard operation
dma_ip_drivers copied to clipboard

xdma: read write fpga user reg abnormal

Open gongshuaiqi opened this issue 1 year ago • 1 comments

I have a problem

CPU and FPGA,PCIE x1

I read and write the FPGA user space reg in the following order: write read write,

but the order of the FPGA capture is read write write

I disassembled the CPU code,the order is write read write, ok

why Read/write sequence error ?

thank you very much

gongshuaiqi avatar May 06 '24 13:05 gongshuaiqi

I'm guessing this is from your code and not using reg_rw utility from this repo or similar.

Are doing read()/write() syscalls or mmap()?

FWIW, mmap() always does the right thing for me (did not try read()/write() myself).

hinxx avatar May 06 '24 16:05 hinxx