<div dir="ltr">Please add what to do if you have two identical GPUs. Here is exactly what is needed to make it work.<br><br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br><i><br><font face="monospace, monospace"><b>/etc/modprobe.d/vfio.conf</b></font></i><br><br><span style="font-family:monospace"><span style="color:rgb(0,0,0)"> install vfio-pci /sbin/vfio-pci-override-vga.sh
</span><br> options vfio-pci disable_vga=1 allow_unsafe_interrupts=1<br><br></span>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <span style="font-family:monospace"><br><br></span><span style="color:rgb(0,0,0);font-family:monospace"><b><i>/sbin/vfio-pci-override-vga.sh</i></b><br></span><span style="font-family:monospace"><br> </span><span style="font-family:monospace"><span style="color:rgb(0,0,0)">#!/bin/sh
</span><br>
<br> for i in $(find /sys/devices/pci* -name boot_vga); do
<br> if [ $(cat $i) -eq 0 ]; then
<br> GPU=$(dirname $i)
<br> AUDIO=$(echo $GPU | sed -e "s/0$/1/")
<br> echo "vfio-pci" > $GPU/driver_override
<br> if [ -d $AUDIO ]; then
<br> echo "vfio-pci" > $AUDIO/driver_override
<br> fi
<br> fi
<br> done
<br>
<br> modprobe -i vfio-pci<br><br></span>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <span style="font-family:monospace"><br>
<br></span>Add the following to <i><font face="monospace, monospace"><b>/etc/mkinitcpio.</b></font><b style="font-family:monospace,monospace">conf</b></i><font face="arial, helvetica, sans-serif"> and then run </font><b style="font-family:monospace,monospace"><i>mkinitcpio -p linux</i></b><font face="monospace, monospace"><b><br></b></font><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br> </span></span><span style="font-family:monospace"><span style="color:rgb(0,0,0)">BINARIES="/usr/bin/find /usr/bin/dirname"</span><br></span><span style="color:rgb(0,0,0)"><font face="monospace"> FILES="/sbin/vfio-pci-override-vga.sh"</font><br><br></span>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br><br><font face="arial, helvetica, sans-serif"><b>Tested Hardware:</b><br><br>Motherboard: <a href="https://www.asus.com/us/Motherboards/SABERTOOTH_X99/">Asus Sabertooth X99</a><br></font>CPU<font face="arial, helvetica, sans-serif">: <span style="color:rgb(0,0,0)"><a href="http://ark.intel.com/products/82931/Intel-Core-i7-5930K-Processor-15M-Cache-up-to-3_70-GHz">Intel Core i7-5930K</a><br></span></font>GPU 1: <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16814125684">GIGABYTE GeForce GTX 970 4GB G1 Gaming OC Edition</a><br>GPU 2: <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16814125684">GIGABYTE GeForce GTX 970 4GB G1 Gaming OC Edition</a><br>RAM: <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16820233709">32GB Corsair Dominator Platinum DDR4 <font face="arial, helvetica, sans-serif">(CMD16GX4M2A2666C15)</font></a><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 12, 2016 at 3:36 PM, Nicolas Roy-Renaud <span dir="ltr"><<a href="mailto:nicolas.roy-renaud.1@ens.etsmtl.ca" target="_blank">nicolas.roy-renaud.1@ens.etsmtl.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
I'm currently planning a full rewrite of <a href="https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF" target="_blank">the
article on Arch wiki about PCI passthroughs</a> and, as per Arch
wiki guidelines, I'm supposed get the approval of other users before
undergoing such comlex edits. If anyone on this mailing list is an
Arch wiki collaborator or frequent user, I would appreciate if you
could <a href="https://wiki.archlinux.org/index.php/Talk:PCI_passthrough_via_OVMF#Page_rewrite" target="_blank">give
me some feedback on the planned structure</a> and propose
additional sections or potential user mistakes to highlight. My
primary objective here is to make most of what's on Alex
Williamson's blog more straightforward and concise.<br>
<br>
I've already rewritten the first two sections ("Prerequisites" and
"Setting up IOMMU"), and the rest of the article should essentially
follow the same basic structure and style. Replies here or on the
wiki's discussion page would be much appreciated.<span class="HOEnZb"><font color="#888888"><br>
<br>
-Nicolas<br>
</font></span></div>
<br>_______________________________________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
<br></blockquote></div><br></div>