dma_ip_drivers icon indicating copy to clipboard operation
dma_ip_drivers copied to clipboard

Make XDMA driver compatible with linux kernel >= 5.16

Open leragequit opened this issue 2 years ago • 5 comments

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

leragequit avatar Jun 14 '23 13:06 leragequit

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

alonbl avatar Jul 20 '23 16:07 alonbl

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

leragequit avatar Jul 21 '23 07:07 leragequit

Fixed with commit 9cdc9e335d51dc4e0e9d9fd6b4592ae55e30de72

alonbl avatar Nov 08 '23 20:11 alonbl

added compatibility for 6.1 and 6.6 kernel

leragequit avatar May 14 '24 09:05 leragequit

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?

ycurbeloquside avatar Jul 31 '24 09:07 ycurbeloquside