<div dir="ltr">Thanks for the reply.  I haven't tried the script yet.  I'm going to work on it more later tonight.  I have two Nvidia GTX 970s.</div><span>
</span><br><div class="gmail_quote"><div dir="ltr">On Fri, Feb 19, 2016, 4:43 PM Ben J <<a href="mailto:btpprograms@gmail.com" target="_blank">btpprograms@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">For your latter question, it doesn't seem like you should need to modify it as his original script already generically finds all GPUs. Did it not work when you tried it? Also, what type of cards are you using? If they're NVIDIA with nvidia drivers then I doubt that script will work for you.</p>
<div style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></div><div style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm using the following guide: <a href="https://vfio.blogspot.com/2015/05/vfio-gpu-how-to-series-part-3-host.html" target="_blank">https://vfio.blogspot.com/2015/05/vfio-gpu-how-to-series-part-3-host.html</a>.  I'm having trouble adapting some of the Fedora focused instructions for use in Arch.<br><br><b>1. Dracut</b><br><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:13.2px;line-height:18.48px">Dracut isn't used in Arch but the mkinitcpio</span> is.  You're asked to insert <span style="color:rgb(34,34,34);font-size:13.2px;line-height:18.48px"><i>add_drivers+="vfio vfio_iommu_type1 vfio_pci vfio_virqfd" </i></span>in: <i>/etc/dracut.conf.d/local.conf</i>.  Farther down, I'm supposed to insert <span style="color:rgb(34,34,34);font-size:13.2px;line-height:18.48px"><i>install_items+="/sbin/vfio-pci-override-vga.sh /usr/bin/find /usr/bin/dirname" </i>in:<i> </i></span><i>/etc/dracut.conf.d/local.conf</i>.   <span style="color:rgb(34,34,34);font-size:13.2px;line-height:18.48px"><br></span><br>Should I instead add these lines to a modprobe.d conf file or should I add it to the modules line in <i>/etc/mkinitcpio.conf</i>?<br><b><br>2. driver_override</b><br>My bash-foo isn't very good and I need to adapt the following script (see below) so that it points to the correct directories. In Arch, the directory for the GPU (02:00.0) and GPU audio (02:00.1) are here: <i>/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/</i> & <i>/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.1/</i><br><br><i>    #!/bin/sh<br>    DEVS="0000:02:00.0 0000:02:00.1"<br>    for DEV in $DEVS;<br>    do echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override<br>    done<br> <br>    modprobe -i vfio-pci</i><br><br>Hope to hear from you soon!<br><br>Best,<br>Garland Key</div>
<br></div><div style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com" target="_blank">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></div>
</blockquote></div>