Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minisforum UM890Pro 780M graphics can't passthrough #77

Open
JrantKing opened this issue Nov 12, 2024 · 6 comments
Open

Minisforum UM890Pro 780M graphics can't passthrough #77

JrantKing opened this issue Nov 12, 2024 · 6 comments

Comments

@JrantKing
Copy link

proxmox-ve: 8.2.8 (running kernel: 6.8.12-4-pve)
pve-manager: 8.2.8 (running version: 8.2.8/a577cfa684c7476d)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.8: 6.8.12-4
proxmox-kernel-6.8.12-4-pve-signed: 6.8.12-4
ceph-fuse: 16.2.11+ds-2
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx9
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.4
libpve-access-control: 8.1.4
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.0.8
libpve-cluster-perl: 8.0.8
libpve-common-perl: 8.2.6
libpve-guest-common-perl: 5.1.4
libpve-http-server-perl: 5.1.2
libpve-network-perl: 0.9.8
libpve-rs-perl: 0.8.10
libpve-storage-perl: 8.2.5
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.4.0-4
proxmox-backup-client: 3.2.8-1
proxmox-backup-file-restore: 3.2.8-1
proxmox-firewall: 0.5.0
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.7
proxmox-widget-toolkit: 4.2.4
pve-cluster: 8.0.8
pve-container: 5.2.1
pve-docs: 8.2.3
pve-edk2-firmware: 4.2023.08-4
pve-esxi-import-tools: 0.7.2
pve-firewall: 5.0.7
pve-firmware: 3.14-1
pve-ha-manager: 4.0.5
pve-i18n: 3.2.4
pve-qemu-kvm: 9.0.2-4
pve-xtermjs: 5.3.0-3
qemu-server: 8.2.5
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.6-pve1

log:
task error : can't reset "c6:00.0" pci device

anyone have the same problem as me?

@ruanmed
Copy link

ruanmed commented Nov 17, 2024

Care to share your VM conf, PCI devices output, and /usr/share/kvm/ folder content?

$ cat /etc/pve/qemu-server/<VM_ID>.conf
$ lspci -nnk
$ ls -la /usr/share/kvm/

I suspect there might be missing the vbios on the PCI device configuration of the iGPU or the AMDGopDriver for the audio PCI device.

@ilovebamboo
Copy link

