Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VFIO question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
voncloft
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2014
Posts: 99

PostPosted: Sat Jan 27, 2018 3:05 pm    Post subject: VFIO question Reply with quote

I have been following the guide here: https://wiki.installgentoo.com/index.php/PCI_passthrough

When I try to run the code:

Code:
qemu-system-x86_64 -enable-kvm -m 1024 -cpu host,kvm=off \
-smp 2,sockets=1,cores=2,threads=1 \
-device vfio-pci,host=02:00.0,x-vga=on -device vfio-pci,host=02:00.1 \
-vga none


I get

Code:

qemu-system-x86_64: -device vfio-pci,host=02:00.0,x-vga=on: vfio error: 0000:02:00.0: group 1 is not viable
Please ensure all devices within the iommu_group are bound to their vfio bus driver.


Running:
Code:
for iommu_group in $(find /sys/kernel/iommu_groups/ -maxdepth 1 -mindepth 1 -type d); do echo "IOMMU group $(basename "$iommu_group")"; for device in $(ls -1 "$iommu_group"/devices/); do echo -n $'\t'; lspci -nns "$device"; done; done


gets me:
Code:

IOMMU group 7
        00:1d.0 PCI bridge [0604]: Intel Corporation 200 Series PCH PCI Express Root Port #9 [8086:a298] (rev f0)
        00:1d.7 PCI bridge [0604]: Intel Corporation 200 Series PCH PCI Express Root Port #16 [8086:a29f] (rev f0)
        0e:00.0 Ethernet controller [0200]: Device [1d6a:d108] (rev 02)
IOMMU group 5
        00:1b.0 PCI bridge [0604]: Intel Corporation 200 Series PCH PCI Express Root Port #17 [8086:a2e7] (rev f0)
IOMMU group 3
        00:16.0 Communication controller [0780]: Intel Corporation 200 Series PCH CSME HECI #1 [8086:a2ba]
IOMMU group 1
        00:01.0 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x16) [8086:1901] (rev 05)
        00:01.1 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x8) [8086:1905] (rev 05)
        00:01.2 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x4) [8086:1909] (rev 05)
        01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1)
        01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fba] (rev a1)
        02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1)
        02:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fba] (rev a1)
        03:00.0 Multimedia controller [0480]: Philips Semiconductors SAA7164 [1131:7164] (rev 81)
IOMMU group 8
        00:1f.0 ISA bridge [0601]: Intel Corporation 200 Series PCH LPC Controller (Z270) [8086:a2c5]
        00:1f.2 Memory controller [0580]: Intel Corporation 200 Series PCH PMC [8086:a2a1]
        00:1f.3 Audio device [0403]: Intel Corporation 200 Series PCH HD Audio [8086:a2f0]
        00:1f.4 SMBus [0c05]: Intel Corporation 200 Series PCH SMBus Controller [8086:a2a3]
IOMMU group 6
        00:1c.0 PCI bridge [0604]: Intel Corporation 200 Series PCH PCI Express Root Port #1 [8086:a290] (rev f0)
        00:1c.2 PCI bridge [0604]: Intel Corporation 200 Series PCH PCI Express Root Port #3 [8086:a292] (rev f0)
        00:1c.4 PCI bridge [0604]: Intel Corporation 200 Series PCH PCI Express Root Port #5 [8086:a294] (rev f0)
        05:00.0 USB controller [0c03]: ASMedia Technology Inc. Device [1b21:2142]
        06:00.0 PCI bridge [0604]: ASMedia Technology Inc. Device [1b21:1184]
        07:01.0 PCI bridge [0604]: ASMedia Technology Inc. Device [1b21:1184]
        07:03.0 PCI bridge [0604]: ASMedia Technology Inc. Device [1b21:1184]
        07:05.0 PCI bridge [0604]: ASMedia Technology Inc. Device [1b21:1184]
        07:07.0 PCI bridge [0604]: ASMedia Technology Inc. Device [1b21:1184]
        08:00.0 Network controller [0280]: Intel Corporation Wireless 3160 [8086:08b3] (rev 83)
        09:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)
        0a:00.0 SATA controller [0106]: ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:0612] (rev 02)
        0b:00.0 SATA controller [0106]: ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:0612] (rev 02)
IOMMU group 4
        00:17.0 SATA controller [0106]: Intel Corporation 200 Series PCH SATA controller [AHCI mode] [8086:a282]
IOMMU group 2
        00:14.0 USB controller [0c03]: Intel Corporation 200 Series PCH USB 3.0 xHCI Controller [8086:a2af]
        00:14.2 Signal processing controller [1180]: Intel Corporation 200 Series PCH Thermal Subsystem [8086:a2b1]
IOMMU group 0
        00:00.0 Host bridge [0600]: Intel Corporation Device [8086:591f] (rev 05)
IOMMU group 9
        00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (2) I219-V [8086:15b8]


Google isn't returning much for Gentoo - what do I need to do to get this running? or is it even possible - I am finding very little on an ACS patch for kernel 4.12.12 in gentoo.

Any help would be greatly appreciated.
Back to top
View user's profile Send private message
Myu
Apprentice
Apprentice


Joined: 22 Oct 2014
Posts: 164
Location: Belgium

PostPosted: Sat Jan 27, 2018 9:22 pm    Post subject: Reply with quote

Hello,

I guess you're trying to passthrough your 960, as it stands there's _way_ too many stuff with the same IOMMU group 1
Code:

IOMMU group 1
        00:01.0 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x16) [8086:1901] (rev 05)
        00:01.1 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x8) [8086:1905] (rev 05)
        00:01.2 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x4) [8086:1909] (rev 05)
        01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1)
        01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fba] (rev a1)
        02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1)
        02:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fba] (rev a1)
        03:00.0 Multimedia controller [0480]: Philips Semiconductors SAA7164 [1131:7164] (rev 81)


Here's my working setup for comparison :

Code:

IOMMU Group 12 02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380] (rev a2)
IOMMU Group 12 02:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fbc] (rev a1)


I see 2 solutions :

- Apply the ACS patch (never did it myself but I guess if you find it and drop it top the proper folder, you should be able to bake a kernel with the patch)

- Move the card to another PCIe slot and retest

You may have more help at reddit.com/r/vfio

Best of luck ! :)

A fellow VFIO gamer
_________________
Gentoo stable with bits of ~amd64 // Xfce 4.13 + Compiz Reloaded.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum