Intel xeon graphic passthrough / Dmar error

Dark26

Renowned Member
Nov 27, 2017
273
25
68
47
Bonjour,

I try to passthrough the integrated graphic card to a vm. it's seem to work but in the hosts a lots of message like this :

Code:
[ 1706.810030] dmar_fault: 890 callbacks suppressed
[ 1706.810031] DMAR: DRHD: handling fault status reg 3
[ 1706.810162] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr 71e306b000 [fault reason 06] PTE Read access is not set
[ 1706.826660] DMAR: DRHD: handling fault status reg 3
[ 1706.826718] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr 71e306b000 [fault reason 06] PTE Read access is not set
[ 1706.843325] DMAR: DRHD: handling fault status reg 3
[ 1706.843378] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr 71e306b000 [fault reason 06] PTE Read access is not set
[ 1706.860004] DMAR: DRHD: handling fault status reg 3
[ 1711.826698] dmar_fault: 899 callbacks suppressed
[ 1711.826699] DMAR: DRHD: handling fault status reg 3
[ 1711.826851] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr 240366b000 [fault reason 06] PTE Read access is not set
[ 1711.843361] DMAR: DRHD: handling fault status reg 3
[ 1711.843438] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr 240366b000 [fault reason 06] PTE Read access is not set
[ 1711.860034] DMAR: DRHD: handling fault status reg 3
[ 1711.860099] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr 71e306b000 [fault reason 06] PTE Read access is not set
[ 1711.876689] DMAR: DRHD: handling fault status reg 3
[ 1716.843362] dmar_fault: 896 callbacks suppressed
[ 1716.843364] DMAR: DRHD: handling fault status reg 3
[ 1716.843497] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr a03444000 [fault reason 06] PTE Read access is not set
[ 1716.860030] DMAR: DRHD: handling fault status reg 3
[ 1716.860096] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr a03444000 [fault reason 06] PTE Read access is not set
[ 1716.876695] DMAR: DRHD: handling fault status reg 3
[ 1716.876761] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr a03444000 [fault reason 06] PTE Read access is not set
[ 1716.893336] DMAR: DRHD: handling fault status reg 3
[ 1721.860042] dmar_fault: 896 callbacks suppressed
[ 1721.860043] DMAR: DRHD: handling fault status reg 3
[ 1721.860138] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr a03444000 [fault reason 06] PTE Read access is not set
[ 1721.876699] DMAR: DRHD: handling fault status reg 3
[ 1721.876747] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr 240366b000 [fault reason 06] PTE Read access is not set
[ 1721.893362] DMAR: DRHD: handling fault status reg 3
[ 1721.893421] DMAR: [DMA Read] Request device [00:02.0] PASID ffffffff fault addr 240366b000 [fault reason 06] PTE Read access is not set
[ 1721.910035] DMAR: DRHD: handling fault status reg 3

i see a lot of solution that says to put
intel_iommu=igfx_off
But of course no gpu with this option enable.

any idea ?

Code:
#scsi1%3A Data%3A109/vm-109-disk-1.raw,backup=0,size=8G
agent: 1
balloon: 0
bootdisk: scsi0
cores: 5
cpu: host
hostpci0: 00:02,pcie=1
hostpci1: 00:1b,pcie=1
ide2: none,media=cdrom
machine: q35
memory: 10000
name: mintwater
net0: virtio=7E:22:6F:B0:9A:50,bridge=vmbr1,firewall=1
numa: 0
onboot: 1
ostype: l26
runningmachine: pc-q35-4.1+pve0
scsi0: RAID1SSD:109/vm-109-disk-0.qcow2,size=11G
scsihw: virtio-scsi-pci
smbios1: uuid=5befc1eb-da29-4294-8b71-de27be9508bd
sockets: 1
startup: order=1
usb0: host=04d9:a0cd
usb1: host=046d:c52b
usb2: host=1050:0120
vga: none
vmgenid: ebad8942-2dbf-4a97-8bae-2f608275a8ad

