myriadrf / xtrx_linux_pcie_drv

XTRX PCI driver for linux
Apache License 2.0
16 stars 22 forks source link

xtrx: fix PCI DMA allow/free with kernel >= 5.18 #14

Closed trabucayre closed 2 years ago

trabucayre commented 2 years ago

Since kernel 5.18.0 pci_alloc_consistent pci_free_consistent and pci_set_consistent_dma_mask are no more available and must be replaced by dma_alloc_coherent dma_free_coherent and dma_set_mask_and_coherent This PR add preprocessing test using kernel version to keep backward compatibility and fix for kernel >= 5.18.

trabucayre commented 2 years ago

Fixed