Blame
8ea826 | deseven | 2025-06-12 12:17:26 | 1 | # VM iGPU Passthrough |
68c497 | deseven | 2025-06-12 11:47:12 | 2 | |
3 | ### Setting Up |
|||
afcbf7 | deseven | 2025-06-12 12:02:54 | 4 | This guide seems to work for Strix Halo: |
68c497 | deseven | 2025-06-12 11:47:12 | 5 | https://github.com/isc30/ryzen-gpu-passthrough-proxmox |
6 | ||||
d3b88d | deseven | 2025-06-12 13:52:34 | 7 | This is mostly tied to Proxmox, but should still be applicable to regular systems with QEMU installed. |
afcbf7 | deseven | 2025-06-12 12:02:54 | 8 | |
0a93ab | deseven | 2025-06-12 13:01:13 | 9 | ### Configuration |
10 | ```bash |
|||
11 | # /etc/kernel/cmdline |
|||
12 | ... iommu=pt initcall_blacklist=sysfb_init |
|||
13 | ``` |
|||
14 | ||||
15 | ```bash |
|||
16 | # /etc/modules |
|||
17 | vfio |
|||
18 | vfio_iommu_type1 |
|||
19 | vfio_pci |
|||
20 | ``` |
|||
21 | ||||
22 | ```bash |
|||
23 | # /etc/modprobe.d/blacklist.conf |
|||
24 | blacklist radeon |
|||
25 | blacklist amdgpu |
|||
26 | blacklist snd_hda_intel |
|||
27 | ``` |
|||
28 | ||||
29 | ```bash |
|||
30 | # /etc/modprobe.d/vfio.conf |
|||
31 | options vfio-pci ids=1002:1586,1002:1640 disable_vga=1 |
|||
32 | ``` |
|||
33 | ||||
34 | ```bash |
|||
35 | # vm.conf for QEMU |
|||
42c50b | deseven | 2025-06-17 20:41:11 | 36 | machine: pc-q35-9.2+pve1,viommu=virtio |
37 | cpu: host |
|||
38 | # don't forget to replace the IDs if needed |
|||
0a93ab | deseven | 2025-06-12 13:01:13 | 39 | hostpci0: 0000:c6:00.0,pcie=1,romfile=vbios_8060s.bin,x-vga=1 |
40 | hostpci1: 0000:c6:00.1,pcie=1,romfile=AMDGopDriver.rom |
|||
41 | ``` |
|||
42 | ||||
a2cb42 | deseven | 2025-06-20 12:07:25 | 43 | Proxmox VM: |
e10072 | deseven | 2025-06-17 18:01:52 | 44 |  |
45 | ||||
68c497 | deseven | 2025-06-12 11:47:12 | 46 | ### Notes |
afcbf7 | deseven | 2025-06-12 12:02:54 | 47 | - hardware IDs are `1002:1586` (iGPU) and `1002:1640` (audio) |
0a91eb | deseven | 2025-06-19 23:08:35 | 48 | - Windows works fine, but I haven't managed to do it with a Linux VM, amdgpu driver crashes |
49 | - the 'reset bug' is here, I found no way to avoid it, so **you can passthrough the iGPU only once per boot of the host** |
|||
029502 | deseven | 2025-07-04 22:48:21 | 50 | - if your VM crashes during GPU driver install, switch the CPU type to something generic (`x86-64-v4` for example seems to work fine), install the driver, then return it back to `host` |
56c240 | deseven | 2025-07-04 22:54:19 | 51 | - if you see unknown PCI device (`1af4:1057`) in your Device Manager, install `viomem` driver manually from virtio drivers ISO |
afcbf7 | deseven | 2025-06-12 12:02:54 | 52 | - set the fixed VRAM amount in the BIOS and never change it on the OS level, otherwise expect major slowdowns and crashes |
68c497 | deseven | 2025-06-12 11:47:12 | 53 | - [this issue](https://github.com/isc30/ryzen-gpu-passthrough-proxmox/issues/112) might be worth looking into |
54 | ||||
55 | ### Files |
|||
8f8641 | deseven | 2025-06-12 13:16:45 | 56 | (taken from [[EVO-X2|Devices/GMKtec-EVO-X2]], BIOS version 1.04) |
1a9842 | deseven | 2025-06-12 11:48:50 | 57 | - [vbios_8060s.bin](./vbios_8060s.bin) |
58 | - [AMDGopDriver.rom](./AMDGopDriver.rom) |