[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [vfio-users] [FEEDBACK NEEDED] Rewriting the Arch wiki article



Please add what to do if you have two identical GPUs.  Here is exactly what is needed to make it work.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  

/etc/modprobe.d/vfio.conf


    install vfio-pci /sbin/vfio-pci-override-vga.sh
    options vfio-pci disable_vga=1 allow_unsafe_interrupts=1

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

/sbin/vfio-pci-override-vga.sh

    
#!/bin/sh
    
    for i in $(find /sys/devices/pci* -name boot_vga); do
            if [ $(cat $i) -eq 0 ]; then
                    GPU=$(dirname $i)
                    AUDIO=$(echo $GPU | sed -e "s/0$/1/")
                   echo "vfio-pci" > $GPU/driver_override
                    if [ -d $AUDIO ]; then
                            echo "vfio-pci" > $AUDIO/driver_override
                    fi
            fi
    done
    
    modprobe -i vfio-pci

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Add the following to /etc/mkinitcpio.conf and then run mkinitcpio -p linux

    
BINARIES="/usr/bin/find /usr/bin/dirname"
    FILES="/sbin/vfio-pci-override-vga.sh"

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Tested Hardware:

Motherboard: Asus Sabertooth X99
CPUIntel Core i7-5930K
GPU 1: GIGABYTE GeForce GTX 970 4GB G1 Gaming OC Edition
GPU 2: GIGABYTE GeForce GTX 970 4GB G1 Gaming OC Edition
RAM: 32GB Corsair Dominator Platinum DDR4 (CMD16GX4M2A2666C15)


On Tue, Apr 12, 2016 at 3:36 PM, Nicolas Roy-Renaud <nicolas roy-renaud 1 ens etsmtl ca> wrote:
I'm currently planning a full rewrite of the article on Arch wiki about PCI passthroughs 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 give me some feedback on the planned structure 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.

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.

-Nicolas

_______________________________________________
vfio-users mailing list
vfio-users redhat com
https://www.redhat.com/mailman/listinfo/vfio-users



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]