GMKTEC K12 | Ryzen 7 H 255 | Problem with IGPU

Glupikocz

Member
May 9, 2022
13
1
8
Hi,
I'm struggling with transferring a graphics card (IGPU) to a Windows VM.

The situation is that the machine works fine, it detects the graphics card, but at random moments the whole host crashes, as if something was wrong with IOMMU.

I figured this out because I also have a GMKTEC M5 PRO on which everything works.
I copied the settings 1:1, everything worked fine the first time, I made my vbios, I'm playing a game and suddenly boom, green screen, I say oh, what's that. At first I say I'll ignore it, but then bam, the same thing happens again.

I completely removed the Windows VM and I see that everything works, so there is definitely something wrong with this VM.

But first, enable everything you can in the BIOS.

Then:
root@node2:~# dmesg | grep -e DMAR -e IOMMU
[ 0.634321] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[ 0.636820] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).

root@node2:~# dmesg | grep 'remapping'
[ 0.107932] x2apic: IRQ remapping doesn't support X2APIC mode
[ 0.635689] AMD-Vi: Interrupt remapping enabled

root@node2:~# cat /etc/modprobe.d/iommu_unsafe_interrupts.conf
options vfio_iommu_type1 allow_unsafe_interrupts=1


Here is the blacklist
root@node2:~# cat /etc/modprobe.d/blacklist.conf
blacklist amdgpu
blacklist radeon
blacklist nouveau
blacklist nvidia
blacklist i915

Here is a screenshot of the VM configuration.
1764979818694.png


I also tested other versions of the AMD driver, but unfortunately nothing helps.
1764979891629.png

Does anyone have any problems with what I'm doing wrong?
Maybe there's no ROM for the sound card? But I have no idea how to do it, the guides from ISC30 github or others are too difficult for me, I would need something st
 
