Hello everyone!
I am trying to get my VFIO single gpu setup up and running, but I am getting a black screen when booting the VM up.
uname: Linux 5.15.78-1-MANJARO
Motherboard UEFI options are:
CSM = Disabled
Above 4G = Disabled
BAR = Disabled
CPU: Ryzen 5800x3D
GPU: Sapphire RX 6800 nitro+
I am using virtmanager (4.1.0) libvirt (8.9) and qemu (7.1)
I am not using any hooks at the moment, I am running this manually:
sudo systemctl stop sddm
then switch to tty2 and do sudo virsh start nameofvm
End result is a black screen :\
Host machine:
$ cat /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=“amd_iommu=on iommu=pt vfio-pci.ids=1002:73bf,1002:ab28 video=efifb:off quiet apparmor=1 security=apparmor resume=UUID=535b3154-67da-4d84-9e46-9fafcecd8c70 udev.log_priority=3 amdgpu.ppfeaturemask=0xffffffff”
$ dmesg | grep -i -e IOMMU
[ 0.498130] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).
[ 0.512611] AMD-Vi: AMD IOMMUv2 loaded and initialized
$ sh ./check_iommu_groups.sh
IOMMU Group 18:
08:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] [1002:73bf] (rev c3)
IOMMU Group 19:
08:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller [1002:ab28]
$ lspci -nnk
08:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] [1002:73bf] (rev c3)
Subsystem: Sapphire Technology Limited Device [1da2:e439]
Kernel driver in use: amdgpu
Kernel modules: amdgpu
08:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller [1002:ab28]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller [1002:ab28]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
kvm xml:
win10-gpup ac7ba21e-c77d-4d66-b56a-8e2e895045eb 8392704 8392704 6 hvm /usr/share/edk2-ovmf/x64/OVMF_CODE.fd /var/lib/libvirt/qemu/nvram/win10-gpup_VARS.fd destroy restart destroy /usr/bin/qemu-system-x86_64