VM iGPU Passthrough
Setting Up
This guide seems to work for Strix Halo:
https://github.com/isc30/ryzen-gpu-passthrough-proxmox
This is mostly tied to Proxmox, but should still be applicable to regular systems with KVM installed.
Configuration
# /etc/kernel/cmdline ... iommu=pt initcall_blacklist=sysfb_init
# /etc/modules
vfio
vfio_iommu_type1
vfio_pci
# /etc/modprobe.d/blacklist.conf blacklist radeon blacklist amdgpu blacklist snd_hda_intel
# /etc/modprobe.d/vfio.conf options vfio-pci ids=1002:1586,1002:1640 disable_vga=1
# vm.conf for QEMU # don't forget to replace the IDs hostpci0: 0000:c6:00.0,pcie=1,romfile=vbios_8060s.bin,x-vga=1 hostpci1: 0000:c6:00.1,pcie=1,romfile=AMDGopDriver.rom
Notes
- hardware IDs are
1002:1586
(iGPU) and1002:1640
(audio) - the 'reset bug' is here, I found no way to avoid it
- set the fixed VRAM amount in the BIOS and never change it on the OS level, otherwise expect major slowdowns and crashes
- this issue might be worth looking into
Files
(taken from EVO-X2, BIOS version 1.04)