<div dir="ltr">Hi,<div><br></div><div>I'm running into a weird issue with the vfio-pci driver</div><div><br></div><div>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. </div><div><br></div><div>In other words:</div><div>laptop off -> boot -> hotplug GPU : works great</div><div>laptop off -> boot -> do stuff (GPU *NOT* connected) -> sleep -> resume -> hotplug GPU: problem</div><div>laptop off -> boot -> hotplug GPU -> unplug GPU -> hotplug GPU : works great</div><div>laptop off -> boot -> hotplug GPU -> unplug GPU -> sleep -> resume -> hotplug GPU: problem</div><div><br></div><div>Weird stuff...</div><div><br></div><div>I'm honestly not sure that vfio-pci is to blame here since there are so many moving parts, but any guidance would be appreciated. </div><div><br></div><div>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.</div><div><br></div><div>thanks,</div><div>Max</div></div>