summary refs log tree commit diff stats
path: root/results/classifier/accel-gemma3:12b/kvm/1671677
blob: 0144f6903196203a463fc98fb920f589103c4f2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
vfio-pci passthrough issue after resume from suspend


I'm running into a weird issue with the vfio-pci driver through qemu

I use it on a laptop and I passthrough an external GPU connected via PCI express. In general this works well, however if the laptop has *ever* suspended since its last boot, then the windows guest reports an error 43 on the card and I get no output on the monitor that it is connected to. This is really weird to me since it works fine if I boot the latop from power-off, and hotplug the card. It's only if the laptop has ever suspended since it's last boot that I see this issue. Even if it was suspended before the card was ever hotplugged. 

In other words:
laptop off -> boot -> hotplug GPU : works great
laptop off -> boot -> do stuff (GPU *NOT* connected) -> sleep -> resume -> hotplug GPU: problem
laptop off -> boot -> hotplug GPU -> unplug GPU -> hotplug GPU : works great
laptop off -> boot -> hotplug GPU -> unplug GPU -> sleep -> resume -> hotplug GPU: problem

Weird stuff...

I'm honestly not sure that vfio-pci/qemu is to blame here since there are so many moving parts, but im not really sure where else to report this to

What I have tried is using the sysfs interface to remove/rescan/poweroff/etc the PCI devices in questions (graphics card and it's HDMI audio) and this also does help.

QEMU version: 2.6.1

Please let me know what other information I can provide