root@amd:# lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Phoenix IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Phoenix GPP Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Phoenix GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Phoenix GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Phoenix GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Phoenix GPP Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Host Bridge
00:04.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Internal GPP Bridge to Bus [C:A]
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Internal GPP Bridge to Bus [C:A]
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Internal GPP Bridge to Bus [C:A]
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 7
02:00.0 Ethernet controller: Intel Corporation Ethernet Controller I226-V (rev 04)
03:00.0 Ethernet controller: Intel Corporation Ethernet Controller I226-V (rev 04)
04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852CE PCIe 802.11ax Wireless Network Controller (rev 01)
05:00.0 Non-Volatile memory controller: MAXIO Technology (Hangzhou) Ltd. NVMe SSD Controller MAP1202 (DRAM-less) (rev 01)
c6:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix3 (rev c5)
c6:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
c6:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Phoenix CCP/PSP 3.0 Device
c6:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15b9
c6:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15ba
c6:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 63)
c6:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h/1ah HD Audio Controller
c7:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Function
c7:00.1 Signal processing controller: Advanced Micro Devices, Inc. [AMD] AMD IPU Device
c8:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Function
c8:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15c0
c8:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15c1
c8:00.5 USB controller: Advanced Micro Devices, Inc. [AMD] Pink Sardine USB4/Thunderbolt NHI controller #1
c8:00.6 USB controller: Advanced Micro Devices, Inc. [AMD] Pink Sardine USB4/Thunderbolt NHI controller #2
root@amd:
# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.12-4-pve
Found initrd image: /boot/initrd.img-6.8.12-4-pve
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
root@amd:# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-6.8.12-4-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
root@amd:
# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.12-4-pve
Found initrd image: /boot/initrd.img-6.8.12-4-pve
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
root@amd:# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-6.8.12-4-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
root@amd:
# cat /etc/pve/qemu-server/100.conf
boot: order=scsi0;ide0;ide2;net0
cores: 4
cpu: host
efidisk0: local:100/vm-100-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
hostpci0: 0000:c6:00.0
hostpci1: 0000:c6:00.1,rombar=0
ide0: local:iso/virtio-win.iso,media=cdrom,size=707456K
ide2: local:iso/zh-cn_windows_11_business_editions_version_22h2_updated_feb_2023_x64_dvd_632649a2.iso,media=cdrom,size=5511762K
machine: pc-q35-9.0
memory: 12000
meta: creation-qemu=9.0.2,ctime=1732507499
name: windows11
net0: e1000e=BC:24:11:5B:90:D2,bridge=vmbr0
numa: 0
ostype: win11
scsi0: local:100/vm-100-disk-1.qcow2,backup=0,iothread=1,replicate=0,size=132G
scsihw: virtio-scsi-single
smbios1: uuid=6bdde889-6416-4430-81ab-a92458fa5060
sockets: 4
tpmstate0: local:100/vm-100-disk-2.raw,size=4M,version=v2.0
vmgenid: dd82bf82-ea70-42a4-a4a5-67497cbef77c
root@amd:# lspci -nnk
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Root Complex [1022:14e8]
Subsystem: Advanced Micro Devices, Inc. [AMD] Phoenix Root Complex [1022:14e8]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Phoenix IOMMU [1022:14e9]
Subsystem: Advanced Micro Devices, Inc. [AMD] Phoenix IOMMU [1022:14e9]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Host Bridge [1022:14ea]
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Phoenix GPP Bridge [1022:14ed]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1453]
Kernel driver in use: pcieport
00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Phoenix GPP Bridge [1022:14ee]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1453]
Kernel driver in use: pcieport
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Host Bridge [1022:14ea]
00:02.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Phoenix GPP Bridge [1022:14ee]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1453]
Kernel driver in use: pcieport
00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Phoenix GPP Bridge [1022:14ee]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1453]
Kernel driver in use: pcieport
00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Phoenix GPP Bridge [1022:14ee]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1453]
Kernel driver in use: pcieport
00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Host Bridge [1022:14ea]
00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel [1022:14ef]
Subsystem: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel [1022:1453]
Kernel driver in use: pcieport
00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Host Bridge [1022:14ea]
00:04.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel [1022:14ef]
Subsystem: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel [1022:1453]
Kernel driver in use: pcieport
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Host Bridge [1022:14ea]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Phoenix Internal GPP Bridge to Bus [C:A] [1022:14eb]
Subsystem: Advanced Micro Devices, Inc. [AMD] Phoenix Internal GPP Bridge to Bus [C:A] [1022:14eb]
Kernel driver in use: pcieport
00:08.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Phoenix Internal GPP Bridge to Bus [C:A] [1022:14eb]
Subsystem: Advanced Micro Devices, Inc. [AMD] Phoenix Internal GPP Bridge to Bus [C:A] [1022:14eb]
Kernel driver in use: pcieport
00:08.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Phoenix Internal GPP Bridge to Bus [C:A] [1022:14eb]
pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
Subsystem: Advanced Micro Devices, Inc. [AMD] Phoenix Internal GPP Bridge to Bus [C:A] [1022:14eb]
Kernel driver in use: pcieport
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 71)
Subsystem: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b]
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
Subsystem: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e]
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 0 [1022:14f0]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 1 [1022:14f1]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 2 [1022:14f2]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 3 [1022:14f3]
Kernel driver in use: k10temp
Kernel modules: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 4 [1022:14f4]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 5 [1022:14f5]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 6 [1022:14f6]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Phoenix Data Fabric; Function 7 [1022:14f7]
02:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller I226-V [8086:125c] (rev 04)
DeviceName: Realtek
Subsystem: Intel Corporation Ethernet Controller I226-V [8086:0000]
Kernel driver in use: igc
Kernel modules: igc
03:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller I226-V [8086:125c] (rev 04)
Subsystem: Intel Corporation Ethernet Controller I226-V [8086:0000]
Kernel driver in use: igc
Kernel modules: igc
04:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8852CE PCIe 802.11ax Wireless Network Controller [10ec:c852] (rev 01)
Subsystem: Realtek Semiconductor Co., Ltd. RTL8852CE PCIe 802.11ax Wireless Network Controller [10ec:c852]
Kernel driver in use: rtw89_8852ce
Kernel modules: rtw89_8852ce
05:00.0 Non-Volatile memory controller [0108]: MAXIO Technology (Hangzhou) Ltd. NVMe SSD Controller MAP1202 (DRAM-less) [1e4b:1202] (rev 01)
Subsystem: MAXIO Technology (Hangzhou) Ltd. NVMe SSD Controller MAP1202 (DRAM-less) [1e4b:1202]
Kernel driver in use: nvme
Kernel modules: nvme
c6:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix3 [1002:1900] (rev c5)
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix3 [1002:0124]
Kernel driver in use: vfio-pci
Kernel modules: amdgpu
c6: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
c6:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Phoenix CCP/PSP 3.0 Device [1022:15c7]
Subsystem: Advanced Micro Devices, Inc. [AMD] Family 19h (Model 74h) CCP/PSP 3.0 Device [1022:15c7]
Kernel driver in use: ccp
Kernel modules: ccp
c6:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15b9]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:15b9]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
c6:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15ba]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:15b9]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
c6:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 63)
Subsystem: Realtek Semiconductor Co., Ltd. ACP/ACP3X/ACP6x Audio Coprocessor [10ec:12e8]
Kernel driver in use: snd_pci_ps
Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh, snd_sof_amd_acp63
c6:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h/1ah HD Audio Controller [1022:15e3]
DeviceName: Realtek ALC256
Subsystem: Realtek Semiconductor Co., Ltd. Family 17h/19h HD Audio Controller [10ec:12e8]
Kernel modules: snd_hda_intel
c7:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Function [1022:14ec]
Subsystem: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Function [1022:14ec]
c7:00.1 Signal processing controller [1180]: Advanced Micro Devices, Inc. [AMD] AMD IPU Device [1022:1502]
Subsystem: Advanced Micro Devices, Inc. [AMD] AMD IPU Device [1022:1502]
c8:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Function [1022:14ec]
Subsystem: Advanced Micro Devices, Inc. [AMD] Phoenix Dummy Function [1022:14ec]
c8:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15c0]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:15c0]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
c8:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15c1]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:15c1]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
c8:00.5 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Pink Sardine USB4/Thunderbolt NHI controller #1 [1022:1668]
Subsystem: Advanced Micro Devices, Inc. [AMD] Pink Sardine USB4/Thunderbolt NHI controller [1022:1668]
Kernel driver in use: thunderbolt
Kernel modules: thunderbolt
c8:00.6 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Pink Sardine USB4/Thunderbolt NHI controller #2 [1022:1669]
Subsystem: Advanced Micro Devices, Inc. [AMD] Pink Sardine USB4/Thunderbolt NHI controller [1022:1669]
Kernel driver in use: thunderbolt
Kernel modules: thunderbolt
root@amd:
# ls -la /usr/share/kvm/
total 220032
drwxr-xr-x 5 root root 4096 Nov 25 20:07 .
drwxr-xr-x 130 root root 4096 Nov 25 16:17 ..
-rw-r--r-- 1 root root 82944 Nov 25 18:55 AMDGopDriver_8845hs.rom
-rw-r--r-- 1 root root 262144 Apr 29 2024 bios-256k.bin
-rw-r--r-- 1 root root 131072 Apr 29 2024 bios.bin
-rw-r--r-- 1 root root 131072 Apr 29 2024 bios-microvm.bin
-rw-r--r-- 1 root root 67108864 Nov 10 18:23 edk2-aarch64-code.fd
-rw-r--r-- 1 root root 67108864 Nov 10 18:23 edk2-arm-code.fd
-rw-r--r-- 1 root root 67108864 Nov 10 18:23 edk2-arm-vars.fd
-rw-r--r-- 1 root root 3653632 Nov 10 18:23 edk2-i386-code.fd
-rw-r--r-- 1 root root 3653632 Nov 10 18:23 edk2-i386-secure-code.fd
-rw-r--r-- 1 root root 540672 Nov 10 18:23 edk2-i386-vars.fd
-rw-r--r-- 1 root root 42903 May 21 2023 edk2-licenses.txt
-rw-r--r-- 1 root root 3653632 Nov 10 18:23 edk2-x86_64-code.fd
-rw-r--r-- 1 root root 3653632 Nov 10 18:23 edk2-x86_64-secure-code.fd
-rw-r--r-- 1 root root 159232 May 21 2023 efi-e1000e.rom
-rw-r--r-- 1 root root 159232 May 21 2023 efi-e1000.rom
-rw-r--r-- 1 root root 159232 May 21 2023 efi-eepro100.rom
-rw-r--r-- 1 root root 157696 May 21 2023 efi-ne2k_pci.rom
-rw-r--r-- 1 root root 157696 May 21 2023 efi-pcnet.rom
-rw-r--r-- 1 root root 160768 May 21 2023 efi-rtl8139.rom
-rw-r--r-- 1 root root 160768 May 21 2023 efi-virtio.rom
-rw-r--r-- 1 root root 156672 May 21 2023 efi-vmxnet3.rom
drwxr-xr-x 2 root root 4096 Nov 25 11:46 firmware
-rw-r--r-- 1 root root 100352 Nov 25 20:07 gmkK8pve.rom
-rw-r--r-- 1 root root 12288 Nov 25 19:40 gtr7.bin
drwxr-xr-x 2 root root 4096 Nov 25 11:46 keymaps
-rw-r--r-- 1 root root 9216 May 21 2023 kvmvapic.bin
-rw-r--r-- 1 root root 1024 May 21 2023 linuxboot.bin
-rw-r--r-- 1 root root 1536 May 21 2023 linuxboot_dma.bin
-rw-r--r-- 1 root root 3094 Nov 10 18:23 machine-versions-x86_64.json
-rw-r--r-- 1 root root 1024 May 21 2023 multiboot.bin
-rw-r--r-- 1 root root 1024 May 21 2023 multiboot_dma.bin
-rw-r--r-- 1 root root 768 May 21 2023 npcm7xx_bootrom.bin
-rw-r--r-- 1 root root 1966080 May 21 2023 OVMF_CODE-pure-efi.fd
-rw-r--r-- 1 root root 131072 May 21 2023 OVMF_VARS-pure-efi.fd
-rw-r--r-- 1 root root 1536 May 21 2023 pvh.bin
-rw-r--r-- 1 root root 67072 May 21 2023 pxe-e1000.rom
-rw-r--r-- 1 root root 61440 May 21 2023 pxe-eepro100.rom
-rw-r--r-- 1 root root 61440 May 21 2023 pxe-ne2k_pci.rom
-rw-r--r-- 1 root root 61440 May 21 2023 pxe-pcnet.rom
-rw-r--r-- 1 root root 61440 May 21 2023 pxe-rtl8139.rom
-rw-r--r-- 1 root root 60416 May 21 2023 pxe-virtio.rom
-rwxr-xr-x 1 root root 65536 May 21 2023 qboot.rom
-rw-r--r-- 1 root root 850 May 21 2023 QEMU,cgthree.bin
-rw-r--r-- 1 root root 154542 May 21 2023 qemu-nsis.bmp
-rw-r--r-- 1 root root 1402 May 21 2023 QEMU,tcx.bin
-rw-r--r-- 1 root root 3814 Nov 10 18:23 recognized-CPUID-flags-x86_64
-rw-r--r-- 1 root root 2527328 Apr 29 2024 skiboot.lid
-rw-r--r-- 1 root root 502432 Nov 10 18:23 trace-events-all
-rw-r--r-- 1 root root 524288 May 21 2023 u-boot-sam460-20100605.bin
-rw-r--r-- 1 root root 16896 Nov 25 19:03 vbios_1002_1900.bin
-rw-r--r-- 1 root root 16896 Nov 25 20:01 vbios_7840hs.bin
-rw-r--r-- 1 root root 16896 Nov 25 20:01 vbios_8700g.bin
-rw-r--r-- 1 root root 16896 Nov 25 20:01 vbios_8945.bin
-rw-r--r-- 1 root root 39424 Apr 29 2024 vgabios-ati.bin
-rw-r--r-- 1 root root 38912 Apr 29 2024 vgabios.bin
-rw-r--r-- 1 root root 28672 Apr 29 2024 vgabios-bochs-display.bin
-rw-r--r-- 1 root root 38912 Apr 29 2024 vgabios-cirrus.bin
-rw-r--r-- 1 root root 39424 Apr 29 2024 vgabios-qxl.bin
-rw-r--r-- 1 root root 28672 Apr 29 2024 vgabios-ramfb.bin
-rw-r--r-- 1 root root 39424 Apr 29 2024 vgabios-stdvga.bin
-rw-r--r-- 1 root root 39424 Apr 29 2024 vgabios-virtio.bin
-rw-r--r-- 1 root root 39424 Apr 29 2024 vgabios-vmware.bin
drwxr-xr-x 2 root root 4096 Nov 25 11:46 vhost-user
-rwxr-xr-x 1 root root 3456 May 21 2023 vof.bin
-rw-r--r-- 1 root root 16384 May 21 2023 vof-nvram.bin