I'll leave that too.
And this is what the IOMMU groups look like for me
root@node2:~# pvesh get /nodes/node2/hardware/pci --pci-class-blacklist ""
┌──────────┬────────┬──────────────┬────────────┬────────┬───────────────────────────────────────────────────────────┬──────┬──────────────────┬──────────────│ class │ device │ id │ iommugroup │ vendor │ device_name │ mdev │ subsystem_device │ subsystem_dev╞══════════╪════════╪══════════════╪════════════╪════════╪═══════════════════════════════════════════════════════════╪══════╪══════════════════╪══════════════│ 0x010802 │ 0xa804 │ 0000:01:00.0 │ 15 │ 0x144d │ NVMe SSD Controller SM961/PM961/SM963 │ │ 0xa801 │ SM963 2.5" NV├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x010802 │ 0xa804 │ 0000:05:00.0 │ 19 │ 0x144d │ NVMe SSD Controller SM961/PM961/SM963 │ │ 0xa801 │ SM963 2.5" NV├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x020000 │ 0x8125 │ 0000:02:00.0 │ 16 │ 0x10ec │ RTL8125 2.5GbE Controller │ │ 0x8125 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x020000 │ 0x8125 │ 0000:04:00.0 │ 18 │ 0x10ec │ RTL8125 2.5GbE Controller │ │ 0x8125 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x028000 │ 0x0616 │ 0000:03:00.0 │ 17 │ 0x14c3 │ MT7922 802.11ax PCI Express Wireless Network Adapter │ │ 0x0616 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x030000 │ 0x1900 │ 0000:66:00.0 │ 20 │ 0x1002 │ Phoenix3 │ │ 0x1900 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x040300 │ 0x1640 │ 0000:66:00.1 │ 21 │ 0x1002 │ Radeon High Definition Audio Controller [Rembrandt/Strix] │ │ 0x1640 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x040300 │ 0x15e3 │ 0000:66:00.6 │ 25 │ 0x1022 │ Family 17h/19h/1ah HD Audio Controller │ │ 0xd997 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14e8 │ 0000:00:00.0 │ -1 │ 0x1022 │ Phoenix Root Complex │ │ 0x14e8 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14ea │ 0000:00:01.0 │ 0 │ 0x1022 │ Phoenix Dummy Host Bridge │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14ea │ 0000:00:02.0 │ 2 │ 0x1022 │ Phoenix Dummy Host Bridge │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14ea │ 0000:00:03.0 │ 7 │ 0x1022 │ Phoenix Dummy Host Bridge │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14ea │ 0000:00:04.0 │ 8 │ 0x1022 │ Phoenix Dummy Host Bridge │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14ea │ 0000:00:08.0 │ 9 │ 0x1022 │ Phoenix Dummy Host Bridge │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14f0 │ 0000:00:18.0 │ 14 │ 0x1022 │ Phoenix Data Fabric; Function 0 │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14f1 │ 0000:00:18.1 │ 14 │ 0x1022 │ Phoenix Data Fabric; Function 1 │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14f2 │ 0000:00:18.2 │ 14 │ 0x1022 │ Phoenix Data Fabric; Function 2 │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14f3 │ 0000:00:18.3 │ 14 │ 0x1022 │ Phoenix Data Fabric; Function 3 │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14f4 │ 0000:00:18.4 │ 14 │ 0x1022 │ Phoenix Data Fabric; Function 4 │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14f5 │ 0000:00:18.5 │ 14 │ 0x1022 │ Phoenix Data Fabric; Function 5 │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14f6 │ 0000:00:18.6 │ 14 │ 0x1022 │ Phoenix Data Fabric; Function 6 │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060000 │ 0x14f7 │ 0000:00:18.7 │ 14 │ 0x1022 │ Phoenix Data Fabric; Function 7 │ │ 0x0000 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060100 │ 0x790e │ 0000:00:14.3 │ 13 │ 0x1022 │ FCH LPC Bridge │ │ 0x790e │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060400 │ 0x14ed │ 0000:00:01.2 │ 1 │ 0x1022 │ Phoenix GPP Bridge │ │ 0x1453 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060400 │ 0x14ee │ 0000:00:02.1 │ 3 │ 0x1022 │ Phoenix GPP Bridge │ │ 0x1453 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060400 │ 0x14ee │ 0000:00:02.2 │ 4 │ 0x1022 │ Phoenix GPP Bridge │ │ 0x1453 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060400 │ 0x14ee │ 0000:00:02.3 │ 5 │ 0x1022 │ Phoenix GPP Bridge │ │ 0x1453 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060400 │ 0x14ee │ 0000:00:02.5 │ 6 │ 0x1022 │ Phoenix GPP Bridge │ │ 0x1453 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060400 │ 0x14ef │ 0000:00:04.1 │ 8 │ 0x1022 │ Family 19h USB4/Thunderbolt PCIe tunnel │ │ 0x1453 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060400 │ 0x14eb │ 0000:00:08.1 │ 10 │ 0x1022 │ Phoenix Internal GPP Bridge to Bus [C:A] │ │ 0x14eb │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060400 │ 0x14eb │ 0000:00:08.2 │ 11 │ 0x1022 │ Phoenix Internal GPP Bridge to Bus [C:A] │ │ 0x14eb │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x060400 │ 0x14eb │ 0000:00:08.3 │ 12 │ 0x1022 │ Phoenix Internal GPP Bridge to Bus [C:A] │ │ 0x14eb │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x080600 │ 0x14e9 │ 0000:00:00.2 │ -1 │ 0x1022 │ Phoenix IOMMU │ │ 0x14e9 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x0c0330 │ 0x15b9 │ 0000:66:00.3 │ 23 │ 0x1022 │ │ │ 0x15b9 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x0c0330 │ 0x15ba │ 0000:66:00.4 │ 24 │ 0x1022 │ │ │ 0x15b9 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x0c0330 │ 0x15c0 │ 0000:68:00.3 │ 28 │ 0x1022 │ │ │ 0x15c0 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x0c0330 │ 0x15c1 │ 0000:68:00.4 │ 29 │ 0x1022 │ │ │ 0x15c1 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x0c0340 │ 0x1669 │ 0000:68:00.6 │ 30 │ 0x1022 │ Pink Sardine USB4/Thunderbolt NHI controller #2 │ │ 0x1669 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x0c0500 │ 0x790b │ 0000:00:14.0 │ 13 │ 0x1022 │ FCH SMBus Controller │ │ 0x790b │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x108000 │ 0x15c7 │ 0000:66:00.2 │ 22 │ 0x1022 │ Phoenix CCP/PSP 3.0 Device │ │ 0x15c7 │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x130000 │ 0x14ec │ 0000:67:00.0 │ 26 │ 0x1022 │ Phoenix Dummy Function │ │ 0x14ec │
├──────────┼────────┼──────────────┼────────────┼────────┼───────────────────────────────────────────────────────────┼──────┼──────────────────┼──────────────│ 0x130000 │ 0x14ec │ 0000:68:00.0 │ 27 │ 0x1022 │ Phoenix Dummy Function │ │ 0x14ec │
└──────────┴────────┴──────────────┴────────────┴────────┴───────────────────────────────────────────────────────────┴──────┴──────────────────┴──────────────