I have a Sapphire Nitro+ RX 6800xt that I am trying to passthrough to a Windows 10 VM on Ubuntu 21.04. I am successfully able to pass the card through and get the drivers properly installed, but after waking from sleep, the vm hangs at the driver initialization. The TianoCore screen shows up and the Windows 10 Loading icon starts, but as the login screen would present, virt manager shows the vm as paused.
When the vm pauses, this is what the log shows:
2021-07-05T16:05:46.104126Z qemu-system-x86_64: vfio_err_notifier_handler(0000:0f:00.1) Unrecoverable error detected. Please collect any data possible and then kill the guest
2021-07-05T16:05:46.104250Z qemu-system-x86_64: vfio_err_notifier_handler(0000:0f:00.0) Unrecoverable error detected. Please collect any data possible and then kill the guest
I am able to successfully passthrough a GTX 760 and sleep does not cause any issues whatsoever. It appears to be a driver issue. Would anyone possibly be able to shed some light on this?
Edit: Fixed with the grub argument: pci=noaer