aws/aws-fpga

Linux Kernel 6 support for xdma

Fischiii opened this issue · 4 comments

When building the xdma drivers with ubuntu 22.04.3 (Kernel 6.2) or greater a build failure is reported:

ou are using: gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
/tmp/aws-fpga/sdk/linux_kernel_drivers/xdma/Makefile:25: XVC_FLAGS: .
/tmp/aws-fpga/sdk/linux_kernel_drivers/xdma/libxdma.c: In function ‘transfer_destroy’:
/tmp/aws-fpga/sdk/linux_kernel_drivers/xdma/libxdma.c:2855:25: error: implicit declaration of function ‘pci_unmap_sg’; did you mean ‘pci_unmap_rom’? [-Werror=implicit-function-declaration]
2855 | pci_unmap_sg(xdev->pdev, sgt->sgl, sgt->nents,
| ^~~~~~~~~~~~
| pci_unmap_rom

Building with Ubuntu 22.04.2 or lower (Kernel 5.19) works as expected.

Hello!

Thank you for reaching out with this issue. Can you confirm if you're building the XDMA drivers with this commit from AMD/Xilinx adding support for kernel 6.X?

Xilinx/dma_ip_drivers@9cdc9e3

@AWSjoeluc thanks for the swift response, we just tested it and with the newest version of the driver it is building successfully.

Glad to hear it's successfully working! Do you have any more questions before resolving this this issue?

No further questions. Thanks again.