Code:
root@xeon:~# for a in /sys/kernel/iommu_groups/*; do find $a -type l; done | sort
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
/sys/kernel/iommu_groups/10/devices/0000:00:1c.3
/sys/kernel/iommu_groups/11/devices/0000:00:1d.0
/sys/kernel/iommu_groups/12/devices/0000:00:1f.0
/sys/kernel/iommu_groups/12/devices/0000:00:1f.2
/sys/kernel/iommu_groups/12/devices/0000:00:1f.3
/sys/kernel/iommu_groups/13/devices/0000:04:00.0
/sys/kernel/iommu_groups/14/devices/0000:05:00.0
/sys/kernel/iommu_groups/1/devices/0000:00:01.0
/sys/kernel/iommu_groups/1/devices/0000:00:01.1
/sys/kernel/iommu_groups/1/devices/0000:01:00.0
/sys/kernel/iommu_groups/1/devices/0000:02:00.0
/sys/kernel/iommu_groups/1/devices/0000:02:00.1
/sys/kernel/iommu_groups/2/devices/0000:00:02.0
/sys/kernel/iommu_groups/3/devices/0000:00:03.0
/sys/kernel/iommu_groups/4/devices/0000:00:14.0
/sys/kernel/iommu_groups/5/devices/0000:00:16.0
/sys/kernel/iommu_groups/6/devices/0000:00:1a.0
/sys/kernel/iommu_groups/7/devices/0000:00:1b.0
/sys/kernel/iommu_groups/8/devices/0000:00:1c.0
/sys/kernel/iommu_groups/9/devices/0000:00:1c.2

Code:
root@xeon:~# lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3 Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:01.1 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x8 Controller (rev 06)
00:02.0 Display controller: Intel Corporation Xeon E3-1200 v3 Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 9 Series Chipset Family USB xHCI Controller
00:16.0 Communication controller: Intel Corporation 9 Series Chipset Family ME Interface #1
00:1a.0 USB controller: Intel Corporation 9 Series Chipset Family USB EHCI Controller #2
00:1b.0 Audio device: Intel Corporation 9 Series Chipset Family HD Audio Controller
00:1c.0 PCI bridge: Intel Corporation 9 Series Chipset Family PCI Express Root Port 1 (rev d0)
00:1c.2 PCI bridge: Intel Corporation 9 Series Chipset Family PCI Express Root Port 3 (rev d0)
00:1c.3 PCI bridge: Intel Corporation 9 Series Chipset Family PCI Express Root Port 4 (rev d0)
00:1d.0 USB controller: Intel Corporation 9 Series Chipset Family USB EHCI Controller #1
00:1f.0 ISA bridge: Intel Corporation 9 Series Chipset Family Z97 LPC Controller
00:1f.2 SATA controller: Intel Corporation 9 Series Chipset Family SATA Controller [AHCI Mode]
00:1f.3 SMBus: Intel Corporation 9 Series Chipset Family SMBus Controller
01:00.0 Ethernet controller: Intel Corporation 82572EI Gigabit Ethernet Controller (Copper) (rev 06)
02:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
02:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
04:00.0 Ethernet controller: Qualcomm Atheros Killer E220x Gigabit Ethernet Controller (rev 10)
05:00.0 Ethernet controller: Intel Corporation 82572EI Gigabit Ethernet Controller (Copper) (rev 06)
 
Passing through an iGPU is always a bit tricky and heavily dependent on both hardware and software (including BIOS) support.

What kernel commandline do you currently use? Have you tried appending 'iommu=pt'? (i.e. both 'intel_iommu=on' and 'iommu=pt', you can verify the currently booted version in '/proc/cmdline').

Also, a bit of generic advice, make sure your system is up to date and check with your mainboard manufacturer for potential BIOS updates.
 
thanks

now i have this :
Code:
root@xeon:/# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.4.27-1-pve root=/dev/mapper/SSD-proxmox_xeon_root ro intel_iommu=on acpi_sleep=nonvc

but yesterday t try with with iommu=pt ; and no luck.

But for some reason yesterday after many test, testing a bit of everything ( bios options csm, size video memory... ); and some kernel options; try also with 440 fx for the vm , no more erreur. I was happy. But today, after the poweroff and the power on the same error :mad:
 

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!