XRT icon indicating copy to clipboard operation
XRT copied to clipboard

xocl problems on Linux 6.6

Open goekce opened this issue 2 years ago • 2 comments

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.

goekce avatar Jan 25 '24 07:01 goekce

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

maxzhen avatar Jan 25 '24 16:01 maxzhen

Yes @maxzhen .

chvamshi-xilinx avatar Jan 25 '24 17:01 chvamshi-xilinx