Xilinx / video-sdk

https://xilinx.github.io/video-sdk
Other
32 stars 14 forks source link

Xilinx Video SDK 3.0 Not working linux kernel 6.1.94 #94

Open tharunravikumar opened 4 months ago

tharunravikumar commented 4 months ago

Dear Team,

We are in the process of installing Xilinx Video SDK 3.0 for the Alveo U30 card on Debian 12.6 with Linux kernel version 6.1.94. However, we are encountering an error as shown below:

"dpkg: dependency problems prevent configuration of xilinx-alveo-u30-core: xilinx-alveo-u30-core depends on xrt (= 2.11.722); however: Version of xrt on system is 2.16.204."

We have also attempted to install xrt version 2.11.722, but we are facing issues with compiling the drivers for kernel version 6.1.94.

`dpkg -i *.deb Selecting previously unselected package xilinx-alveo-u30-core. (Reading database ... 132101 files and directories currently installed.) Preparing to unpack xilinx-alveo-u30-core_3.0.1_22.04-amd64.deb ... Unpacking xilinx-alveo-u30-core (3.0.1) ... Selecting previously unselected package xilinx-alveo-u30-examples. Preparing to unpack xilinx-alveo-u30-examples_3.0.3_22.04-amd64.deb ... Unpacking xilinx-alveo-u30-examples (3.0.3) ... Selecting previously unselected package xilinx-alveo-u30-ffmpeg. Preparing to unpack xilinx-alveo-u30-ffmpeg_3.0.0_22.04-amd64.deb ... Unpacking xilinx-alveo-u30-ffmpeg (3.0.0) ... Selecting previously unselected package xilinx-alveo-u30-gstreamer. Preparing to unpack xilinx-alveo-u30-gstreamer_3.0.0_22.04-amd64.deb ... Unpacking xilinx-alveo-u30-gstreamer (3.0.0) ... dpkg: dependency problems prevent configuration of xilinx-alveo-u30-core: xilinx-alveo-u30-core depends on xrt (= 2.11.722); however: Version of xrt on system is 2.16.204. xilinx-alveo-u30-core depends on xilinx-container-runtime (= 1.1.27); however: Package xilinx-container-runtime is not installed.

dpkg: error processing package xilinx-alveo-u30-core (--install): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of xilinx-alveo-u30-ffmpeg: xilinx-alveo-u30-ffmpeg depends on xilinx-alveo-u30-core (>= 3.0.0); however: Package xilinx-alveo-u30-core is not configured yet. xilinx-alveo-u30-ffmpeg depends on xilinx-alveo-u30-core (<= 3.9.9); however: Package xilinx-alveo-u30-core is not configured yet. xilinx-alveo-u30-ffmpeg depends on xilinx-u30-xffmpeg (= 4.4.xlnx.2); however: Version of xilinx-u30-xffmpeg on system is 4.4.xlnx.1. xilinx-alveo-u30-ffmpeg depends on xilinx-u30-launcher (= 1.1.1); however: Version of xilinx-u30-launcher on system is 1.1.0. xilinx-alveo-u30-ffmpeg depends on xilinx-u30-jobslotreservation (= 1.1.1); however: Version of xilinx-u30-jobslotreservation on system is 1.1.0.

dpkg: error processing package xilinx-alveo-u30-ffmpeg (--install): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of xilinx-alveo-u30-gstreamer: xilinx-alveo-u30-gstreamer depends on xilinx-alveo-u30-core (>= 3.0.0); however: Package xilinx-alveo-u30-core is not configured yet. xilinx-alveo-u30-gstreamer depends on xilinx-alveo-u30-core (<= 3.9.9); however: Package xilinx-alveo-u30-core is not configured yet. xilinx-alveo-u30-gstreamer depends on xilinx-u30-gstreamer-1.16.2 (= 1.1.0); however: Version of xilinx-u30-gstreamer-1.16.2 on system is 1.0. xilinx-alveo-u30-gstreamer depends on xilinx-u30-vvas (= 1.1.0); however: Version of xilinx-u30-vvas on system is 1.0.

dpkg: error processing package xilinx-alveo-u30-gstreamer (--install): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of xilinx-alveo-u30-examples: xilinx-alveo-u30-examples depends on xilinx-alveo-u30-ffmpeg (>= 3.0.0); however: Package xilinx-alveo-u30-ffmpeg is not configured yet. xilinx-alveo-u30-examples depends on xilinx-alveo-u30-ffmpeg (<= 3.9.9); however: Package xilinx-alveo-u30-ffmpeg is not configured yet. xilinx-alveo-u30-examples depends on xilinx-alveo-u30-gstreamer (>= 3.0.0); however: Package xilinx-alveo-u30-gstreamer is not configured yet. xilinx-alveo-u30-examples depends on xilinx-alveo-u30-gstreamer (<= 3.9.9); however: Package xilinx-alveo-u30-gstreamer is not configured yet.

dpkg: error processing package xilinx-alveo-u30-examples (--install): dependency problems - leaving unconfigured Errors were encountered while processing: xilinx-alveo-u30-core xilinx-alveo-u30-ffmpeg xilinx-alveo-u30-gstreamer xilinx-alveo-u30-examples `