@ilovebamboo
Copy link

error writing '1' to '/sys/bus/pci/devices/0000:c6:00.0/reset': Inappropriate ioctl for device
failed to reset PCI device '0000:c6:00.0', but trying to continue as not all devices need a reset
TASK ERROR: timeout waiting on systemd

@JrantKing
Copy link
Author

Care to share your VM conf, PCI devices output, and /usr/share/kvm/ folder content?

$ cat /etc/pve/qemu-server/<VM_ID>.conf
$ lspci -nnk
$ ls -la /usr/share/kvm/

I suspect there might be missing the vbios on the PCI device configuration of the iGPU or the AMDGopDriver for the audio PCI device.

After the latest update of proxmox this issue was solved
https://forum.proxmox.com/threads/warning-updating-these-packages-broke-my-pci-passthrough.156848/

@ruanmed
Copy link

ruanmed commented Nov 29, 2024

@ilovebamboo Thank you for the provided info.
From the provided logs I think you skipped some of the steps of the instructions at the README of this repository.

For reference, I suggest you to carefully check out the following three sections of the README:

  • Configuring the GPU for passthrough
  • Configuring the GPU in the Windows VM
  • (optional) Getting OVMF (UEFI) BIOS working: Error 43

First ensure your /etc/modules and /etc/modprobe.d/vfio.conf files are correctly configured, as per Configuring the GPU for passthrough section. (You don't need to re-execute the commands there, just verify the content of both those files, and then execute the step 6 to refresh the kernel modules and restart).

From the information provided it seems you already have the correct vbios_*.bin inside directory /usr/share/kvm, which I suppose is vbios_8945.bin for UM890Pro.

However, you are missing the AMDGopDriver_8945.rom there too (which will be needed).
So, you can either manually obtain your AMDGopDriver_8945.rom or download the one available in this repository directly.

After that, you can continue the steps in section Configuring the GPU in the Windows VM from step 4 onwards, and then following up with section (optional) Getting OVMF (UEFI) BIOS working: Error 43 instructions.


TL;DR: As a summary on the minimal changes you need, based on the logs provided, you need to edit your VM config file ( /etc/pve/qemu-server/100.conf) making those changes:

boot: order=scsi0;ide0;ide2;net0
cores: 4
cpu: host
efidisk0: local:100/vm-100-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
-hostpci0: 0000:c6:00.0
+hostpci0: 0000:c6:00.0,pcie=1,romfile=vbios_8945.bin
-hostpci1: 0000:c6:00.1,rombar=0
+hostpci1: 0000:c6:00.1,pcie=1,romfile=AMDGopDriver_8945.rom
ide0: local:iso/virtio-win.iso,media=cdrom,size=707456K
ide2: local:iso/zh-cn_windows_11_business_editions_version_22h2_updated_feb_2023_x64_dvd_632649a2.iso,media=cdrom,size=5511762K
machine: pc-q35-9.0
memory: 12000
meta: creation-qemu=9.0.2,ctime=1732507499
name: windows11
net0: e1000e=BC:24:11:5B:90:D2,bridge=vmbr0
numa: 0
ostype: win11
scsi0: local:100/vm-100-disk-1.qcow2,backup=0,iothread=1,replicate=0,size=132G
scsihw: virtio-scsi-single
smbios1: uuid=6bdde889-6416-4430-81ab-a92458fa5060
sockets: 4
tpmstate0: local:100/vm-100-disk-2.raw,size=4M,version=v2.0
vmgenid: dd82bf82-ea70-42a4-a4a5-67497cbef77c

You can use either vi or nano editors to accomplish that. e.g.:

nano /etc/pve/qemu-server/100.conf

Those changes might get your Windows VM booting.
However, I still strongly suggest you to read the README again because it's very likely that you will also need to execute the steps to both install Video drivers and to mitigate the "AMD Reset Bug", both of which are documented there.

@antoninoromeo
Copy link

antoninoromeo commented Dec 2, 2024

@ilovebamboo Thank you for the provided info. From the provided logs I think you skipped some of the steps of the instructions at the README of this repository.

For reference, I suggest you to carefully check out the following three sections of the README:

  • Configuring the GPU for passthrough
  • Configuring the GPU in the Windows VM
  • (optional) Getting OVMF (UEFI) BIOS working: Error 43

First ensure your /etc/modules and /etc/modprobe.d/vfio.conf files are correctly configured, as per Configuring the GPU for passthrough section. (You don't need to re-execute the commands there, just verify the content of both those files, and then execute the step 6 to refresh the kernel modules and restart).

From the information provided it seems you already have the correct vbios_*.bin inside directory /usr/share/kvm, which I suppose is vbios_8945.bin for UM890Pro.

However, you are missing the AMDGopDriver_8945.rom there too (which will be needed). So, you can either manually obtain your AMDGopDriver_8945.rom or download the one available in this repository directly.

After that, you can continue the steps in section Configuring the GPU in the Windows VM from step 4 onwards, and then following up with section (optional) Getting OVMF (UEFI) BIOS working: Error 43 instructions.

TL;DR: As a summary on the minimal changes you need, based on the logs provided, you need to edit your VM config file ( /etc/pve/qemu-server/100.conf) making those changes:

boot: order=scsi0;ide0;ide2;net0
cores: 4
cpu: host
efidisk0: local:100/vm-100-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
-hostpci0: 0000:c6:00.0
+hostpci0: 0000:c6:00.0,pcie=1,romfile=vbios_8945.bin
-hostpci1: 0000:c6:00.1,rombar=0
+hostpci1: 0000:c6:00.1,pcie=1,romfile=AMDGopDriver_8945.rom
ide0: local:iso/virtio-win.iso,media=cdrom,size=707456K
ide2: local:iso/zh-cn_windows_11_business_editions_version_22h2_updated_feb_2023_x64_dvd_632649a2.iso,media=cdrom,size=5511762K
machine: pc-q35-9.0
memory: 12000
meta: creation-qemu=9.0.2,ctime=1732507499
name: windows11
net0: e1000e=BC:24:11:5B:90:D2,bridge=vmbr0
numa: 0
ostype: win11
scsi0: local:100/vm-100-disk-1.qcow2,backup=0,iothread=1,replicate=0,size=132G
scsihw: virtio-scsi-single
smbios1: uuid=6bdde889-6416-4430-81ab-a92458fa5060
sockets: 4
tpmstate0: local:100/vm-100-disk-2.raw,size=4M,version=v2.0
vmgenid: dd82bf82-ea70-42a4-a4a5-67497cbef77c

You can use either vi or nano editors to accomplish that. e.g.:

nano /etc/pve/qemu-server/100.conf

Those changes might get your Windows VM booting. However, I still strongly suggest you to read the README again because it's very likely that you will also need to execute the steps to both install Video drivers and to mitigate the "AMD Reset Bug", both of which are documented there.

HI @ruanmed,
i don't know if i have to insert into vfio.conf c5:00.6 Audio device [0403 and c5:00.5 Multimedia controller [0480] too,
please would you mind sharing your /etc/modprobe.d/vfio.conf?

my config is:

options vfio-pci ids=1002:1900,1002:1640
softdep radeon pre: vfio-pci
softdep amdgpu pre: vfio-pci
softdep snd_hda_intel pre: vfio-pci

lspci -nnk

c5:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix3 [1002:1900] (rev c4)
Subsystem: Device [1f4c:b016]
Kernel driver in use: vfio-pci
Kernel modules: amdgpu
c5:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller [1002:1640]
Subsystem: Device [1f4c:b016]
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
c5:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 19h (Model 74h) CCP/PSP 3.0 Device [1022:15c7]
Subsystem: Device [1f4c:b016]
Kernel driver in use: ccp
Kernel modules: ccp
c5:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15b9]
Subsystem: Device [1f4c:b016]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
c5:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15ba]
Subsystem: Device [1f4c:b016]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
c5:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 63)
Subsystem: Device [1f4c:b016]
Kernel driver in use: snd_pci_ps
Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh, snd_sof_amd_acp63
c5:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
DeviceName: Realtek ALC256
Subsystem: Device [1f4c:b016]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

many thanks, have a nice day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants