https://bugs.freedesktop.org/show_bug.cgi?id=101946
--- Comment #25 from Luke A. Guest laguest@archeia.com ---
Hi Luke, few questions. When booting the host, do you boot with amdgpu or vfio-pci bound to the GPU? After you've started a VM, did you bind back to amdgpu or did you stay on vfio-pci?
I have 2 AMD GPU's, R9 390 (host) and R9 380 (guest). I boot with the 380 being passed over to vfio-pci. On exit the VM sets the 380 back to vfio-pci.
Is it during vfio or amdgpu control that your system hangs on the second boot?
It was during a boot of the VM, the devices were attached to the vfio-pci driver.
If it's during amdgpu, have you tried my patch from comment 20?
I haven't tried it, I don't think it would apply to my card as it's VI not CIK. Although, if I were using the 390 (CIK) it likely would. The issues are similar though and I believe I've just proved that the so called hw reset bug, in may case anyway, is sw not hw.