`dpkg -i xrt_202110.2.11.722_22.04-amd64-xrt.deb dpkg: warning: downgrading xrt from 2.16.204 to 2.11.722 (Reading database ... 132336 files and directories currently installed.) Preparing to unpack xrt_202110.2.11.722_22.04-amd64-xrt.deb ... Unregistering old XRT Linux kernel module sources 2.16.204 from dkms on Ubuntu/Debian Module xrt-2.16.204 for kernel 6.1.94 (x86_64). Before uninstall, this module version was ACTIVE on this kernel.

xocl.ko:

xclmgmt.ko:

cat /var/lib/dkms/xrt/2.11.722/build/make.log DKMS make.log for xrt-2.11.722 for kernel 6.1.94 (x86_64) Mon Jul 29 17:42:19 IST 2024 cd userpf; make all make[1]: Entering directory '/var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf' /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf make -C /lib/modules/6.1.94/build M=/var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf modules make[2]: Entering directory '/usr/src/linux-headers-6.1.94' CC [M] /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_subdev.o /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_subdev.c: In function ‘__xocl_subdev_destroy’: /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_subdev.c:397:25: warning: this statement may fall through [-Wimplicit-fallthrough=] 397 | device_release_driver(&pldev->dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_subdev.c:399:17: note: here 399 | case XOCL_SUBDEV_STATE_ADDED: | ^~~~ In file included from ./include/linux/string.h:293, from ./include/linux/uuid.h:12, from ./include/linux/mod_devicetable.h:13, from ./include/linux/pci.h:27, from /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_subdev.c:16: /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_subdev.c: In function ‘xocl_subdev_create_vsec_devs’: ./include/linux/fortify-string.h:57:33: warning: this statement may fall through [-Wimplicit-fallthrough=] 57 | #define __underlying_memcpy __builtin_memcpy | ^ ./include/linux/fortify-string.h:469:9: note: in expansion of macro ‘__underlying_memcpy’ 469 | __underlying_##op(p, q, __fortify_size); \ | ^~~~~~~~~~~~~ ./include/linux/fortify-string.h:514:26: note: in expansion of macro ‘__fortify_memcpy_chk’ 514 | #define memcpy(p, q, s) __fortify_memcpy_chk(p, q, s, \ | ^~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_subdev.c:1625:25: note: in expansion of macro ‘memcpy’ 1625 | memcpy(((struct xocl_flash_privdata *) | ^~~~~~ /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_subdev.c:1630:17: note: here 1630 | case XOCL_VSEC_FLASH_TYPE_SPI_IP: | ^~~~ CC [M] /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_ctx.o CC [M] /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_thread.o CC [M] /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_fdt.o CC [M] /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_xclbin.o CC [M] /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../xocl_debug.o CC [M] /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../subdev/xdma.o CC [M] /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../subdev/qdma.o /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../subdev/qdma.c: In function ‘qdma_migrate_bo’: /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../subdev/qdma.c:490:17: error: implicit declaration of function ‘pci_map_sg’; did you mean ‘pci_map_rom’? [-Werror=implicit-function-declaration] 490 | nents = pci_map_sg(XDEV(xdev)->pdev, sgt->sgl, sgt->orig_nents, dir); | ^~~~~~~~~~ | pci_map_rom /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../subdev/qdma.c:516:9: error: implicit declaration of function ‘pci_unmap_sg’; did you mean ‘pci_unmap_rom’? [-Werror=implicit-function-declaration] 516 | pci_unmap_sg(XDEV(xdev)->pdev, sgt->sgl, nents, dir); | ^~~~~~~~~~~~ | pci_unmap_rom /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../subdev/qdma.c: In function ‘cmpl_aio’: /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../subdev/qdma.c:870:9: error: too many arguments to function ‘kiocb->ki_complete’ 870 | kiocb->ki_complete(kiocb, done_bytes, error); | ^~~~~ /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../subdev/qdma.c: In function ‘qdma_stream_ioctl_alloc_buffer’: /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../subdev/qdma.c:1617:32: error: ‘PCI_DMA_BIDIRECTIONAL’ undeclared (first use in this function); did you mean ‘DMA_BIDIRECTIONAL’? 1617 | xobj->sgt->orig_nents, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../subdev/qdma.c:1617:32: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:255: /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf/../subdev/qdma.o] Error 1 make[2]: *** [Makefile:2035: /var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-6.1.94' make[1]: *** [Makefile:125: all] Error 2 make[1]: Leaving directory '/var/lib/dkms/xrt/2.11.722/build/driver/xocl/userpf' make: *** [Makefile:2: all] Error 2

NastoohX commented 3 months ago

Hi, Indeed, as noted in https://xilinx.github.io/video-sdk/v3.0/release_notes.html#supported-platforms-and-operating-systems, kernel 6.1 is not one of the supported kernels. I will bring up this request with our dev team and update the thread if any relevant info becomes available. Cheers,