QaidVoid / Complete-Single-GPU-Passthrough

Single GPU VFIO Passthrough Guide
785 stars 38 forks source link

Reattach PCI devices before swaping drivers #15

Closed binarydepth closed 2 years ago

binarydepth commented 2 years ago

Tested with AMD GPU

QaidVoid commented 2 years ago

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

binarydepth commented 2 years 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 2 years ago

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