GMKTec NucBox K11 - AMD 8945HS / 780M Windows 11 VM GPU Passthrough

yuanti

New Member
Jul 11, 2025
2
0
1
Dear experts,

I have a issue with Windows VM & GPU passthrough. I've got it running (GPU is visible in Windows) when I start Windows VM after Proxmox reboot.
When I shutdown Windows and try to run it again I always get: error writing '1' to '/sys/bus/pci/devices/0000:c7:00.0/reset''.
I also am unable to reboot pc with shutdown -h now - I must use physical button.
I guess that might be infamous vendor_reset issues, but I'm unable to find proper solution. I've tried https://github.com/inga-lovinde/RadeonResetBugFix/releases and https://github.com/gnif/vendor-reset, but latter doesn't support my GPU.
Could You give me a hand?

Configuration details:

Code:
/etc/kernel/cmdline:
root=ZFS=rpool/ROOT/pve-1 boot=zfs mitigations=off intel_iommu=on iommu=pt nox2apic intremap=no_x2apic_optout

Code:
lspci -nnk
c7:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix3 [1002:1900] (rev c4)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix3 [1002:0124]
        Kernel driver in use: vfio-pci
        Kernel modules: amdgpu
c7:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller [1002:1640]
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller [1002:1640]
        Kernel driver in use: vfio-pci
        Kernel modules: snd_hda_intel

Code:
root@gamepc:~# dmesg | grep -e DMAR -e IOMMU -e AMD-Vi
[    0.017628] DMAR: IOMMU enabled
[    0.053929] AMD-Vi: ivrs, add hid:AMDI0020, uid:\_SB.FUR0, rdevid:160
[    0.053931] AMD-Vi: ivrs, add hid:AMDI0020, uid:\_SB.FUR1, rdevid:160
[    0.053933] AMD-Vi: ivrs, add hid:AMDI0020, uid:\_SB.FUR2, rdevid:160
[    0.053934] AMD-Vi: ivrs, add hid:AMDI0020, uid:\_SB.FUR3, rdevid:160
[    0.053935] AMD-Vi: Using global IVHD EFR:0x246577efa2054ada, EFR2:0x0
[    0.275749] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[    0.276729] AMD-Vi: Extended features (0x246577efa2054ada, 0x0): PPR NX GT IA GA PC
[    0.276736] AMD-Vi: Interrupt remapping enabled
[    0.279627] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).

Code:
root@gamepc:~# dmesg | grep 'remapping'
[    0.054399] x2apic: IRQ remapping doesn't support X2APIC mode  <--- it dissapeared due to nox2apic intremap=no_x2apic_optout in /etc/kernel/cmdline
[    0.271476] AMD-Vi: Interrupt remapping enabled

Code:
root@gamepc:~# cat /etc/pve/qemu-server/200.conf 
agent: 1
balloon: 0
bios: ovmf
boot: order=scsi0
cores: 8
cpu: host
efidisk0: local-zfs:vm-200-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M
hostpci0: 0000:c7:00.0,pcie=1,romfile=vbios_8945.bin,x-vga=1
hostpci1: 0000:c7:00.1,pcie=1
ide0: local:iso/virtio-win-0.1.271.iso,media=cdrom,size=709474K
machine: pc-q35-9.2+pve1
memory: 8192
meta: creation-qemu=9.2.0,ctime=1752500703
name: Win11ProGPU
net0: e1000=BC:24:11:53:7C:FD,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
scsi0: local-zfs:vm-200-disk-1,cache=writeback,discard=on,iothread=1,size=64G,ssd=1
scsihw: virtio-scsi-single
smbios1: uuid=cdf8c786-6696-49db-af66-b1e4e8c6af42
sockets: 1
tpmstate0: local-zfs:vm-200-disk-2,size=4M,version=v2.0
usb0: host=1-3
usb1: host=1-4
vmgenid: 73da5017-de5f-4f49-913e-edd8a7344b8f
 
I found something in dmesg that might be useful. Its showing during second VM start:

