Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sriov_numvfs can not write #143

Open
ganyao114 opened this issue Mar 9, 2024 · 6 comments
Open

sriov_numvfs can not write #143

ganyao114 opened this issue Mar 9, 2024 · 6 comments

Comments

@ganyao114
Copy link

root@pve:# echo 6(17) > /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
Copy link
Author

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
Copy link

ieiian commented Mar 12, 2024

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
Copy link

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

Intel VT-d enabled
Linux 6.5.13-1-pve

@ieiian
Copy link

ieiian commented Mar 22, 2024

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
Copy link

iiilin commented Mar 22, 2024

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
Copy link

chchia commented Mar 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants