-
Notifications
You must be signed in to change notification settings - Fork 431
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
removed extra arguments in iocb functions starting from kernel 5.16 #150
Conversation
Is that the correct error to remove? Do you want to keep res or res2? |
I removed the second argument, |
Sorry. I meant the second result. |
QDMA driver has some code duplication and can be updated in the same way. |
I'm somewhat worried that the diff shows that they were worried that the USB drivers were using this. It seems that the second parameter isn't always forcibly zero :/ |
I was able to build on |
@jrwagz are you using XDMA or QDMA? Can you share the information about the test cases that are failing? |
I'm using XDMA. while I can't share the source of the tests, I can say that they use In particular, I can reduce the test to a single thread, and see that when they use a very large transfer count (10000), The annoying thing is that the kernel module is hung up each time this happens, and requires a system reboot to get it back. |
Each thread basically does the following: write contents of a file to it's own ram location via |
having said all of that, I left the test running while typing this up, and it did eventually pass, however I'm using XDMA, and loading the driver with poll_mode=1 |
Here are the test results: (reduced in size, but you'll still see the massive difference in speed. kernel 5.15, without the proposed mods in this PR:
kernel 5.16, with the proposed mods in this PR:
|
805ca29
to
459c4f9
Compare
@jrwagz I ran the same command on 5.16 with this PR and got similar results on Gen 4 x 8:
There is no major difference in speed. So maybe try the latest code? I rebased onto master. |
Closing in favour of #238 . Note that when @karenx-xilinx posted fixes for 5.16 to the master branch a few days ago 9cdc9e3, the field |
Fixes #149
Tested on 5.16 - it works.