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

Make XDMA driver compatible with linux kernel >= 5.16 #216

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

leragequit
Copy link

I was having trouble getting the driver to compile on my raspberry pi

with this patch its working again. adjusted caio->iocb->ki_complete call to the new function signature if compiled on kernel >= 5.16

and switched the deprecated pci_unmap_sg to the new dma_unmap_sg as well as the set_dma_mask functions

@alonbl
Copy link

alonbl commented Jul 20, 2023

You should probably condition this with the kernel version to keep backward compatibility

Eaxamples available in code:

#if KERNEL_VERSION(4, 13, 0) <= LINUX_VERSION_CODE

@leragequit
Copy link
Author

Hey @alonbl ,

unfortunately I forgot all about this and don't have a 4.13 system to test right now. Is this something you can do trivially or should i try to look into this at some point in the future when more time is available?

Best regards,

Sascha

@alonbl
Copy link

alonbl commented Nov 8, 2023

Fixed with commit 9cdc9e3

neutronstriker and others added 7 commits March 21, 2024 00:13
missing ";" at line 128 after "caio->iocb->ki_complete(caio->iocb, numbytes, -EBUSY)"
added depmod step
…ate removal of module name and obsolete iov_iter->__iov
@leragequit
Copy link
Author

added compatibility for 6.1 and 6.6 kernel

@ycurbeloquside
Copy link

Hi there,

I had tried in Ubuntu 22.04.4 LTS with 6.5.0 kernel version and is not working.

Screenshot from 2024-07-31 11-33-20

It is the same error that I am facing when using the master branch.

Am I doing something wrong? Did you test it with this kernel version?

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

Successfully merging this pull request may close these issues.

4 participants