QaidVoid / Complete-Single-GPU-Passthrough

Single GPU VFIO Passthrough Guide
755 stars 38 forks source link

Reattach PCI devices before swaping drivers #15

Closed binarydepth closed 1 year ago

binarydepth commented 2 years ago

Tested with AMD GPU

QaidVoid commented 1 year ago

Does this fix any issue? AFAIK the current script should work fine.

binarydepth commented 1 year ago

In my setup I had black screen, fixed after swapping command order. I am re-attaching the PCI device before swapping the driver, the logic is that the PCI should be there before trying to remove VFIO and attach AMDGPU. Maybe Nvidia does this themselves but AMD seems to need VFIO to re-attach and be available for the driver.

QaidVoid commented 1 year ago

Oh, interesting. I can't test it but I guess it should work on NVIDIA, too. Thank you!