NUC8i7BEH - iGPU (DMA655) passthrough zu Ubuntu 20.04 VM

Apr 4, 2021
2
0
1
51
Germany
Hi,

ich versuche für meine Ubuntu 20.04 VM meine iGPU des NUC8i7BEH verfügbar zu machen. Die GPU wird für Hardware-Encodierung mit FFMpeg und HDMI-Bildausgabe meines TV-Bildes vom VDR benötigt.

Leider ruckelt das TV-Bild an HDMI und dieProzesslast des VDR geht über 100%. Normalerweise sollte der Wert 30% nicht übersteigen. Also ...ein Zeichen dafür, dass die HW-Unterstützung der GPU nicht wirklich funktioniert.

Wie kann ich das prüfen und Abhilfe schaffen?

Meine bisherige Konfiguration:

nano /etc/default/grub
Code:
GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=0 intel_iommu=on vfio-pci.ids=8086:3ea5 video=efifb:off video=vesafb:off"

update-grub

nano /etc/modprobe.d/blacklist.conf
Code:
blacklist snd_hda_intel
blacklist snd_hda_codec_hdmi
blacklist snd_sof_pci
blacklist i915

nano /etc/modprobe.d/vfio.conf
Code:
options vfio-pci ids=8086:3ea5
options vfio-pci ids=8086:9dc8

nano /etc/pve/qemu-server/100.conf
Code:
#args%3A -device vfio-pci,host=00%3A02.0,addr=0x18,x-vga=on,x-igd-opregion=on,display=off
agent: 1
args: -device vfio-pci,host=00:02.0,addr=0x18,x-igd-opregion=on,display=off
boot: order=scsi0;ide2;net0
cores: 4
ide2: none,media=cdrom
machine: q35
memory: 8192
name: BM2LTS
net0: vmxnet3=FE:0C:18:BF:A6:E0,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
parent: working_HDMI_output_Kodi
scsi0: local-lvm:vm-100-disk-0,size=90G
scsihw: virtio-scsi-pci
smbios1: uuid=f7c17f2b-3832-474f-b3a2-8fbf7b7b1fdd
sockets: 1
tablet: 0
vga: std
vmgenid: 7a351605-92cc-4e9d-acdf-6ff67d73e088

[working_HDMI_output_Kodi]
agent: 1
args: -device vfio-pci,host=00:02.0,addr=0x18,x-igd-opregion=on
boot: order=scsi0;ide2;net0
cores: 4
ide2: none,media=cdrom
machine: q35
memory: 8192
name: BM2LTS
net0: vmxnet3=FE:0C:18:BF:A6:E0,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local-lvm:vm-100-disk-0,size=90G
scsihw: virtio-scsi-pci
smbios1: uuid=f7c17f2b-3832-474f-b3a2-8fbf7b7b1fdd
snaptime: 1617626287
sockets: 1
tablet: 0
vga: std
vmgenid: 7a351605-92cc-4e9d-acdf-6ff67d73e088

reboot

lspci
Code:
root@pve:~# lspci
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Iris Plus Graphics 655 (rev 01)
00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Point-LP Thermal Controller (rev 30)
00:14.0 USB controller: Intel Corporation Cannon Point-LP USB 3.1 xHCI Controller (rev 30)
00:14.2 RAM memory: Intel Corporation Cannon Point-LP Shared SRAM (rev 30)
00:14.3 Network controller: Intel Corporation Cannon Point-LP CNVi [Wireless-AC] (rev 30)
00:16.0 Communication controller: Intel Corporation Cannon Point-LP MEI Controller (rev 30)
00:17.0 SATA controller: Intel Corporation Cannon Point-LP SATA Controller [AHCI Mode] (rev 30)
00:1c.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port (rev f0)
00:1c.4 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port (rev f0)
00:1d.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port (rev f0)
00:1d.6 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port (rev f0)
00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 30)
00:1f.3 Audio device: Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 30)
00:1f.4 SMBus: Intel Corporation Cannon Point-LP SMBus Controller (rev 30)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP SPI Controller (rev 30)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (6) I219-V (rev 30)
3b:00.0 Non-Volatile memory controller: Micron/Crucial Technology Device 5412
3c:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)

ls /sys/kernel/iommu_groups/*/devices/
Code:
root@pve:~# ls /sys/kernel/iommu_groups/*/devices/
/sys/kernel/iommu_groups/0/devices/:
0000:00:00.0

/sys/kernel/iommu_groups/10/devices/:
0000:00:1d.0

/sys/kernel/iommu_groups/11/devices/:
0000:00:1d.6

/sys/kernel/iommu_groups/12/devices/:
0000:00:1f.0  0000:00:1f.3  0000:00:1f.4  0000:00:1f.5    0000:00:1f.6

/sys/kernel/iommu_groups/13/devices/:
0000:3b:00.0

/sys/kernel/iommu_groups/14/devices/:
0000:3c:00.0

/sys/kernel/iommu_groups/1/devices/:
0000:00:02.0

/sys/kernel/iommu_groups/2/devices/:
0000:00:08.0

/sys/kernel/iommu_groups/3/devices/:
0000:00:12.0

/sys/kernel/iommu_groups/4/devices/:
0000:00:14.0  0000:00:14.2

/sys/kernel/iommu_groups/5/devices/:
0000:00:14.3

/sys/kernel/iommu_groups/6/devices/:
0000:00:16.0

/sys/kernel/iommu_groups/7/devices/:
0000:00:17.0

/sys/kernel/iommu_groups/8/devices/:
0000:00:1c.0

/sys/kernel/iommu_groups/9/devices/:
0000:00:1c.4
 
aus der config kann ich entnehmen dass mit dem 'args' parameter der hdmi output funktioniert? aber das hardware encoding/decoding nicht? sieht für mich nach einem problem der gast konfiguration aus, da
hat die virtualisierung nur sehr begrenzt einfluss ;)
was vielleicht hilft ist den cpu typ zu ändern und vielleicht vga auf 'none' zu setzen, sodass die durchgereichte karte die einze grafikkarte ist (web console kann man dann aber nicht mehr verwenden)
 

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!