I recently tried to get PCI passthrough working on my system for something like the 6-7th time. Still not able to get it. I want to reverse the changes, and get my GPU back, but I am having troubles. See here to see the original setup.
As it stands, When I run lspci -k, the GPU doesent have any driver asigned to it.
/etc/initramfs-tools/modules
amdgpu
vfio
vfio-iommu-type1
vfio-virqfd
vfio-pci
/etc/modules
vfio
vfio-iommu-type1
vfio-pci
vfio-virqfd
im assuming I can clear both of these (minus the amdgpu?) and then update-initramfs?
I have also cleared my /etc/modprobe.d/nvidia.conf of
Primary (currently working) GPU is a 1070TI. Secondary is a RX550, which is not getting a kernel driver. Im honestly not sure what drivers I should be using in this case.
EDIT
Did you get vfio to bind to your amdgpu? Looking at your modules files, you are not specifying the IOMMU ID for your gpu that you want to be bound.
From archwiki
Vfio-pci normally targets PCI devices by ID, meaning you only need to specify the IDs of the devices you intend to passthrough.
So your modules file (or kernel parameters) should specify the IOMMU ID for your gpu like this:
vfio-pci.ids=10de:13c2,10de:0fbb (ids=your gpu, your gpu_audio)
I suggest using the kernel parameters as they are easier (IMO)
I was able to get the gpu to get the right driver, but unable to create the VM for some reason. It just Hung on creation, and I have broken the time box that I put on this project.
I have never really had luck with this MOBO/CPU. 1950X TR, (one of the first off the line), and a Zenith Extreme that I think has had a corrupted BIOS since the day I got it (even after a BIOS update)
Unfortunatly, I am still not getting a driver on the GPU or it’s audio after removing all the VFIO stuff.
“apt search amdgpu” output.
Sorting... Done
Full Text Search... Done
libdrm-amdgpu1/focal,now 2.4.101-2 amd64 [installed,automatic]
Userspace interface to amdgpu-specific kernel DRM services -- runtime
ricks-amdgpu-utils/focal,focal 2.6.0-1 all
AMD GPU performance adjustment and monitoring
xserver-xorg-video-amdgpu/focal,now 19.1.0-1 amd64 [installed,automatic]
X.Org X server -- AMDGPU display driver
xserver-xorg-video-amdgpu-hwe-18.04/focal 3:14.5 amd64
Transitional package for xserver-xorg-video-amdgpu-hwe-18.04
I feel like I should note that I still have not been able to find the ids to actually remove, from my grub (which I installed) or systemd-boot(which I have now re-installed) kernel params. they were just the default params.
edit: cat /proc/cmdline I got Using initrd=\EFI\Pop_OS-005808cb-b3f3-40a4-9b61-045121c3a7bf\initrd.img root=UUID=005808cb-b3f3-40a4-9b61-045121c3a7bf ro quiet loglevel=0 systemd.show_status=false splash so I assume that I have removed the params.
edit 2:
“sudo lshw -c video” shows *-display UNCLAIMED if that tells you anything