Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xdma: read write fpga user reg abnormal #278

Open
gongshuaiqi opened this issue May 6, 2024 · 1 comment
Open

xdma: read write fpga user reg abnormal #278

gongshuaiqi opened this issue May 6, 2024 · 1 comment

Comments

@gongshuaiqi
Copy link

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

@hinxx
Copy link

hinxx commented May 6, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants