Xilinx / XRT

Run Time for AIE and FPGA based platforms
https://xilinx.github.io/XRT
Other
533 stars 457 forks source link

xocl problems on Linux 6.6 #7906

Open goekce opened 5 months ago

goekce commented 5 months ago

The patch #7899 got rid of compilation errors on >= 6.6 kernels, however I get following runtime errors on Alveo U280 programmed with the standard deployment platform (xilinx_u280_gen3x16_xdma_base_1) during boot and validation (xbutil validate):

memcpy: detected field-spanning write (size 132) of single field "priv_data->data" at /var/lib/dkms/xrt-xocl/r7457.ead20617c/build/driver/xocl/mgmtpf/../xocl_subdev.c:544 (size 8)
...
RIP: 0010:__xocl_subdev_construct+0x5af/0x860 [xclmgmt]
...
memcpy: detected field-spanning write (size 32) of single field "mb_req->data" at /var/lib/dkms/xrt-xocl/r7457.ead20617c/build/driver/xocl/userpf/xocl_drv.c:869 (size 4)
...
Workqueue: xocl_wq0 xocl_work_cb [xocl]
RIP: 0010:xocl_refresh_subdevs+0x9bf/0xe50 [xocl]
...
xclmgmt 0000:a1:00.0: xclmgmt_probe: Failed to create VSEC devices
...
xocl 0000:a1:00.1: mailbox.u.9437184 ffff8d5e0cfd0010 timeout_msg: found waiting msg time'd out
...

On an 6.5 kernel I don't get these errors.

I don't have the capacity to investigate the differences between 6.5 and 6.6, however I can happily provide more details.

maxzhen commented 5 months ago

Hi @chvamshi-xilinx , is this something your team can take a look when we move to support new version of Linux?

chvamshi-xilinx commented 5 months ago

Yes @maxzhen .