Code:
[  121.800794] WARNING: CPU: 14 PID: 0 at kernel/workqueue.c:1798 __queue_work+0x3a8/0x4f0
[  121.800802] Modules linked in: veth tcp_diag inet_diag ebtable_filter ebtables ip_set ip6table_raw iptable_raw ip6table_filter ip6_tables nfsv3 nfs_acl xt_conntrack xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype iptable_filter rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace nf_tables netfs overlay sunrpc binfmt_misc bonding tls nfnetlink_log nfnetlink intel_rapl_msr intel_rapl_common snd_soc_dmic snd_soc_ps_mach snd_ps_pdm_dma snd_sof_amd_acp63 snd_sof_amd_vangogh snd_sof_amd_rembrandt snd_hda_codec_realtek snd_sof_amd_renoir snd_sof_amd_acp snd_hda_codec_generic snd_sof_pci snd_sof_xtensa_dsp iwlmvm snd_sof snd_sof_utils snd_soc_core snd_hda_intel edac_mce_amd snd_compress snd_intel_dspcfg mac80211 ac97_bus snd_intel_sdw_acpi snd_pcm_dmaengine snd_hda_codec kvm_amd snd_pci_ps snd_rpl_pci_acp6x libarc4 snd_acp_pci snd_hda_core snd_acp_legacy_common snd_pci_acp6x snd_hwdep kvm snd_pcm snd_pci_acp5x snd_timer snd_rn_pci_acp3x
[  121.800840]  snd_acp_config crct10dif_pclmul snd snd_soc_acpi polyval_clmulni input_leds joydev ccp soundcore snd_pci_acp3x polyval_generic ghash_clmulni_intel iwlwifi sha256_ssse3 btusb sha1_ssse3 aesni_intel btrtl btintel btbcm crypto_simd cryptd btmtk cfg80211 rapl pcspkr k10temp amd_pmc mac_hid bluetooth ecdh_generic ecc vhost_net vhost vhost_iotlb tap vfio_pci vfio_pci_core irqbypass vfio_iommu_type1 vfio iommufd efi_pstore dmi_sysfs ip_tables x_tables autofs4 hid_logitech_hidpp hid_logitech_dj hid_generic usbkbd usbmouse usbhid zfs(PO) spl(O) btrfs blake2b_generic xor raid6_pq libcrc32c xhci_pci nvme xhci_pci_renesas crc32_pclmul thunderbolt nvme_core xhci_hcd i2c_piix4 igc nvme_auth video i2c_hid_acpi wmi i2c_hid hid
[  121.800893] CPU: 14 PID: 0 Comm: swapper/14 Tainted: P           O       6.8.12-11-pve #1
[  121.800897] Hardware name: GMKtec NucBox K11/NucBox K11, BIOS NucBox K11  1.01 02/19/2025
[  121.800900] RIP: 0010:__queue_work+0x3a8/0x4f0
[  121.800904] Code: 00 f6 47 2c 20 0f 85 91 00 00 00 0f 0b 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d 31 c0 31 d2 31 c9 31 f6 31 ff c3 cc cc cc cc <0f> 0b e9 a0 fd ff ff 48 8b 0b 44 89 e0 49 8d 57 68 83 c8 07 83 e1
[  121.800908] RSP: 0018:ffffb10340500eb0 EFLAGS: 00010086
[  121.800910] RAX: 0000000000000000 RBX: ffff89f016a061b8 RCX: 0000000000000000
[  121.800912] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[  121.800913] RBP: ffffb10340500ee8 R08: 0000000000000000 R09: 0000000000000000
[  121.800915] R10: 0000000000000000 R11: 0000000000000000 R12: ffff89f0001ca000
[  121.800917] R13: ffff89f016a061c0 R14: ffff89f291134580 R15: ffff89f0001cec00
[  121.800918] FS:  0000000000000000(0000) GS:ffff89f291100000(0000) knlGS:0000000000000000
[  121.800920] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  121.800921] CR2: ffffd7826c948008 CR3: 000000010fc36000 CR4: 0000000000f50ef0
[  121.800923] PKRU: 55555554
[  121.800924] Call Trace:
[  121.800926]  <IRQ>
[  121.800929]  ? show_regs+0x6d/0x80
[  121.800932]  ? __warn+0x89/0x160
[  121.800936]  ? __queue_work+0x3a8/0x4f0
[  121.800938]  ? report_bug+0x17e/0x1b0
[  121.800942]  ? handle_bug+0x6e/0xb0
[  121.800945]  ? exc_invalid_op+0x18/0x80
[  121.800947]  ? asm_exc_invalid_op+0x1b/0x20
[  121.800950]  ? __queue_work+0x3a8/0x4f0
[  121.800952]  queue_work_on+0x67/0x70
[  121.800956]  acp63_irq_handler+0x6a/0x250 [snd_pci_ps]
[  121.800958]  __handle_irq_event_percpu+0x4c/0x1c0
[  121.800962]  ? raw_spin_rq_unlock+0x10/0x40
[  121.800966]  handle_irq_event+0x39/0x80
[  121.800967]  handle_fasteoi_irq+0x7d/0x200
[  121.800969]  __common_interrupt+0x3e/0xb0
[  121.800972]  common_interrupt+0x9f/0xb0
[  121.800974]  </IRQ>
[  121.800974]  <TASK>
[  121.800976]  asm_common_interrupt+0x27/0x40
[  121.800978] RIP: 0010:cpuidle_enter_state+0xce/0x470
[  121.800980] Code: e6 01 ff e8 f4 ee ff ff 8b 53 04 49 89 c6 0f 1f 44 00 00 31 ff e8 f2 d4 00 ff 80 7d d7 00 0f 85 e7 01 00 00 fb 0f 1f 44 00 00 <45> 85 ff 0f 88 83 01 00 00 49 63 d7 4c 89 f1 48 8d 04 52 48 8d 04
[  121.800984] RSP: 0018:ffffb10340217e50 EFLAGS: 00000246
[  121.800987] RAX: 0000000000000000 RBX: ffff89f00147f800 RCX: 0000000000000000
[  121.800989] RDX: 000000000000000e RSI: 0000000000000000 RDI: 0000000000000000
[  121.800990] RBP: ffffb10340217e88 R08: 0000000000000000 R09: 0000000000000000
[  121.800992] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000003
[  121.800993] R13: ffffffff8647ec80 R14: 0000001c5be4682d R15: 0000000000000003
[  121.800996]  cpuidle_enter+0x2e/0x50
[  121.801000]  call_cpuidle+0x23/0x60
[  121.801003]  do_idle+0x207/0x260
[  121.801004]  cpu_startup_entry+0x2a/0x30
[  121.801005]  start_secondary+0x119/0x140
[  121.801008]  secondary_startup_64_no_verify+0x184/0x18b
[  121.801011]  </TASK>
[  121.801012] ---[ end trace 0000000000000000 ]---
[  121.801042] BUG: kernel NULL pointer dereference, address: 0000000000000171
[  121.801045] #PF: supervisor read access in kernel mode
[  121.801047] #PF: error_code(0x0000) - not-present page
[  121.801048] PGD 0 P4D 0
[  121.801050] Oops: 0000 [#1] PREEMPT SMP NOPTI
[  121.801052] CPU: 14 PID: 908 Comm: irq/148-ACP_PCI Tainted: P        W  O       6.8.12-11-pve #1
[  121.801054] Hardware name: GMKtec NucBox K11/NucBox K11, BIOS NucBox K11  1.01 02/19/2025
[  121.801055] RIP: 0010:_snd_pcm_stream_lock_irqsave+0x12/0x60 [snd_pcm]
[  121.801067] Code: f6 31 ff c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 44 00 00 55 48 89 e5 41 54 53 48 8b 07 48 89 fb <44> 0f b6 a0 71 01 00 00 41 80 fc 01 0f 87 cf 11 01 00 41 83 e4 01
[  121.801071] RSP: 0018:ffffb10341577df8 EFLAGS: 00010282
[  121.801073] RAX: 0000000000000000 RBX: ffff89f0085fa120 RCX: 0000000000000000
[  121.801074] RDX: 0000000000000000 RSI: ffff89f0085fa0e8 RDI: ffff89f0085fa120
[  121.801076] RBP: ffffb10341577e08 R08: 0000000000000000 R09: 0000000000000000
[  121.801077] R10: 0000000000000000 R11: 0000000000000000 R12: ffff89f0085fa0e8
[  121.801079] R13: ffff89f016a05f28 R14: ffff89f009360280 R15: ffffffff8419b5e0
[  121.801081] FS:  0000000000000000(0000) GS:ffff89f291100000(0000) knlGS:0000000000000000
[  121.801083] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  121.801084] CR2: 0000000000000171 CR3: 000000010fc36000 CR4: 0000000000f50ef0
[  121.801086] PKRU: 55555554
[  121.801087] Call Trace:
[  121.801088]  <TASK>
[  121.801089]  ? show_regs+0x6d/0x80
[  121.801090]  ? __die+0x24/0x80
[  121.801091]  ? page_fault_oops+0x176/0x500
[  121.801093]  ? do_user_addr_fault+0x2f5/0x660
[  121.801095]  ? exc_page_fault+0x83/0x1b0
[  121.801097]  ? asm_exc_page_fault+0x27/0x30
[  121.801098]  ? __pfx_irq_thread_fn+0x10/0x10
[  121.801100]  ? _snd_pcm_stream_lock_irqsave+0x12/0x60 [snd_pcm]
[  121.801104]  snd_pcm_period_elapsed+0x19/0x50 [snd_pcm]
[  121.801109]  acp63_irq_thread+0x3b/0xb0 [snd_pci_ps]
[  121.801110]  irq_thread_fn+0x21/0x70
[  121.801111]  irq_thread+0xf8/0x1c0
[  121.801112]  ? __pfx_irq_thread_dtor+0x10/0x10
[  121.801114]  ? __pfx_irq_thread+0x10/0x10
[  121.801115]  kthread+0xef/0x120
[  121.801117]  ? __pfx_kthread+0x10/0x10
[  121.801119]  ret_from_fork+0x44/0x70
[  121.801121]  ? __pfx_kthread+0x10/0x10
[  121.801123]  ret_from_fork_asm+0x1b/0x30
[  121.801125]  </TASK>
[  121.801125] Modules linked in: veth tcp_diag inet_diag ebtable_filter ebtables ip_set ip6table_raw iptable_raw ip6table_filter ip6_tables nfsv3 nfs_acl xt_conntrack xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype iptable_filter rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace nf_tables netfs overlay sunrpc binfmt_misc bonding tls nfnetlink_log nfnetlink intel_rapl_msr intel_rapl_common snd_soc_dmic snd_soc_ps_mach snd_ps_pdm_dma snd_sof_amd_acp63 snd_sof_amd_vangogh snd_sof_amd_rembrandt snd_hda_codec_realtek snd_sof_amd_renoir snd_sof_amd_acp snd_hda_codec_generic snd_sof_pci snd_sof_xtensa_dsp iwlmvm snd_sof snd_sof_utils snd_soc_core snd_hda_intel edac_mce_amd snd_compress snd_intel_dspcfg mac80211 ac97_bus snd_intel_sdw_acpi snd_pcm_dmaengine snd_hda_codec kvm_amd snd_pci_ps snd_rpl_pci_acp6x libarc4 snd_acp_pci snd_hda_core snd_acp_legacy_common snd_pci_acp6x snd_hwdep kvm snd_pcm snd_pci_acp5x snd_timer snd_rn_pci_acp3x
[  121.801139]  snd_acp_config crct10dif_pclmul snd snd_soc_acpi polyval_clmulni input_leds joydev ccp soundcore snd_pci_acp3x polyval_generic ghash_clmulni_intel iwlwifi sha256_ssse3 btusb sha1_ssse3 aesni_intel btrtl btintel btbcm crypto_simd cryptd btmtk cfg80211 rapl pcspkr k10temp amd_pmc mac_hid bluetooth ecdh_generic ecc vhost_net vhost vhost_iotlb tap vfio_pci vfio_pci_core irqbypass vfio_iommu_type1 vfio iommufd efi_pstore dmi_sysfs ip_tables x_tables autofs4 hid_logitech_hidpp hid_logitech_dj hid_generic usbkbd usbmouse usbhid zfs(PO) spl(O) btrfs blake2b_generic xor raid6_pq libcrc32c xhci_pci nvme xhci_pci_renesas crc32_pclmul thunderbolt nvme_core xhci_hcd i2c_piix4 igc nvme_auth video i2c_hid_acpi wmi i2c_hid hid

Code:
[  121.801042] BUG: kernel NULL pointer dereference, address: 0000000000000171<br>
[  121.801045] #PF: supervisor read access in kernel mode<br>
[  121.801047] #PF: error_code(0x0000) - not-present page
 
Last edited: