[i=s] 本帖最后由 mundane 于 2025-3-7 00:46 编辑 [/i]<br />
<br />
[i=s] 本帖最后由 mundane 于 2025-3-7 00:44 编辑 [/i]
[i=s] 本帖最后由 mundane 于 2025-3-7 00:24 编辑
[i=s] 本帖最后由 mundane 于 2025-3-6 23:01 编辑
已知飞牛最新测试版已经是6.12内核了。
如果pve开启了核显sriov,直通了vf核显给飞牛,默认是无法使用核显硬件解码的。
之前皮蛋大佬编译了旧内核的i915 vf核显,替换后可以正常解码。
但是新内核无法支持。
按核显仓库教程
https://github.com/strongtz/i915-sriov-dkms
Linux Guest Installation Steps (Tested Ubuntu 24.04/Kernel 6.8)
We will need to run the same driver under Linux guests.
- Install build tools
apt install build-* dkms linux-headers-$(uname -r) linux-modules-extra-$(uname -r)
- Download and install the
.deb wget -O /tmp/i915-sriov-dkms_2025.02.03_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2025.02.03/i915-sriov-dkms_2025.02.03_amd64.deb"
dpkg -i /tmp/i915-sriov-dkms_2025.02.03_amd64.deb
- Update kernel parameters
nano /etc/default/grub and change GRUB_CMDLINE_LINUX_DEFAULT to i915.enable_guc=3 module_blacklist=xe , or add to it if you have other arguments there already.
Example:GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on i915.enable_guc=3 module_blacklist=xe"
- Once that's done, update
grub and initramfs , then reboot.update-grub
update-initramfs -u
- Once the VM is back up again, do
dmesg | grep i915 to see if your VF is recognized by the kernel. You should also check if xe is blacklisted correctly by running lspci -nnk to see which driver is in use by the VF.
- Optionally, install
vainfo by running apt install vainfo , then do vainfo to see if the iGPU has been picked up by the VAAPI.
- If OpenCL is desired:
apt install intel-opencl-icd
apt install clinfo
clinfo
因为测试版自带了linux-headers,所以只需要按照教程直接安装依赖
------------------------dkms编译安装-----------------------
apt-mark unhold libc6:amd64
apt install libc6-dev
apt install -y build-essential dkms
Building for 6.12.5-trim
Building initial module for 6.12.5-trim
cp: cannot stat '/lib/modules/6.12.5-trim/build/.config': No such file or directory
Done.
可能是飞牛官方内核有修改,第一步就无法进行下去了。
无脑 sudo apt update 和 sudo apt upgrade 会破坏官方依赖。
出现数据库报错等等问题,
请大佬分享下如何最小化对飞牛OS的修改,完善sriov驱动安装呢?
——————————
dmesg | grep i915
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.12.5-trim root=UUID=320849a9-7f0f-48e1-be32-8195210bbf62 ro modprobe.blacklist=pcspkr quiet intel_iommu=on i915.enable_guc=3 module_blacklist=xe
[ 0.010608] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.12.5-trim root=UUID=320849a9-7f0f-48e1-be32-8195210bbf62 ro modprobe.blacklist=pcspkr quiet intel_iommu=on i915.enable_guc=3 module_blacklist=xe
[ 4.304105] i915: loading out-of-tree module taints kernel.
[ 4.304136] i915: module verification failed: signature and/or required key missing - tainting kernel
[ 4.304245] i915: Unknown symbol intel_pxp_irq_enable (err -2)
[ 4.304360] i915: Unknown symbol intel_pxp_debugfs_register (err -2)
[ 4.304527] i915: Unknown symbol intel_pxp_resume_complete (err -2)
[ 4.304563] i915: Unknown symbol intel_pxp_gsccs_is_ready_for_sessions (err -2)
[ 4.304745] i915: Unknown symbol intel_pxp_terminate (err -2)
[ 4.304814] i915: Unknown symbol intel_pxp_runtime_suspend (err -2)
[ 4.304963] i915: Unknown symbol intel_pxp_session_management_init (err -2)
[ 4.305532] i915: Unknown symbol intel_pxp_irq_handler (err -2)
[ 4.306218] i915: Unknown symbol intel_pxp_suspend (err -2)
[ 4.306268] i915: Unknown symbol intel_pxp_gsccs_init (err -2)
[ 4.306753] i915: Unknown symbol intel_pxp_gsccs_fini (err -2)
[ 4.306804] i915: Unknown symbol intel_pxp_suspend_prepare (err -2)
[ 4.307013] i915: Unknown symbol intel_pxp_irq_disable (err -2)
[ 4.307096] i915: Unknown symbol intel_pxp_runtime_resume (err -2) |