Xilinx / dma_ip_drivers

Xilinx QDMA IP Drivers
https://xilinx.github.io/dma_ip_drivers/
581 stars 421 forks source link

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

Open leragequit opened 1 year ago

leragequit commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Fixed with commit 9cdc9e335d51dc4e0e9d9fd6b4592ae55e30de72

leragequit commented 6 months ago

added compatibility for 6.1 and 6.6 kernel

ycurbeloquside commented 3 months ago

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?