Hacker News new | ask | show | jobs
by MegaDeKay 347 days ago
I use the amdgpu driver and my luck has not been as good as yours. Can't sleep my PC without having it wake up to fill my logs with spam [0] and eventually crash.

Then there is the (in)famous AMD reset bug that makes AMD a real headache to use with GPU passthrough. The card can't be properly reset when the VM shuts down so you have to reboot the PC to start the VM a second time. There are workarounds but they only work on some cards & scenarios [1] [2]. This problem goes back to around the 390 series cards so they've had forever to properly implement reset according to the pci spec but haven't. nvidia handles this flawlessly

[0] https://gitlab.freedesktop.org/drm/amd/-/issues/3911

[1] https://github.com/gnif/vendor-reset

[2] https://github.com/inga-lovinde/RadeonResetBugFix

2 comments

I was under the impression that nvidia just didn't let consumer cards do GPU passthrough.
For the longest time they had something in their driver that threw an error and bailed if it detected the GPU was being passed through to a VM but that was easily worked around in qemu or libvirt. nvidia must have realized that that check in the driver was pointless and removed it.
I just read your comment today. And the good news is, someone just found the commit that triggered the sleep issue literally a couple hours ago. Fingers crossed a fix is incoming.
Yes, I saw that! No response from the devs yet. Hopefully this gets into the kernel soon as a bugfix.