RX 5700XT VFIO Black screen Solved!

Dear Users!

I’ve been trying to get a Windows VM going in QEMU under Fedora 30 with GPU Passthrough but i’m running into the same issue all the time. I can install Windows using the RX5700XT which I passed to the VM however when the VM goes for a reboot during the Windows installation the screen on the GPU gets stuck in the UEFI boot screen.

However, when I add SPICE and a virtual GPU I can see Windows is actually booting but not initializing the Radeon GPU. Also device manager throws an error 43.

If you need more information, please tell me!

output of lspci -vnn for the devices I want to passthrough:

03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5700 / 5700 XT] [1002:731f] (rev c1) (prog-if 00 [VGA controller])
Subsystem: Gigabyte Technology Co., Ltd Device [1458:2313]
Flags: bus master, fast devsel, latency 0, IRQ 255
Memory at 80000000 (64-bit, prefetchable) [size=256M]
Memory at 90000000 (64-bit, prefetchable) [size=2M]
I/O ports at 4000 [disabled] [size=256]
Memory at 6ab00000 (32-bit, non-prefetchable) [size=512K]
Expansion ROM at 6ab80000 [disabled] [size=128K]
Capabilities:
Kernel driver in use: vfio-pci

03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio [1002:ab38]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio [1002:ab38]
Flags: fast devsel, IRQ 255
Memory at 6aba0000 (32-bit, non-prefetchable) [disabled] [size=16K]
Capabilities:
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel

04:00.0 Non-Volatile memory controller [0108]: Phison Electronics Corporation E12 NVMe Controller [1987:5012] (rev 01) (prog-if 02 [NVM Express])
Subsystem: Phison Electronics Corporation E12 NVMe Controller [1987:5012]
Flags: bus master, fast devsel, latency 0, IRQ 255
Memory at 6ae00000 (64-bit, non-prefetchable) [size=16K]
Capabilities:
Kernel driver in use: vfio-pci
Kernel modules: nvme

Actually solved the issue! Enabling UEFI-CSM did it for me :slight_smile: