<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello,</p>
<p><br>
</p>
<p>Ive been trying to get pci passthrough going for a couple of days now to no success. All i get when i start the vm is a blank screen on the vm and a console on the host.</p>
<p><br>
</p>
<p>Ive been reading these guides: <a href="https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF" class="OWAAutoLink" id="LPlnk98240" previewremoved="true">https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF</a> and <a href="https://wiki.installgentoo.com/index.php/PCI_passthrough" class="OWAAutoLink" id="LPlnk141686" previewremoved="true">https://wiki.installgentoo.com/index.php/PCI_passthrough</a> .</p>
<p><br>
</p>
<p>My setup is as follow:</p>
<p>MSI B75M DGS R2 ( <a href="http://www.asrock.com/mb/Intel/B75M-DGS%20R2.0/" class="OWAAutoLink" id="LPlnk303048" previewremoved="true">http://www.asrock.com/mb/Intel/B75M-DGS%20R2.0/</a> )</p>
<p>GTX 1060 not sure of vendor.</p>
<p>Im using 1 monitor, dvi connected to GTX1060 and VGA from built in vga output on the motherboard.</p>
<p><br>
</p>
<p><b>dmesg | grep -i iommu gives:</b></p>
<p><br>
</p>
<p></p>
<div>[    0.000000] DMAR: IOMMU enabled</div>
<div>[    0.018085] DMAR-IR: IOAPIC id 2 under DRHD base  0xfed91000 IOMMU 1</div>
<div>[    3.368817] iommu: Adding device 0000:00:00.0 to group 0</div>
<div>[    3.368878] iommu: Adding device 0000:00:01.0 to group 1</div>
<div>[    3.368935] iommu: Adding device 0000:00:02.0 to group 2</div>
<div>[    3.368992] iommu: Adding device 0000:00:14.0 to group 3</div>
<div>[    3.369050] iommu: Adding device 0000:00:16.0 to group 4</div>
<div>[    3.369106] iommu: Adding device 0000:00:1a.0 to group 5</div>
<div>[    3.369164] iommu: Adding device 0000:00:1b.0 to group 6</div>
<div>[    3.369221] iommu: Adding device 0000:00:1c.0 to group 7</div>
<div>[    3.369278] iommu: Adding device 0000:00:1c.5 to group 8</div>
<div>[    3.369335] iommu: Adding device 0000:00:1d.0 to group 9</div>
<div>[    3.369392] iommu: Adding device 0000:00:1e.0 to group 10</div>
<div>[    3.369453] iommu: Adding device 0000:00:1f.0 to group 11</div>
<div>[    3.369510] iommu: Adding device 0000:00:1f.2 to group 11</div>
<div>[    3.369567] iommu: Adding device 0000:00:1f.3 to group 11</div>
<div>[    3.369621] iommu: Adding device 0000:01:00.0 to group 1</div>
<div>[    3.369676] iommu: Adding device 0000:01:00.1 to group 1</div>
<div>[    3.369738] iommu: Adding device 0000:03:00.0 to group 12</div>
<div><br>
</div>
<div><b>dmesg | grep -i dmar gives:</b></div>
<div><br>
</div>
<div>
<div>[    0.000000] ACPI: DMAR 0x00000000BDEB2E90 0000B8 (v01 INTEL  SNB      00000001 INTL 00000001)</div>
<div>[    0.000000] DMAR: IOMMU enabled</div>
<div>[    0.017650] DMAR: Host address width 36</div>
<div>[    0.017700] DMAR: DRHD base: 0x000000fed90000 flags: 0x0</div>
<div>[    0.017755] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap c0000020e60262 ecap f0101a</div>
<div>[    0.017836] DMAR: DRHD base: 0x000000fed91000 flags: 0x1</div>
<div>[    0.017889] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap c9008020660262 ecap f0105a</div>
<div>[    0.017979] DMAR: RMRR base: 0x000000bdaba000 end: 0x000000bdae6fff</div>
<div>[    0.018032] DMAR: RMRR base: 0x000000bf800000 end: 0x000000cf9fffff</div>
<div>[    0.018085] DMAR-IR: IOAPIC id 2 under DRHD base  0xfed91000 IOMMU 1</div>
<div>[    0.018138] DMAR-IR: HPET id 0 under DRHD base 0xfed91000</div>
<div>[    0.018414] DMAR-IR: Enabled IRQ remapping in xapic mode</div>
<div>[    3.365966] DMAR: No ATSR found</div>
<div>[    3.366226] DMAR: dmar0: Using Queued invalidation</div>
<div>[    3.366280] DMAR: dmar1: Using Queued invalidation</div>
<div>[    3.366640] DMAR: Setting RMRR:</div>
<div>[    3.366715] DMAR: Setting identity map for device 0000:00:02.0 [0xbf800000 - 0xcf9fffff]</div>
<div>[    3.367885] DMAR: Setting identity map for device 0000:00:14.0 [0xbdaba000 - 0xbdae6fff]</div>
<div>[    3.367993] DMAR: Setting identity map for device 0000:00:1a.0 [0xbdaba000 - 0xbdae6fff]</div>
<div>[    3.368100] DMAR: Setting identity map for device 0000:00:1d.0 [0xbdaba000 - 0xbdae6fff]</div>
<div>[    3.368188] DMAR: Prepare 0-16MiB unity mapping for LPC</div>
<div>[    3.368258] DMAR: Setting identity map for device 0000:00:1f.0 [0x0 - 0xffffff]</div>
<div>[    3.368709] DMAR: Intel(R) Virtualization Technology for Directed I/O</div>
<div>[   18.498352] [drm] DMAR active, disabling use of stolen memory</div>
<div>[   18.521007] DMAR: DRHD: handling fault status reg 2</div>
<div>[   18.521009] DMAR: [DMA Write] Request device [00:02.0] fault addr 7600000000 [fault reason 05] PTE Write access is not set</div>
<div>[   18.627275] DMAR: DRHD: handling fault status reg 2</div>
<div>[   18.627277] DMAR: [DMA Write] Request device [00:02.0] fault addr 7600000000 [fault reason 05] PTE Write access is not set</div>
<div>[   19.753598] DMAR: DRHD: handling fault status reg 2</div>
<div>[   19.753601] DMAR: [DMA Write] Request device [00:02.0] fault addr 7600000000 [fault reason 05] PTE Write access is not set</div>
<div><br>
</div>
<b>IOMMU groups is as follow:</b></div>
<div><br>
</div>
<div>
<div>IOMMU group 7</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:1c.0 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 [8086:1e10] (rev c4)</div>
<div>IOMMU group 5</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04)</div>
<div>IOMMU group 3</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04)</div>
<div>IOMMU group 11</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:1f.0 ISA bridge [0601]: Intel Corporation B75 Express Chipset LPC Controller [8086:1e49] (rev 04)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:1f.2 SATA controller [0106]: Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] [8086:1e02] (rev 04)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:1f.3 SMBus [0c05]: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller [8086:1e22] (rev 04)</div>
<div>IOMMU group 1</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port [8086:0151] (rev 09)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1c03] (rev a1)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10f1] (rev a1)</div>
<div>IOMMU group 8</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:1c.5 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 6 [8086:1e1a] (rev c4)</div>
<div>IOMMU group 6</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)</div>
<div>IOMMU group 4</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:16.0 Communication controller [0780]: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)</div>
<div>IOMMU group 12</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)</div>
<div>IOMMU group 2</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller [8086:0152] (rev 09)</div>
<div>IOMMU group 10</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev a4)</div>
<div>IOMMU group 0</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller [8086:0150] (rev 09)</div>
<div>IOMMU group 9</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04)</div>
<div><br>
</div>
<b>And my group is IOMMU 1</b></div>
<div><b><br>
</b></div>
<div><b>lspci -k gives :</b></div>
<div><br>
</div>
<div>
<div>01:00.0 VGA compatible controller: NVIDIA Corporation Device 1c03 (rev a1)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>Subsystem: ASUSTeK Computer Inc. Device 85ae</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>Kernel driver in use: vfio-pci</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia</div>
<div>01:00.1 Audio device: NVIDIA Corporation Device 10f1 (rev a1)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>Subsystem: ASUSTeK Computer Inc. Device 85ae</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>Kernel driver in use: vfio-pci</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>Kernel modules: snd_hda_intel</div>
<div><br>
</div>
<b>Which tells me that it got binded to vfio ok.</b></div>
<div><b><br>
</b></div>
<div><b>dmesg | grep -i vgaarb gives:</b></div>
<div><br>
</div>
<div>
<div>[    0.255440] vgaarb: setting as boot device: PCI:0000:00:02.0</div>
<div>[    0.255492] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none</div>
<div>[    0.255575] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=none,locks=none</div>
<div>[    0.255655] vgaarb: loaded</div>
<div>[    0.255703] vgaarb: bridge control possible 0000:01:00.0</div>
<div>[    0.255754] vgaarb: no bridge control possible 0000:00:02.0</div>
<div>[    3.398850] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=io+mem:owns=none</div>
<div>[   18.506506] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=io+mem:owns=none</div>
<div>[   18.510607] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io:owns=io+mem</div>
<div><br>
</div>
</div>
<div><br>
</div>
<div><b>My Boot param is : </b>
<div>BOOT_IMAGE=/kernel-genkernel-x86_64-4.9.16-gentoo root=UUID=b63be7e0-a4a3-476b-a43a-9cec033be22b ro video=efifb:off iommu=on intel_iommu=on vfio-pci.ids=10de:1c03,10de:10f1 i915.enable_hd_vgaarb=1</div>
<div><br>
</div>
</div>
<div><b>where i bind the GPU and HDMI AUDIO and enable vgaarbfor i915.</b></div>
<div><br>
</div>
<div><b>Now i try to start QEMU with:</b></div>
<div>
<div><br>
</div>
<div>qemu-system-x86_64 -enable-kvm -m 1024 -cpu host,kvm=off \</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>-smp 2,sockets=1,cores=2,threads=1 \</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>-device vfio-pci,host=01:00.0,multifunction=on \</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>-device vfio-pci,host=01:00.1 \</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>-drive if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_CODE.fd \</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>-drive if=pflash,format=raw,file=/usr/share/OVMF/OVMF_VARS.fd \</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>-vga none<span class="Apple-tab-span" style="white-space:pre">
</span></div>
<br>
</div>
<div><b>when i switch over to the other input it just says no signal and swithes back. </b></div>
<div><b><br>
</b></div>
<div><b>And now i have no idea what to do.</b></div>
<div><b><br>
</b></div>
<div><b>Best regards zChris</b></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<br>
<p></p>
<br>
<br>
</div>
</body>
</html>