strongtz / i915-sriov-dkms

dkms module of Linux i915 driver with SR-IOV support
1.1k stars 135 forks source link

sriov_numvfs can not write #143

Open ganyao114 opened 8 months ago

ganyao114 commented 8 months ago

root@pve:~# echo 6(1~7) > /sys/devices/pci0000:00/0000:00:02.0/sriov_numvfs -bash: echo: write error: No such file or directory

root@pve:~# echo 8(>7) > /sys/devices/pci0000:00/0000:00:02.0/sriov_numvfs -bash: echo: write error: Numerical result out of range

echo 0 > /sys/devices/pci0000:00/0000:00:02.0/sriov_numvfs is ok

I7 13620H SIROV enabled Linux pve 6.5.13-1-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.13-1

ganyao114 commented 8 months ago

Capabilities: [320 v1] Single Root I/O Virtualization (SR-IOV) IOVCap: Migration- 10BitTagReq- Interrupt Message Number: 000 IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy- 10BitTagReq- IOVSta: Migration- Initial VFs: 7, Total VFs: 7, Number of VFs: 0, Function Dependency Link: 00 VF offset: 1, stride: 1, Device ID: a7a8 Supported Page Size: 00000553, System Page Size: 00000001 Region 0: Memory at 000000611d000000 (64-bit, non-prefetchable) Region 2: Memory at 0000006000000000 (64-bit, prefetchable) VF Migration: offset: 00000000, BIR: 0

ieiian commented 8 months ago

I'm sure I encountered the same problem. It seems to be a problem with pve8.1, because I used pve8.0 (upgraded to pve8.1) and it was ok. I also used the 6.5.13-1-pve kernel. I hope anyone can find the problem. Please share the solution, thank you.

N100 BIOS-SIROV enabled Linux pve 6.5.13-1-pve

Akouniza commented 8 months ago

If you find the solution for the iGPU passthrough, please reply :) .

Intel VT-d enabled Linux 6.5.13-1-pve

ieiian commented 8 months ago

I'm sure I encountered the same problem. It seems to be a problem with pve8.1, because I used pve8.0 (upgraded to pve8.1) and it was ok. I also used the 6.5.13-1-pve kernel. I hope anyone can find the problem. Please share the solution, thank you.

N100 BIOS-SIROV enabled Linux pve 6.5.13-1-pve

Good news, I have solved this problem. My problem occurred with secure boot. If yours is the same as mine, you can try to turn off secure boot or load the DKMS key. The general process is as follows: mokutil --import /var/lib/dkms/mok.pub (set a password) reboot \<Startup screen operation>: Enroll MOK, Continue, Yes, <password>, Reboot Hope it can help friends who encounter the same problem

iiilin commented 8 months ago

I'm sure I encountered the same problem. It seems to be a problem with pve8.1, because I used pve8.0 (upgraded to pve8.1) and it was ok. I also used the 6.5.13-1-pve kernel. I hope anyone can find the problem. Please share the solution, thank you. N100 BIOS-SIROV enabled Linux pve 6.5.13-1-pve

Good news, I have solved this problem. My problem occurred with secure boot. If yours is the same as mine, you can try to turn off secure boot or load the DKMS key. The general process is as follows: mokutil --import /var/lib/dkms/mok.pub (set a password) reboot : Enroll MOK, Continue, Yes, <_password_>, Reboot Hope it can help friends who encounter the same problem

i have the same problem. but this don't work for me. i don't enable secure boot.

chchia commented 7 months ago

for me it was secure boot. proxmox enabled secure boot by default now.

chilltrout commented 2 months ago

did anyone resolve this? I'm also secure boot turned off and can only see 00:02.0 after following the docs on 6.8.12-1. I do however have the whole device passed to my HAOS VM running frigate inside it and it sees the GPU and tries to do HW decoding but wont have a bar of my reolink cameras or openvino