IGPU passthrough for n4020 not working

cemara

New Member
Sep 8, 2022
7
0
1
Hi, I have an AIO asus v161 with n4020, and I'm trying to accomplish 2 things.

  1. IGPU UHD600 passthru to windows 10 VM, so I can
  2. Attach the built-in monitor (it's an AIO) to that VM
I'm stuck at the first step, I have followed 3os IGPU passthru guide precisely, whenever i run the VM with PCIE UHD600 attached I'm getting this error

kvm: -device vfio-pci,host=0000:00:02.0,id=hostpci0,bus=ich9-pcie-port-1,addr=0x0,x-vga=on: vfio 0000:00:02.0: error getting device from group 1: Invalid argument Verify all devices in group 1 are bound to vfio-<bus> or pci-stub and not already in use TASK ERROR: start failed: QEMU exited with code 1
The vga is already tied to vfio

00:02.0 VGA compatible controller: Intel Corporation GeminiLake [UHD Graphics 600] (rev 06) (prog-if 00 [VGA controller]) DeviceName: VGA Subsystem: ASUSTeK Computer Inc. UHD Graphics 605 Flags: fast devsel, IRQ 19, IOMMU group 1 Memory at a0000000 (64-bit, non-prefetchable) [size=16M] Memory at 90000000 (64-bit, prefetchable) [size=256M] I/O ports at f000 [size=64] Expansion ROM at 000c0000 [virtual] [disabled] [size=128K] Capabilities: [40] Vendor Specific Information: Len=0c <?> Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00 Capabilities: [ac] MSI: Enable- Count=1/1 Maskable- 64bit- Capabilities: [d0] Power Management version 2 Capabilities: [100] Process Address Space ID (PASID) Capabilities: [200] Address Translation Service (ATS) Capabilities: [300] Page Request Interface (PRI) Kernel driver in use: vfio-pci Kernel modules: i915
nano /etc/modprobe.d/blacklist.conf content :

blacklist intel
blacklist radeon
blacklist snd_hda_intel
blacklist i915
blacklist snd_hda_codec_hdmi
blacklist noveau
dmesg :
https://pastebin.com/BzxGQxqx
 
Update : turns out dmesg throws this error after proxmox fail to run the vm, I'm on PVE 7.2, do i need to downgrade?

[ 566.283720] DMAR: DRHD: handling fault status reg 2
[ 566.283733] DMAR: [DMA Write NO_PASID] Request device [00:02.0] fault addr 0x0 [fault reason 0x02] Present bit in context entry is clear
[ 567.524729] vfio-pci 0000:00:02.0: vfio_ecap_init: hiding ecap 0x1b@0x100
[ 567.524777] vfio-pci 0000:00:02.0: IGD assignment does not support opregion v2.0 with an extended VBT region
[ 567.524786] vfio-pci 0000:00:02.0: Failed to setup Intel IGD regions
[ 567.715926] DMAR: DRHD: handling fault status reg 2
[ 567.715940] DMAR: [DMA Write NO_PASID] Request device [00:02.0] fault addr 0x0 [fault reason 0x02] Present bit in context entry is clear

Update, downgraded kernel, now VM can't boot but i think it's stuck, dmesg is throwing this error :

AR: DRHD: handling fault status reg 2

[ 512.634758] DMAR: [DMA Write] Request device [00:02.0] PASID ffffffff fault addr 0 [fault reason 02] Present bit in context entry is clear

[ 513.935967] vfio-pci 0000:00:02.0: vfio_ecap_init: hiding ecap 0x1b@0x100

[ 517.768050] vfio-pci 0000:00:02.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0x160d
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!