现象
没有截图,下图[virtual]时需要重启host,为[disable]时可以用解决方案的命令

解决方案
setpcie -s 01:00.0 COMMAND=0x02
解释
this will enable memory mapped transfers for your pcie device. In 4.8 kernel something is changes, so drivers does not enable mm transfers by default. You can add this line in rc.local script, so it will enable it at system startup.
文章讲述了在Linux系统中,当使用virtual模式下需要重启host才能启用PCIE设备的内存映射传输功能。解决方案是通过修改rc.local脚本,添加一行命令(setpcie-s01:00.0COMMAND=0x02),让驱动在系统启动时自动启用这种传输方式。在4.8及以上内核中,驱动默认不开启内存映射,这个更改对此进行了说明。
322

被折叠的 条评论
为什么被折叠?



